其他 Windchill 功能 > 製造流程管理 > 自訂產品結構總管 (PSE) > 建立「要求」標籤 > 定義「要求」類型的 <Table> 元素
  
定義「要求」類型的 <Table> 元素
如此可定義表格,以便在結構樹中顯示與所選零件相關聯的「要求」(「變更動作」)。下列資料將會顯示在欄中:
「要求」的數目
「要求」的生失效範圍
「要求」的狀況
擁有此要求的 ChangeDirective 的數目
達成此「要求」的零件識別元
此「要求」的前置任務「要求」數目
欲定義「要求」類型的 <Table> 元素
1. 從下列位置開啟 PDMLinkExplorerForTablesAndPanels.xml 檔案:
<Windchill>/codebase/config/logicrepository/xml/explorer/produc
tstructure
2. 在檔案結尾:
a. 將下列 <ExplorerElementGroup> 建立為 <LogicRepository> 元素的子元素。
b. 以「要求」的資料類型定義 <ExplorerElementGroup> 的 <LogicContext> 子元素。
c. 定義將顯示在表格中的 <Table> 元素和欄以及 <CellDefinition> 元素。
<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>
* 
<LogicContext> 元素的 dataType 屬性可定義將顯示在所定義表格中的零件類型。
<Table> 的 ID 屬性必須與上列定義的 <AssociationTable> 元素的匯入子元素內所指定的 ID 相符。
<CellDefinition> 元素的 attributeId 屬性可定義將顯示在該儲存格中的合格屬性資料。
<CellDefinition> 元素的 rendererClass 屬性為選用性質,可取代該儲存格的預設顯示程式。
<Label> 元素的 <Resource>子元素係指在將用於欄標題的資源檔案中所定義的文字標籤。