In production control -> all production orders
For any Production order status value is "Created" then my custom field value should be set as "Hold". How can i do that.
*This post is locked for comments
In production control -> all production orders
For any Production order status value is "Created" then my custom field value should be set as "Hold". How can i do that.
*This post is locked for comments
other simpler way could be to write your logic in insert() and update() method of the table
problem with this if in standard logic doinsert() or doupdate() method is used for insert and update of record then there will be issue.
But you can try.
Please verify and update us with your findings
Hi Calavon,
we can do that by x++ code but where to place the code. I am not getting.
Hi Nitesh,
This is not working for me.
Hi Nitesh,
Please note that the modified field is not executed when fields are changed in methods. Is it is executed when a field is modified in a form or Web form. As the Production status is not handled on the form contol for production orders, your solution will not work in this case.
you need to override the modifiedfield method of the table (prodTable)
write the code to assign "Hold" value to your custom field if Production order status field is having value "Created"
Please verify and let me know if you need more details
Hi Divija,
You need to do this with some x++ logic. You can have a look at the method 'update' on the table ProdTable. This calls logic in classes ProdStatusType and ProdTableType with some inherited classes per production status and type. You can see which method on the ProdStatusType_Created is always called and add the logic here. You can also create new methods for you new field.
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156