Has anyone attempted to script the automatic selection of "Backorder Item" anytime the "Entry Exceeds Available Quantity" screen pops up?
If you can't reference the fields because the panel is not a table do you go through "retVal = oScript.SetUIControl
(control as String, action as
String)" ? Struggling to find any good examples, I have the screen defaulting to the "backorder item" button but it is still popping up, can't wrap my head around the scripting.
Had help with that (DSD), so not sure waiting on an answer for that, but I am assuming they made an edit to the DFDM, maybe related to your post and Alnoor_C response. https://www.sagecity.com/us/sage100_erp/f/sage-100-business-object-interface/155268/button-script-to-change-invoice-date-for-a-whole-batch-error-84/404803#404803
I've read over this post quite a bit, but still confused on how to invoke. I asked DSD to quote the customization, but still would like to try to figure it out on my own. I know this script is way off, but I had to try to get something on paper.
rvAL = 0 QTYAVAIL = 0 rVal = oUIObj.GetValue = ("QTYAVAILABLE", QTYAVAIL) if QTYAVAIL < 1 then rVal = oScript.InvokeButton("BT_QTY_OK") rVal = oUIObj.HandleScriptUI() end if
For a panel event you can assume there is a UI, but you might need to create your own object to do anything with it.
retVal = 0 Set myUIObj = oSession.AsObject(oScript.UIObj) ... retVal = myUIObj.HandleScriptUI() Set myUIObj = Nothing