cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to write Custom Validator on Change Request/Notice?

RG_10753677
8-Gravel

How to write Custom Validator on Change Request/Notice?

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?

 

2 REPLIES 2

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

CS138656 - validateFormSubmission()" is never called for a validator registered against the New Change Task wizard in Windchill PDMLink

 

PetrH

Top Tags