Both scripts work individually, but invoking them consecutively in another script causes problems in the sales order and added paya charges.
The first script is long, writes to the order line file. The 2nd script prints the order. Both scripts on server.
Seems like some kind of WAIT clause after invoking the first script might solve this. Anyone know of a scripting clause for WAITING.
The script is simply:
retVal = oScript.InvokeButton("BT_Link6") ' which gets order line UDF's from another system and writes to order.
retVal = oScript.InvokeButton("BT_Print")
------------------------------
Lee Graham
Friendly Systems, Inc.
------------------------------
Original Message:
Sent: 09-22-2022 11:47
From: Lee Graham
Subject: Can you fire a script from an Order Print button to execute before printing?
Seems like consecutive commands would WAIT for previous step to complete.
Will test.
Thanks,
Lee
Original Message:
Sent: 9/22/2022 11:45:00 AM
From: Kevin Moyes
Subject: RE: Can you fire a script from an Order Print button to execute before printing?
Yes, but I don't know whether the first script will "wait" until the second script is done before continuing execution. Be sure to test.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
------------------------------
Original Message:
Sent: 09-22-2022 11:42
From: Lee Graham
Subject: Can you fire a script from an Order Print button to execute before printing?
Ok I see, just use the oScript.InvokeButton(BT_Button) to invoke the 2nd script.
Thanks
------------------------------
Lee Graham
Friendly Systems, Inc.
Original Message:
Sent: 08-24-2022 10:58
From: Kevin Moyes
Subject: Can you fire a script from an Order Print button to execute before printing?
Replace the Sage button with your own (putting it on top of the Sage button), run your script, then invoke the Sage button when done.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.