Article - CS185231

How to add a custom UI Validator to the New Part wizard in Windchill PDMLink

Modified: 29-Mar-2022   


Applies To

  • Windchill PDMLink 9.0 to 11.1

Description

  • How to add a custom UI Validator to the New Part wizard?
  • After registering the service in service.properties and adding the afterVK parameter to the action in the Part action model the validator is still not called
  • Example:
service.properties.xconf:
<Service context="default" name="com.ptc.core.ui.validation.UIComponentValidator" targetFile="codebase/service.properties">
   <Option requestor="null" selector="myTestValidator" serviceClass="com.ptcts.enterprise.change2.validators.myTestValidator"/>
</Service>

action model:
<objecttype name="part" class="wt.part.WTPart" resourceBundle="com.ptc.windchill.enterprise.part.partResource">
<action name="createPartWizard" uicomponent="CREATE_PART" ajax="row" afterVK="myTestValidator">
<command class="com.ptc.windchill.enterprise.part.forms.CreatePartAndCADDocFormProcessor" method="execute" 
url="/netmarkets/jsp/part/createPartWizard.jsp?revisionMode=create&amp;showNewCADDocStep=true&amp;hideAssociatePart=true" 
onClick="validateCreateLocation(event)" windowType="popup"/>
 <includeFilter name="showNewActionPreValidation"/>
 </action>
 </objecttype>
 
This is a printer-friendly version of Article 185231 and may be out of date. For the latest version click CS185231