Sales Order "Master Update" Method

Background: use tracking to find out which BO.Method fires during "saving" of a Sales Order. Came up with "MasterUpdate" method.

BMP Condition: the OrderHed.CheckBox01 field of the changed row is equal to the FALSE expression or OrderHed.CheckBox02 field of the chaged row is equal to the FALSE expression...ect

I created a customization on the Sales Order form. I added a new tab with 8 checkboxes that contain a list of items that need to be looked at during Sales Order entry. I have created a BMP (SalesOrder.MasterUpdate - Pre-Processing) where I check for the values of the 8 checkboxes. If any of them are "False" I raise an exception and don't allow the user to save. This works fine at the Header level. But if a user moves to the detail level they can enter in data the the BMP will not fire and allow them to save Sales Order. I see why it's not working....the condition is looking for changes on the SO Head...what modification do I need to make for the BMP to fire regardless...meaning everyting a user hits "Save" check the checkboxes for False value...

It's the same method, the issue is that your query condition is only looking at the ttorderhed values. Create a new pre-proc directive on SalesOrder.MasterUpdate, but set you conditions to the "designed query" option and do something like the following:

I had this issue when trying to get the Request Dates for each level to update to a calc'd date. (Hed, Dtl & Rel) My "Trigger" Info (ie iOrderNum) did not populated on each level the same for some reason, so when I created an informational message and my set BPM fields it would have info when on the Header Tab Save, but not on the Line Tab Save. It took a minute to find the population differences and I adjusted my conditions from there. Your fields may be different, but I hope you get the gist.

It's the same method, the issue is that your query condition is only looking at the ttorderhed values. Create a new pre-proc directive on SalesOrder.MasterUpdate, but set you conditions to the "designed query" option and do something like the following:

Thanks for the help. Can you give an insight on the "All Row" condition. I initialy used that in my first Pre-Proc but even after all the check box were checked the exception was raised. I changed the "All Row" to "The Changed Row". Thanks again.

I just found out that changes to Order Release would not trigger the BMP. This means I have to create a Pre-Proc for each parent tab on the sales order entry screen to check changes on each tab.... :( . Would a customization be a better solution?

Verify the condition data as it comes into the BPM. I had to populate & test differently for each of those 3 tables (Hed, Dtl & Rel) before I got it to work. My BPM worked as designed the entire time, it was just not triggered because the inputs were null depending on what type record I was trying to update.

Opened up Customization
Form Even Wizard
Selected BeforeAdapterMethod
Script Editor
added "if" statement to check the checked state of the checkboxes under Case "Update". If not all the checkboxes are not check I threw an exception with a meaningful error msg.