Invoke BT_CustomerNo in PostValidate script

SOLVED

SO Entry, Header column post validate script on CustomerNo.  The script checks a couple things, and under certain circumstances I want to open the selected customer record using Customer Maintenance (so the user can type in a new email address).

The problem I am running into is that the CustomerNo is not yet set, so invoking the UI button doesn't have the correct value yet.

Customer Maintenance then opens, but without the customer selected.  The CustomerNo is absolutely available in the script because I can update a customer UDF (under different scripted circumstances) but the value is somehow unavailable for the oScript.InvokeButton("BT_CustomerNo")

How do I open Customer Maintenance, with the correct customer selected, from a column post validate script on CustomerNo?  I tried adding oUIObj.HandleScriptUI() but it just gave me errors.

(Premium v2018, if it matters).

Parents Reply Children
No Data