其他 Windchill 功能 > 製造流程管理 > 自訂產品結構總管 (PSE) > 在區段標題內自訂屬性顯示 > 自訂群組內屬性的顯示
  
自訂群組內屬性的顯示
SectionHeading 元素中有可供您編輯屬性群組詳細資訊的子句。您可使用此子句在顯示畫面的面板中隱藏或顯示特定屬性,例如「建立零件精靈」、「插入現有零件精靈」或「資訊標籤」。
在下列範例程式碼中,"allowAttrDetails = true" 子句已新增至「插入現有零件精靈」所用的 CreateChildPartTab2 屬性群組的 SectionHeading 元素中。
範例程式碼:
<AttributeGroup id="ptc.wnc.exp.CreateChildPartTab2"
scrollable="true" displayMode="edit">
<SectionHeading allowAttrDetails="true">
<Label>
<Resource key="Properties Top"/>
</Label>
</SectionHeading>
<CellDefinition id="name">
<AttributeDefinition attributeId="name"/>
</CellDefinition>
<CellDefinition id="number">
<AttributeDefinition attributeId="number"
rendererClass="com.ptc.windchill.explorer.structureexplorer.render
er.component.PartNumberComponent"/>
</CellDefinition>
<SectionHeading allowAttrDetails="true">
<Label>
<Resource key="Properties 1"/>
</Label>
</SectionHeading>
<CellDefinition id="view">
<AttributeDefinition attributeId="view"
rendererClass="com.ptc.windchill.explorer.structureexplorer.render
er.component.ViewComponent"/>
</CellDefinition>
<CellDefinition id="folder">
<AttributeDefinition attributeId="folder"
rendererClass="com.ptc.windchill.explorer.structureexplorer.render
er.component.DefaultcontextFolderBrowserComponent"/>
</CellDefinition>
<CellDefinition id="source">
<AttributeDefinition attributeId="source"/>
</CellDefinition>
<CellDefinition id="partType">
<AttributeDefinition attributeId="partType"/>
</CellDefinition>
<SectionHeading allowAttrDetails="true">
<Label>
<Resource key="Properties 2"/>
</Label>
</SectionHeading>
<CellDefinition id="usedQuantityAmount">
<AttributeDefinition attributeId="usedQuantityAmount"/>
</CellDefinition>
<CellDefinition id="usedQuantityUnit">
<AttributeDefinition attributeId="usedQuantityUnit"/>
</CellDefinition>
<CellDefinition id="usedTraceCode">
<AttributeDefinition attributeId="usedTraceCode"/>
</CellDefinition>
<CellDefinition id="effPropagationStop">
<AttributeDefinition attributeId="effPropagationStop"/>
</CellDefinition>
<CellDefinition id="jobAuthorizationNumber">
<AttributeDefinition
attributeId="jobAuthorizationNumber"/>
<EnabledDependency inverted="false">
<Assembly assembly="wadm"/>
</EnabledDependency>
</CellDefinition>
<CellDefinition id="contractNumber">
<AttributeDefinition attributeId="contractNumber"/>
<EnabledDependency inverted="false">
<Assembly assembly="wadm"/>
</EnabledDependency>
</CellDefinition>
<CellDefinition id="phase">
<AttributeDefinition attributeId="phase"/>
<EnabledDependency inverted="false">
<Assembly assembly="wadm"/>
</EnabledDependency>
</CellDefinition>
</AttributeGroup>
新增 "allowAttrDetails=true" 子句後,會在 UI 中產生下列輸出。
新增 SectionHeading 會在 SectionHeading 後的屬性群組周圍建立一個方塊。
SectionHeading 的 Label 子句會提供方塊文字。
AllowAttrDetails ="true" 子句可啟用「詳細資訊」圖示,使其顯示在標籤之後,也可啟用面板的快顯選單。
這是您按一下標籤後的「詳細資訊」圖示之後所顯示的「詳細資訊」對話方塊。使用者可以隱藏或顯示個別屬性,但不能變更屬性的順序。
例如,使用者可以選擇隱藏「屬性 1」部份內的「位置」屬性。現已另存為此使用者的偏好設定,並在下一次使用者載入 PSE 之前,一直保持此狀態。