Amministrazione generale > Caricamento di dati Windchill > Loading Data for Product Families and Options and Variants > Loading Data From XML > Navigation Criteria
  
Navigation Criteria
Load the NavigationCriteria type in Windchill database using Windchill loader.
Loader enables users to load the contents of the Navigation Criteria:
Value for Apply to top level object
Part Configuration Specification
ATO Navigation filter (inside this, Option Filter, Option Filter Configuration Specification, choice selection, and so on, can be loaded)
XML Format
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.
beginCreateNavCriteria" >
<csvname>navigation criteria name</csvname>
<csvuser>windchill user for whom navigation criteria is to be created</csvuser>
<csvpartNumber>part number to which this criteria needs to be applied</csvpartNumber>
</csvBeginNavCriteria>

. . .

<csvEndNavCriteria handler= "com.ptc.windchill.option.load.Loader.endNavCriteria" />
Table 21. Attributes for csvBeginNavCriteria
Attribute
Description
Required or Optional?
csvname
Navigation criteria name
Required
csvuser
User name
Optional
csvpartNumber
Part number with which the navigation criteria are associated
Required
csvapplyToTop
Indicator to specify the value for Apply to top level object (true or false).
Optional
Example
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.beginCreateNavCriteria">
<csvname>NavCriteria001</csvname>
<csvpartNumber>ConfigPart</csvpartNumber>
<csvapplyToTop>false</csvapplyToTop>
</csvBeginNavCriteria>

<csvBeginPartConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.PartConfigSpecXMLLoader.beginConfigSpecsHandle">
</csvBeginPartConfigSpecs>
<csvPartConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.PartConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>partConfigSpec1</csvconfigspecname>
<csvviewname></csvviewname>
<csvlifecyclestate>INWORK</csvlifecyclestate>
<csveffectivitydate>2020-04-05</csveffectivitydate>
</csvPartConfigSpec>
<csvEndPartConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.PartConfigSpecXMLLoader.endConfigSpecsHandle"/>

<csvBeginNavFilter handler="com.ptc.windchill.option.load.Loader.beginCreateNavFilter">
<csvoptionSet>OptionSet-1</csvoptionSet>
<csvoptionsetRevision>A</csvoptionsetRevision>
<csvfilterMode>1</csvfilterMode>
<csvdisableRuleChecking>true</csvdisableRuleChecking>
</csvBeginNavFilter>

<csvBeginOptionFilterConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.beginConfigSpecsHandle">
<csveffectivityformat>dd/MM/yyyy</csveffectivityformat>
</csvBeginOptionFilterConfigSpecs>

<csvOptionFilterConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>partConfigSpec1</csvconfigspecname>
<csvlifecyclestate></csvlifecyclestate>
</csvOptionFilterConfigSpec>

<csvOptionFilterConfigSpec handler ="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.loadConfigSpec">
<csvconfigspecname>partConfigSpec2</csvconfigspecname>
<csveffectivitydate>07/02/2020</csveffectivitydate>
</csvOptionFilterConfigSpec>

<csvEndOptionFilterConfigSpecs handler="com.ptc.windchill.option.variantspec.loader.ATORuleConfigSpecXMLLoader.endConfigSpecsHandle"/>

<csvEndNavFilter handler="com.ptc.windchill.option.load.Loader.endCreateNavFilter"/>
<csvEndNavCriteria handler="com.ptc.windchill.option.load.Loader.endNavCriteria"/>
<csvBeginNavCriteria handler="com.ptc.windchill.option.load.Loader.beginCreateNavCriteria">
<csvname>Red Colour Body</csvname>
<csvuser>demo</csvuser>
<csvpartNumber>Body</csvpartNumber>
</csvBeginNavCriteria>

<csvBeginNavFilter handler="com.ptc.windchill.option.load.Loader.
beginCreateNavFilter"
>
<csvoptionSet>Colour Pallet</csvoptionSet>
</csvBeginNavFilter>

<csvChoiceMappableChoiceLink
handler="com.ptc.windchill.option.load.Loader.createChoiceMappableChoiceLink">
<csvchoiceName>Red</csvchoiceName>
<csvInstanceValue/>
<csvExclude/>
</csvChoiceMappableChoiceLink>
<csvChoiceMappableChoiceLink
handler="com.ptc.windchill.option.load.Loader.createChoiceMappableChoiceLink">
<csvchoiceName>Glossy</csvchoiceName>
<csvInstanceValue/>
<csvExclude/>
</csvChoiceMappableChoiceLink>

<csvEndNavFilter handler="com.ptc.windchill.option.load.Loader.endCreateNavFilter"/>

<csvEndNavCriteria handler="com.ptc.windchill.option.load.Loader.endNavCriteria"/>