Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Version: Windchill 13.0
Use Case: Trying to implement validation on submission of rename wizard if name is already present
Description:
Trying to implement validation on submission of rename wizard if name is already present but not working
Hi @TP_10729144
Do you use a wizard ? and Processor that do what you need?
If so use preProcess method to check if the name already exists in the system and return an error.
@Override
public FormResult preProcess(NmCommandBean nmCommandBean, List<ObjectBean> objectBeans) throws WTException
{
FormResult formResult = super.preProcess(nmCommandBean,objectBeans);
formResult.setStatus(FormProcessingStatus.FAILURE);
return formResult;
}
PetrH
Hi There is no form processor implementation for rename and there is no wizard page to handle ok button validation
yes thinking for script or processor implementation but where exactly do i need to implement as I said there is no wizard or proccessor
Hi @TP_10729144
I guess that you are talking about rename wizard, so you need to find the rename table and try to set a JavaScript for the name filed if it changes run a js script that will check all fields on the page an throw alert if there is same name....
PetrH