Check for Checkbox on Job Release

I am trying to setup a method directive. On the Job Entry form there is a big green “Released” box. When the user clicks that box, I would like to check the status of JobHead.CheckOff2. If this box is checked, then go ahead and release the job. If it is not checked, then pop a message to ask if the user wants to check the box before releasing the job.

I setup my pre-processing method under Erp.BO.JobEntry.ValidateJobDuomAttributes

I feel like I am missing something here. This process above will popup the message box and ask if the user wants to tick CheckOff2. But it seems like the form doesn’t get updated. Also if I click no, the entire process still completes and lets the user release the job without checking that box.

I am certain that I set this up wrong, but I feel like I am close. Can anyone help get me over the finish line?
Thanks!
Nate

For the “No” button on your form do you need to add action(s)… or to the False result on a condition?

Just the field on the form… the database updated though?

Also… wonder why you use the method ValidateJobDuomAttributes?
I would probably have used ChangeJobHeadEngineered - here is a VERY simple example (E10.1.6),
JobEngineered.bpm (68.8 KB)
Note I include messages in my prototypes so I can follow along as items are triggered.

I pulled this from my trace. I will give it a shot with the method you listed.
Thank you!
Nate

I couldn’t use the ChangeJobHeadJobEngineered method because it doesn’t contain a JobNum variable.

Since this checkbox can be processed from multiple places (there is an automatic release function), you might think about using an In-Trans Data BPM… simply put a condition that looks for the Updated record that has the Released value change from False to True… if that happens, then turn on your checkbox too.

This works like a charm!


My condition checks the ttJobHead for Released = true, RowMod = “U”, and Checkoff2 = false.
My Query for the update table just filters ttJobHead on RowMod = “U”, and Released = true.
Finally, in the table mapping I set Checkoff2 = true, and link on Job number.
Thank you Tim!!!

Nate

JobHeadDDexport.bpm (40.6 KB)
Here is the data directive exported for you all to enjoy or critique as you see fit.

1 Like