Consider the following scenario:
You want to add a new status for Workorder which is a Synonym for an existing one. This status is only visible based on a certain Work Type.
This looks very simple but there is just one small trick we need to achieve this.
First create the condition in Conditional Expression application as below:
:WORKTYPE = ‘ABC’
Go to Domains application and add the new status in WOSTATUS domain. Lets call this as “REVW”.
In View Modify conditions select the condition which checks the worktype as per below screenshot. When you test you will get an error “WorkType” attribute not found. The trick is to add a field WORKTYPE to WOCHANGESTATUS table. Because, when this condition is used on selecting the status ABC it also tries to validate on the dialog table which in this case is a non-persistent table called WOCHANGESTATUS. Let me know if you have any questions.