Has anyone attempted to script the automatic selection of "Backorder Item" anytime the "Entry Exceeds Available Quantity" screen pops up?
If the default value of the radio button option is correct, just go straight to the invoke button. There should not be any extra logic required... just script the automatic clicking of the OK button.
Tried both events with just this, I am sure its missing something. Do I need to check sessionUI?
rVal = oScript.InvokeButton("BT_QTY_OK") rVal = oUIObj.HandleScriptUI()
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
Update, issue with pop up was solved by unchecking "allow quantity to exceed quantity on hand" security event and the check quantity option in sales order options, credit DSD.
*Community Hub is the new name for Sage City