Define the <Table> element for the Requirement type
This will define a table to display Requirements (Change Actions) associated with the selected part in the Structure Tree. The following data will be displayed in columns:
• The number of the Requirement
• The effectivity range of the Requirement
• The status of the Requirement
• The number of the ChangeDirective owning this requirement
• The identifier of the part which fulfills this Requirement
• The number of this Requirement's predecessor Requirement
To define the <Table> element for the Requirement type
1. Open the PDMLinkExplorerForTablesAndPanels.xml file from the following location:
<Windchill>/codebase/config/logicrepository/xml/explorer/produc
tstructure
2. At the end of the file:
a. Create the following <ExplorerElementGroup> as a sub-element of the <LogicRepository> element.
b. Define a <LogicContext> sub-element of the <ExplorerElementGroup> with the data type of the Requirement.
c. Define the <Table> element and the columns, <CellDefinition> elements, to be displayed in the table.
<LogicRepository>
...
<ExplorerElementGroup>
<LogicContext
application="ptc.pdm.ProductStructureExplorer"
dataType="wt.change2.ChangeAction"/>
<Table id="airbus.wnc.exp.ChangeActionTabTable"
selectionMode="multi-non-contiguous" displayMode="view">
<CellDefinition id="number" mandatory="true" \
pinned="true">
<Label>
<Resource key="reqNumberLabel"/>
</Label>
<AttributeDefinition attributeId="number"/>
</CellDefinition>
<CellDefinition id="effVector" mandatory="true">
<Label>
<Resource key="reqValidityLabel"/>
</Label>
<AttributeDefinition attributeId="displayEffectivity"/>
</CellDefinition>
<CellDefinition id="theActionState"
mandatory="true">
<Label>
<Resource key="reqStatusLabel"/>
</Label>
<AttributeDefinition attributeId="theActionState"/>
</CellDefinition>
<CellDefinition id="owningChangeDirective"
mandatory="true">
<Label>
<Resource key="relatedCINLabel"/>
</Label>
<AttributeDefinition attributeId="MBA|
owningChangeDirectiveReference^WCTYPE|
wt.change2.WTChangeDirective~MBA|number"
rendererClass="com.ptc.windchill.explorer.structureexplorer.ren
derer.component.TypeIconifiedStringComponent"/>
</CellDefinition>
<CellDefinition id="satisfyPartMaster"
mandatory="true">
<Label>
<Resource key="fulfillingDSLabel"/>
</Label>
<AttributeDefinition attributeId="MBA|
satisfyPartMasterReference^WCTYPE|wt.part.WTPartMaster~MBA|
masterReference@WCTYPE|wt.part.WTPart~SCA|displayIdentifier"
rendererClass="com.ptc.windchill.explorer.structureexplorer.ren
derer.component.TypeIconifiedStringComponent"/>
</CellDefinition>
<CellDefinition id="oldActionReference"
displayWhenNoPreferenceSet="false">
<Label>
<Resource key="reqPredecessorLabel"/>
</Label>
<AttributeDefinition attributeId="MBA|
oldActionReference^WCTYPE|wt.change2.ChangeAction~MBA|number"
rendererClass="com.ptc.windchill.explorer.structureexplorer.ren
derer.component.TypeIconifiedStringComponent"/>
</CellDefinition>
</Table>
</ExplorerElementGroup>
</LogicRepository>
|
• The dataType attribute of the <LogicContext> element defines the type of part which will be displayed in the table defined.
• The id attribute for the <Table> must match the id specified in the import sub-element of the <AssociationTable> element defined above.
• The attributeId attribute of the <CellDefinition> element defines the qualified attribute data to be displayed in that cell.
• The rendererClass attribute of the <CellDefinition> element is optional and overrides the default renderer for the cell.
• The <Resource> sub-element of the <Label> element refers to the text label defined in the resource file to be used for column header.
|