Navigation Filter
Load the NavigationFilter type in the Windchill database using the Windchill loader.
The following details of Option Filter can be loaded using loader:
• Choice selection
• Option Filter Configuration Specification
• Overriding to a specific version of the Option Set
• Filter mode
• Disable Rule checking indicator
The ATO navigation filter is a part of navigation criteria and must be defined within navigation criteria section, that is csvNavCriteria tag. In the load file, the csvBeginNavFilter tag must be declared after closing the csvBeginNavCriteria tag and before the csvEndNavCriteria tag.
XML Format
<csvBeginNavFilter handler="com.ptc.windchill.option.load.Loader.beginCreateNavFilter">
<csvoptionSet>Option set to be used for filter</csvoptionSet>
<csvoptionsetRevision>Option set revision</csvoptionsetRevision>
<csvfilterMode>Filter type to be used</csvfilterMode>
<csvdisableRuleChecking>true/false</csvdisableRuleChecking>
</csvBeginNavFilter>
...
<csvEndNavFilter handler= "com.ptc.windchill.option.load.Loader.endCreateNavFilter" />
Table 22. Attributes for csvBeginNavFilter
Attribute
|
Description
|
Required or Optional?
|
csvoptionSet
|
Option set name.
|
Required
|
csvoptionsetRevision
|
Option set revision.
|
Optional
|
csvfilterMode
|
The number that represents the filter type to be selected for this navigation filter. Available numbers can be found on the wt.properties file as below. To select the Standard filter, provide a value of “1” in the csvfilterMode tag. For the Alternate filter, provide “2”. If nothing is provided, the filter type defaults to Standard.
ato.filter.strategy.1=$(wt.home)/codebase/com/ptc/windchill/option/filter/StandardFilterStrategy.xml
ato.filter.strategy.2=$(wt.home)/codebase/com/ptc/windchill/option/filter/AlternateFilterStrategy.xml
|
Optional
|
csvdisableRuleChecking
|
Indicator (true or false) for Disable Rule Checking.
|
Optional
|
Example
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.beginCreateNavCriteria">
<csvname>NavCriteria-001</csvname>
<csvpartNumber>ConfigPart1</csvpartNumber>
<csvapplyToTop>false</csvapplyToTop>
</csvBeginNavCriteria>
<csvBeginNavFilter handler="com.ptc.windchill.option.load.Loader.beginCreateNavFilter">
<csvoptionSet>OptionSet1</csvoptionSet>
<csvoptionsetRevision>A</csvoptionsetRevision>
<csvfilterMode>2</csvfilterMode>
<csvdisableRuleChecking>true></csvdisableRuleChecking>
</csvBeginNavFilter>
<csvBeginOptionFilterConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.beginConfigSpecsHandle">
<csveffectivityformat>yyyy/MM/dd</csveffectivityformat>
</csvBeginOptionFilterConfigSpecs>
<csvOptionFilterConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>atoConfigSpec1</csvconfigspecname>
<csvlifecyclestate>INWORK</csvlifecyclestate>
</csvOptionFilterConfigSpec>
<csvOptionFilterConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>atoConfigSpec2</csvconfigspecname>
<csveffectivitydate>2020/04/17</csveffectivitydate>
</csvOptionFilterConfigSpec>
<csvEndOptionFilterConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.endConfigSpecsHandle" />
<csvATONavigationFilterChoiceLink handler="com.ptc.windchill.option.load.Loader.createATONavigationFilterChoiceLink">
<csvchoiceName>Choice1</csvchoiceName>
<csvDerived>false</csvDerived>
<csvSelectionOrder>0</csvSelectionOrder>
</csvATONavigationFilterChoiceLink>
<csvEndNavFilter handler="com.ptc.windchill.option.load.Loader.endCreateNavFilter"/>
<csvEndNavCriteria handler="com.ptc.windchill.option.load.Loader.endNavCriteria"/>
Related information