UI Script properties for control types

Hi All,

Is there a list of the properties for the various control types?  I am trying to work with Text labels using  oUIObj.SetControlProperty(ctlName, propertyName, value),.  I would like to hide labels based upon data on the screen to display the user a message.  I have been unable to work with TEXT fields.    I have also tried using a UDF, but can't seem to get around the prompt to save the order.  

I have been working with Sage100 2015 STD

Any help would be greatly appreciated.

Thank you,

Justin Roberts

  • 0

    I have the same question. I am using Sage 100 Advanced 2017. (Not Sage 100c.)

    I have tried the following on the G/L Account Maintenance screen: 

    retVal = oUIObj.GetControlProperty("FT_ACCOUNT_GROUP", "*", props)

    retMsg = oSession.AsObject(oSession.UI).MessageBox("Message", props)

    However nothing is returned from the props variable.

    I have also tried the following variations:

    retVal = oUIObj.GetControlProperty("FT_ACCOUNT_GROUP", "TextColour$", props)

    retMsg = oSession.AsObject(oSession.UI).MessageBox("Message", props)

    and

    retVal = oUIObj.GetControlProperty("FT_ACCOUNT_GROUP", "TextColor$", props)

    retMsg = oSession.AsObject(oSession.UI).MessageBox("Message", props)

    and

    retVal = oUIObj.GetControlProperty("FT_ACCOUNT_GROUP", "TextColour", props)

    retMsg = oSession.AsObject(oSession.UI).MessageBox("Message", props)

    and

    retVal = oUIObj.GetControlProperty("FT_ACCOUNT_GROUP", "TextColor", props)

    retMsg = oSession.AsObject(oSession.UI).MessageBox("Message", props)

  • 0 in reply to Sage100User

    Unfortunately, text controls are not the same as the other types of controls and cannot be manipulated through the SetcontrolProperty() function.  

    Some of these things can be set things can be set in the Customizer Selection but not at run-time, unfortunately.

    I will add this to our list of enhancements, but at the moment run-time changes to text controls cannot be done through scripting.

    Elliott

  • 0 in reply to jepritch

    Thank you for update!!!

  • 0 in reply to Sage100User

    Although you can't manipulate the "text controls", you can use a UDF added to the panel as locked and borderless and use oUIObj.SetControlProperty "UDF_Name", "Value$", "Text you want displayed"

    I believe the SetControlProperty method was added in version 2015. This should cause the text to be displayed without triggering a change detected by the business object.