Button script to modify UDF on SO Order Header Totals tab

Hi all

I have a button script on SO Order entry form. UDFs are on Totals tab. UDF_QTY and UDF_AMT. When a button is pressed, the script gathers quantities and amounts from detail lines where unit price meets certain criteria, The totals gathered should be updating UDFs on totals tab. How can I stay on the order and check if totals in UDFs are correct? Do I need  oBusObj.Write() and if so will it refresh screen?

Other thing, what is the syntax of Case statement?

Thanks.  [:D]

  • 0
    Hi
    I found the answer. It is button script with .txt file. One can pick a list of variables to send to the script and mark it as return values. with this method you can enter values in the script which will return back to the screen. No need to worry about Write() etc.