I'm trying to do a simple little script that checks a UDF created in the customer master file that indicates that a PO is required for this customer. All I want it to do is show or hide a text field on the screen depending on the value of the UDF. It's looking to me that SETUIControl will not work on an added text on a screen. Only with a data field or button? Is that correct? if (required = "Y") then retval = oScript.SetUIControl("Fonted_Text_1","SHOW") else retval = oScript.SetUIControl("Fonted_Text_1","HIDE") end if Also noting that if a button's properties are set to a default of HIDE, then SetUIControl is ignored. It must be set to not hidden for it to work. Seems like a bug.
↧