Since oBusObj doesn't work in client-side scripts, how can I retrieve whether the button has been clicked in Item Entry or Item Inquiry?
I'd also like to know this. Or does anyone know how we can get to ProvideX PRGNAME under Execute by Client?
Here is a long-winded way. Not tested. Imperfect. I'll use S/O Entry vs S/O Inquiry to describe but same concept for Item Maint vs Item Inquiry too. I'll assume your button becomes available to click once a record is selected.
If IsObject(oUIObj) = False Then oUIObj = oScript.UIObj Set oUIObj = oSession.AsObject(oUIObj) End If 'Use InvokeChange instead of SetValue since we could be on the Inquiry screen 'Alternatively use SetVar rV = oUIObj.InvokeChange("UDF_TEMP", oSession.StartProgram)
sMsg = "Start Program: " & SO_SalesOrder_bus_Temp MsgBox sMsg
------------------------------Alnoor CassimAccounting Systems, Inc. (ASI)------------------------------
------------------------------Steve Iwanowski, NextStep Technology Advisors, aka DSD Lancaster PA ¯\_(ツ)_/¯------------------------------
PO Box 372, Sunset Beach, CA 90742
Email: membership@90minds.com
JoinBenefitsLearn More
About UsTerms of Use