Wizard UI Validator
Jul 29, 2013
03:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 29, 2013
03:17 PM
Wizard UI Validator
Does anyone know the right site.xconf property syntax to register a UI Validator with the Affected/Resulting items step in the New Change Task wizard step? I keep getting errors when running xconfmanager -p with the following xml.
<service context="default" name="com.ptc.core.ui.validation.UIComponentValidator">
<option cardinality="duplicate" order="0" overridable="true"<br"/> requestor="wt.change2.WTChangeActivity2"
selector="affectedAndResultingItemsStep"
serviceClass="com.steelcase.enterprise.change2.validators.ChangeMgmtCreateWizardsValidator" />
</service>
*** ERRORS ************************************************************************
These issues must be corrected before target files can be generated.
The following properties have not been mapped to a target file.
- wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/affectedAndResultingItemsStep/wt.change2.WTChangeActivity2/0
Specified at:
file:/D:/ptc/Windchill_10.1/Windchill/site.xconf, line 209
Mapped to:
<service context="default" name="com.ptc.core.ui.validation.UIComponentValidator">
<option cardinality="duplicate" order="0" overridable="true"<br"/> requestor="wt.change2.WTChangeActivity2"
selector="affectedAndResultingItemsStep"
serviceClass="com.steelcase.enterprise.change2.validators.ChangeMgmtCreateWizardsValidator" />
</service>
*** ERRORS ************************************************************************
These issues must be corrected before target files can be generated.
The following properties have not been mapped to a target file.
- wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/affectedAndResultingItemsStep/wt.change2.WTChangeActivity2/0
Specified at:
file:/D:/ptc/Windchill_10.1/Windchill/site.xconf, line 209
Mapped to:
Labels:
- Labels:
-
Other
3 REPLIES 3
Jul 29, 2013
03:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 29, 2013
03:52 PM
Bryan,
That was it! This kills me because of the following documentation inside of service.properties.xconf:
Services are specified using a <service> element which requires the name attribute (which corresponds to the
fourth field of the property name) and can optionally specify"
- a context attribute corresponding to the third field of the property name (defaults to "default" if not specified)
- a serviceProvider attribute (defaults to wt)
- a targetFile attribute (defaults to the targetFile specified on the root element of this XML file)
So I guess since I was adding this property to site.xconf there was no default targetFile in the root element... oops
Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image002.jpg@01CE8C73.98A4ADE0]
That was it! This kills me because of the following documentation inside of service.properties.xconf:
Services are specified using a <service> element which requires the name attribute (which corresponds to the
fourth field of the property name) and can optionally specify"
- a context attribute corresponding to the third field of the property name (defaults to "default" if not specified)
- a serviceProvider attribute (defaults to wt)
- a targetFile attribute (defaults to the targetFile specified on the root element of this XML file)
So I guess since I was adding this property to site.xconf there was no default targetFile in the root element... oops
Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image002.jpg@01CE8C73.98A4ADE0]
Jul 29, 2013
09:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 29, 2013
09:57 PM
Well...that was almost "it". The addition of the targetFile attribute allowed xconfmanager to complete without error however my validator is still not registered. I know this because I ran the "java com.ptc.core.ui.validation.UIComponentValidatorFactory affectedAndResultingItemsStep" command which told me that no validators were registered with the affectedAndResultingItemsStep. What else am I missing?
Jul 30, 2013
01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jul 30, 2013
01:26 PM
Here is what I used:
<property name="wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/renameDocumentWizard/null/0"<br"/> overridable="true"
targetFile="codebase/com/ptc/windchill/enterprise/enterprise.service.properties"
value="customization.sap.SAPMMNameValidator/duplicate"/>
where renameDocumentWizard was the action.
This is with 9.1
<property name="wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/renameDocumentWizard/null/0"<br"/> overridable="true"
targetFile="codebase/com/ptc/windchill/enterprise/enterprise.service.properties"
value="customization.sap.SAPMMNameValidator/duplicate"/>
where renameDocumentWizard was the action.
This is with 9.1
