

NGCChangeRequestValidator Readme:

=============================

Place NGCChangeRequestValidator.java & NGCChangeRequestValidator.class in:

ext.ngc.pdmlink.change2.validators

=============================

Edit: ChangeManagement-actions.xml

C:\ptc\Windchill_9.1\Windchill\codebase\config\actions\ChangeManagement-actions.xml

Add Filter Line: <includeFilter name="disableWhenChangeRequestisNotApproved"/>

<objecttype name="changeNotice" class="wt.change2.WTChangeOrder2" resourceBundle="com.ptc.windchill.enterprise.change2.changeManagementActionsRB">
  <action name="create" uicomponent="CREATE_CHANGENOTICE" ajax="row">
	 <description>Create change notice</description>
	 <command class="com.ptc.windchill.enterprise.change2.forms.processors.CreateChangeNoticeFormProcessor" method="execute" windowType="popup"/>
	 <includeFilter name="sandboxSharingValidationSimple"/>
	 <includeFilter name="restrictGuestMembers"/>
	 <includeFilter name="showNewActionPreValidation"/>
	 <includeFilter name="disableWhenChangeRequestisNotApproved"/>
  </action>
  
=============================

Windchill shell:

xconfmanager -s "wt.services/svc/default/com.ptc.core.ui.validation.SimpleValidationFilter/disableWhenChangeRequestisNotApproved/java.lang.Object/0"="ext.ngc.pdmlink.change2.validators.NGCChangeRequestValidator/duplicate" -t"codebase\service.properties" -p

=============================

Or site.xconf insert:

	<Property name="wt.services/svc/default/com.ptc.core.ui.validation.SimpleValidationFilter/disableWhenChangeRequestisNotApproved/java.lang.Object/0"
		overridable="true"
		targetFile="codebase/service.properties"
		value="ext.ngc.pdmlink.change2.validators.NGCChangeRequestValidator/duplicate"/>
	<Property name="wt.change2.validators.NGCChangeRequestValidator.state" overridable="true"
		targetFile="codebase/wt.properties"
		value="IMPLEMENTATION"/>


If application is acting oddly, just temporarily remove line from ChangeManagement-actions.xml (below) & stop/start MethodServer.

Remove Filter Line: <includeFilter name="disableWhenChangeRequestisNotApproved"/>

