Requirement - If the POHeader.VendorID of a new purchase order begins with “Q” then set the POHeader.ShipName to “Queen”.
Questions -
Should this be a data or method directive, because I cannot see the field VendorID in the condition “the specified field of the changed row is equal to the specified expression”.
In reference to Q1, should this be a pre/base/post/standard or in transaction?
if the answer is no to Q1 and Q2, - is ABL the best solution?
VendorID is not a field in the PO dataset… if you want to check for it you either have to use a query (looking for a match from POHeader.VendorNum to Vendor.VendorNum and and Vendor.VendorID begins with “Q”) in the conditions or ABL
My preference is to use PRE Method directives, but sometimes an In-Trans Data directive works better.
Either the query OR ABL can work. There are advantages to each. I’m not a programmer, so I default to using the tools and avoiding code wherever possible. Others would rather write it all out.
The “GetNew” doesn’t have the VendorNum populated yet. You’d need to choose an object that happens AFTER you enter the VendorID on the form. Turn on tracing and then create a PO up to the point where you enter the VendorID, and see what object that is.