I am new to custom code within E10 so please be gentle…
To deal with issues with employees not reading operation comments on printed route cards and potentially missing important operation comments I have been asked to add a pop up on the MES to display the comments when they start production activity. I have managed to get this working with the code below via a bpm that executes custom code as below.
This works on the MES, the user starts the activity and the comment is displayed with an ok message.
However for more lengthy comments this only displays 120 characters of text and the user then has to scroll down. My first thought was to use a bpm data form with customization to get this to work - hence the last line setting the call context field. If I link a bpm data form the bpm saves and compiles. But when I try and start an operation I get the following messages
“MenuID Ice.UI.InfoPromptForm is not valid from the MES menu”
and
“The value for column “Buttonvalue” in table BPMData is DBNull”
I get this even if I call a BPM data form that does nothing other than display the word “Test” and an ok button.
I’m guessing that you cannot call BPM Data forms in the MES?!?!
Can anyone point me in the direction of how to get a message box that shows much more of the comments - say 500 chars via a bpm/custom code.
Alternatively if someone has achieved the same thing via a different means, would you mind sharing?
You could dynamically create a form, slap on a text box or label and
populate. You could even have it read that from a text file so you can
update without recompile. When I get to a PC I’ll try to get you some
sample code