I had this reply for you last night but then I thought it was too lame and not what you're really after ...
Hi Dan - Since V/I uses the same business objects as scripts, it will automatically fire off a business script, if found, when it writes a record. If possible, and I don't know about the complexity of what your UI script does, you can potentially condition your UI script to also run on business PreWrite or PostWrite OR make a copy of your UI script and modify it to only support running on business PreWrite or PostWrite . For example, I have a simple V/I import to AP_Vendor that uses APDivisionNo, VendorNo, and and HoldPayment. I'm assigning HoldPayment="Y". I also have a PreWrite script that does this silly thing below but only runs from a V/I import. When I run the import my UDF_TEST1 from script is populated with a random number. I'm thinking you knew all this already but was looking for some magic.
You can fire off Perform Logic set to run on Job Completion but I don't see that helping you here. In the end you can't fire off UI Script at any place in the import without actually firing off the UI since the script is contained to the form and panel.
If Left(oSession.StartProgram,4)="VIWI" Then
Randomize
nRandom = Round(100*Rnd,2)
rV = oBusObj.SetValue("UDF_TEST1",nRandom)
End If
------------------------------
Alnoor Cassim
------------------------------
Original Message:
Sent: 10-07-2022 16:05
From: Dan Burleson
Subject: How Might One Trigger a UI script (or any UDS) at the conclusion of a V/I job?
No one?
------------------------------
Dan Burleson
Software Consultant
Connex Software
------------------------------