Is it possible to automate the printing of production label with help of business event?
I’m trying to automate label printing from production order details screen when certain operation status got changed to completed.
Is it possible to automate the printing of production label with help of business event?
I’m trying to automate label printing from production order details screen when certain operation status got changed to completed.
Best answer by lauraj46
Hi
Yes, you will need to add some code to extend either the ProdMaint or ProdDetail class. Once you have published that customization project then you should have the Print Label action available on the Production Order Maintenance or Production Order Detail screen and you can test it manually from that screen.
Here’s another thread with some sample code that is an example of the code for the class extension. I think there was a change at some point made to the CreatePrintJob function which adds an extra argument, so you may need to adjust the code slightly.
Once the action is working and published, the next step would be to create the generic inquiry to select the production orders for printing. Depending on your requirements, you might just be able to use the Production Order Details screen with a filter. Create a subscriber of the type Action Executions. Choose the Action Screen ID to be the screen where you added the new action. Your new action should be there to select. You will need to specify the keys so that the action is executed for the right production order.
Hope this helps!
Laura
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.