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.

If you haven’t got this sorted yet. Just try the condition and build it up…

First with no condition, then add the first condition, then the second.

Just testing with a message first is how I do it when I can’t get something to work how I expect it to.

1 Like

That is exactly where I will start. Last two weeks have been crazy for me so I have not had any time to mess with it.

1 Like

Ok so good news is that without a condition it works fine. I guess I will have to mess with the condition statement. I don’t want it to pop up every time. Just when an op is set to complete.

1 Like

Got it to work. Issue was the condition was originally set to “Added Row” when it needed to be “Updated Row”.

1 Like