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

Parents
  • 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)

Reply
  • 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)

Children