How to limit a number of roleB item added to a Configurable Link table?
Hi Windchill Guru's,
Is it possible to limit only one roleB item added to a Configurable Link table. What customization/configuration do I need to do?
Thank you,
-Boi
Hi Windchill Guru's,
Is it possible to limit only one roleB item added to a Configurable Link table. What customization/configuration do I need to do?
Thank you,
-Boi
You need to program an action validator filter which extends the class DefaultSimpleValidationFilter
See CS299819
Then you need to find the action located in %WT_HOME%/codebase/config/actions/...actions.xml. You can also find the action with the client customization enabled in the preference manager. Or add at the end of the url &jcaDebug=true. You need to figure out the name of the action.
Afterwards copy the defined action to the custom-actions.xml file and add your new filter to it. E.g.
<objecttype name="object"
resourceBundle="com.ptc.windchill.enterprise.object.configurableLinkObjectResource">
<action name="configurableLink_add" ajax="component">
<includeFilter name="hideForNewObjectInWorkspace"/>
<includeFilter name="hideForCheckedoutObjectInWorkspace"/>
<!--Add your custom filter here -->
<includeFilter name="CUSThideForMultipleLinks"/>
<command class="com.ptc.windchill.enterprise.object.forms.ConfigLinkAddRelationFormProcessor"
method="execute" windowType="popup"/>
</action>
</objecttype>
Don't forget to reload the actions or restart windchill.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.