其他 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> 子元素指在将用于列标题的资源文件中定义的文本标签。