MES Setup End Activity quantity issues

Hey everyone,

I’m very new to kinetic. We went live a few months ago, but my team is already bombarded with BAQs and BPMs. One BPM request in particular was that we make the quantity fields (current, scrap, and non-conformance) read-only while clocking setup in MES. I noticed that setup % is read only when ending a production activity, so there must be a way to do it, but I do not know where to start looking. any help is appreciated!

In Application Studio, you can filter and find the EndActivityEntry form:

Open that up and create a custom layer.

You can find in there a Data Rule that is controlling the LaborDtl.SetupPctComplete field.

This is actually a nice road map.

What you’ll want to do is create your own Data Rule to disable the target quantity entry fields…

Interestingly… these fields don’t appear to have bindings (blue arrow). This is because it is a joint entry/combo control.

Click into the Quantity Model properties and you’ll see the bindings there:

Same with the UOM Combo Model:

You can then set up your own Data Rule for the LaborDtl dataview…

I would use test the condition:

LaborDtl > LaborType > Equal < Value > S

Actions:
SettingStyle.Disable > LaborQty, LaborUOM

~*~

You can look up the bindings for the other qty/UOM columns and add them to this same Data Rule to capture all three… well potentially (6) fields including the UOM combos.

~*~

You’ll then need to Save & Publish this layer.

You’ll then need to apply this layer in Menu Maintenance.

In Menu Maintenance… search for a PROCESS called End Labor Activity (Erp.UI.EndActivityEntry)… copy this menu/process to your company. Apply your custom layer. Save.

NOW… there is yet another step.

Back in Application Studio, you’ll need to search for MES.

If you don’t already have a Custom Layer for your MES instance, you can open base and create one.

On the “Production” Form, find your End Activity button. Click on that and in Properties > Bahavior… click the onClick option.

This will open your onClick event for that button.

In the event, look at the properties of your App-open action:

Add the layer name for End Activity that you created above:

Save & Publish this new layer.

Now… when your users click the End Activity button, this event will open the End Activity application WITH your custom layer active, which should hopefully disable the target fields.

If you didn’t already have a custom layer for MES… you’ll need to apply any newly created layers to that Process/Menu in Menu Maintenance as well.

@dcamlin - you the man!

@MetalHead1604 - you don’t know how lucky you got to get that kind of response. He basically wrote you a step by step tutorial on how to do exactly what you are asking. Any MES screen is harder than the regular menu because those items aren’t menu options you can just update the layer in menu maintenance. You have to do the whole custom layer on Mes screen so you can override the button click event. It’s a PITA and tricky if you don’t know what you’re doing. So big props to @dcamlin for taking the time to write such a detailed response.

@dcamlin Thank you very much! I’ll be working on this and update y’all as soon as i can.

You got this!