UI Script to Disable UDF on SO Lines Grid

Afternoon everyone

Working in 2017 100c Adv. Trying to get a UI script to work on the SO Lines tab that will disable a UDF from editing unless the user is an exclusion list.

We cannot seem to get the UDF to disable despite all syntax efforts.


If (oScript.UIObj) Then
Set myUIObj = oSession.AsObject(oScript.UIObj)
myUIObj.SetControlProperty "UDF_STDPRICE","DISABLED", "TRUE"
Set myUIObj = Nothing

End If

We've tried several variations including $ and the like, but we cannot seem to create any syntax that will actually affect the UDF state.

Thanks - Jeff