How to show an Error Message if the user adds NON-FG parts to FG Workflow.
Hi
To restrict users to add specific Items in the ECO we need to show an error message if the user adds NON-FG parts to FG Workflow. Either we need to show this when user adds an NON FG item to affected items in a ECO with FG Workflow, or we need to show an error message when user submits.
Please give any solution.
kshama
Hi Kshama,
you’ll need to write an process extension that will validate the kind of item been adding to the BOM.
It has to not proceed if the validation criteria is not met, it can show the error to help users figure out what’s going on.
My best
Carlos
Hi Carlos,
Thanks for quick response, can’t we do this by configuration? Or only custom code ( process Extension) is required?
Reg
Kshama
We control this via Workflow matching criteria, and specify the allowable Affected Item’s Item Type. If the workflow is already selected on the change’s Cover Page before the Non-FG part is added, users will get an “Object Violates Workflow Matching Criteria” error when attempting to add a non-fg and the affected item won’t be added. There really isn’t a way to modify the error message unless your write a PX. I do believe this is controlled by a Smart Rule (at least in 9.3.4)
If the workflow has not been selected on the change’s Cover Page, users will be allowed to add a NON-FG to the affected items, however the “FG Workflow” will not be available to select from the change Cover Page Workflow attribute.
Does that help?