其他 Windchill 功能 > 製造流程管理 > 自訂產品結構總管 (PSE) > 自訂 PSE 表格顯示 > 解決方案 > 程序
  
程序
下列檔案中的表格 ID ptc.wnc.exp.PartUsesLinkTabTable:
<Windchill>/codebase/config/logicrepository/xml/explorer/structureexplorer/Explorer ForTablesAndPanels.xml
用於在顯示使用 ptc.wnc.exp.PartUsesOccTabTable 出現位置時,顯示「使用表 BOM」。
藉由變更表格的 CellDefinition 順序,及針對必填欄、displayWhen NoPreferenceSet、可釘選欄、已釘選欄和 usedByTabularInput 指定適當的值,即可構成所需的表格。
<Table id="ptc.wnc.exp.PartUsesLinkTabTable"
selectionMode="multi-non-contiguous" displayMode="view">
<CellDefinition id="name" pinned="true" mandatory="true"
usedByTabularInput="true" displayModeOverride="edit">
<AttributeDefinition attributeId="name">
<Import id="ptc.wnc.exp.SurfaceAttrAction"/>
</AttributeDefinition>
</CellDefinition>
<CellDefinition id="referenceDesignatorRange"
pinned="true" mandatory="false" displayModeOverride="edit">
<Label>
<Resource key="referenceDesignatorRangeLabel"/>
</Label>
<AttributeDefinition
attributeId="referenceDesignatorRange">
<Import id="ptc.wnc.exp.RefDesRangeAttrAction"/>
</AttributeDefinition>
</CellDefinition>
<CellDefinition id="number" pinned="false"
mandatory="false" displayWhenNoPreferenceSet="true"
usedByTabularInput="false" displayModeOverride="edit">
<AttributeDefinition attributeId="number">
<Import id="ptc.wnc.exp.SurfaceAttrAction"/>
</AttributeDefinition>
</CellDefinition>
<CellDefinition id="usedLineNumber" pinned="false"
mandatory="false" displayWhenNoPreferenceSet="false"
displayModeOverride="edit">
<Label>
<Resource key="lineNumberLabel"/>
</Label>
<AttributeDefinition attributeId="usedLineNumber"
rendererClass="com.ptc.windchill.explorer.structureexplorer.render
er.component.LineNumberComponent">
<Import id="ptc.wnc.exp.LineNumberAttrAction"/>
</AttributeDefinition>
</CellDefinition>
進行此變更之後,必須重新啟動應用伺服器。用戶端 UI 可能仍然無法正確顯示,這是因為使用者偏好設定是用來保留目前的表格版面配置。欲解決此問題,請使用「檔案」 > 「偏好設定」動作,然後重設欄/視窗版面配置偏好設定。重新啟動 PSE 時,會顯示「使用」標籤,如預期結果中所示。