Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
How to write a custom UI validator that runs on a Change Request, when 'New->Create New Change Notice' is clicked, can we use preUIValidation that checks the state of the Change request, and throw an error message/warning in the UI if state is 'Under Review', and it should let users create Change Notice when state is 'Implemented'.
What are the files that need to be customized to achieve this?
Hi RG_10753677,
Thank you for your question.
I’d like to recommend to bring more details and context to your initial inquiry.
It also helps to have screenshot(s) to better understand what you are trying to do in your process.
This will increase your chances to receive meaningful help from other Community members.
Regards,
Anurag
Hi @RG_10753677
You can create validator that checks your condition and hide the button New change Notice in the menu.
It is simple.
Implementing Validation Filters
If you need to inform user in the wizard UI you should customize the wizard of the New Ch. Notice.
check help
Windchill Client Architecture Wizard
also check a catalog in the Windchill system
https://serverAdress/Windchill/app/#netmarkets/jsp/componentCatalog/wizardComponent.jsp
an another example how to validate in the wizard with afterVK java script
PetrH