Team,
I am trying to write a script that will hide the unit price and extension columns on the Sales Order Panel based on the user roles.
The following is my custom office script (w/o role piece yet) which is a postload on the plines panel of SO_SalesOrder.m4l
gridCtl = "" gridCtl = ""
retVal = oUIObj.GetControlProperty("GD_Lines", "Ctl", gridCtl)
' hide the price column
retVal = oUIObj.HideColumn(CInt(gridCtl), "UnitPrice")
retVal = oUIObj.HideColumn(CInt(gridCtl), "ExtensionAmt"
I can make it work as a button that you click on and the 2 columns hide; however, the post-load script is not hiding the columns as soon as the panel is open.
The option to hide the columns in customize based on user group will not work at this client.
Any thoughts or suggestions on how I can hide the unit price column based on roles would be greatly appreciated.
I am running Sage 100c Standard v2019 p2
Thank you
Michael
------------------------------
Michael Davis
Warren Averett Technology Group
Birmingham, AL
------------------------------