MES - End Activity Message

I am trying to add a message as people end their activity on MES. I made a method directive on ERP.BO.Labor.Update. It’s a Pre-Processing directive where I added two conditions.

  1. The LaborDtlType is so that the message only displays for when the employees are in Production, not setup or idle.
  2. The ClockOutTime is to ensure that the Employee is clocking out, changing the time from 24 to the actual clock out time.

The flow is if these two conditions are true then a message should appear to the employee.

However, I am getting nothing. Any ideas?

Is the directive enabled?

Did you do a trace and review it to see if the Update is actually the method that should be being fired.

I’d also start with no conditions then build from there if all the above steps have been taken

The method is enabled.

I checked the Dev Tools → Network section and confirmed that the ERP.BO.Labor.Update method is being called.

Could the issue be that I initially reviewed the methods in Office MES, but I am now testing in the separate Data Collection app? Could there be a difference in how the two systems handle the method call?

Yes I would not be surprised.

Alright then,
Let me test the Office MES prior to going further.

1 Like

No luck so far.

I’ll try changing the condition from Changed Row to Updated Row and see if that makes a difference. If that doesn’t work, I’ll remove the condition entirely and test again.

Hopefully, something will happen.