Add Choices to an Option Set
Load the com.ptc.windchill.option.model.OptionSetMemberLink object in the Windchill database using Windchill loader. In order to associate a choice to the option set, choices must exist in the system. The sequence in which the choices are added to the Option Set is used as the default display order for a given option. This is used in conjunction with the create option set loader.
XML Format
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice" >
<csvname>choice name</csvname>
<csvcontainerPath>container of choice to search for choice to be added
</csvcontainerPath>
<csvmerged>true</csvmerged>
</csvAddChoice>
Table 18. Attributes for csvAddChoice
Attribute
Description
Required or Optional?
csvname
Choice name
Optional
csvchoiceNumber
Choice number
Optional
csvoption
Option name for which the choice was defined
Optional
csvoptionNumber
Option number for which the choice was defined
Optional
csvcontainerPath
Path to the context where the choice resides
Optional
csvstartDate
Start date for the choice’s effectivity
Optional
csvendDate
End date for the choice’s effectivity
Optional
csvmerged
Specify whether the choice is merged
Optional
* 
While both csvname and csvchoiceNumber are optional attributes, you must specify at least one of them.
Example
<csvAddChoice handler="com.ptc.windchill.option.load.Loader.addChoice">
<csvname>Red</csvname>
<csvcontainerPath />
<csvmerged>true</csvmerged>
</csvAddChoice>
Est-ce que cela a été utile ?