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.