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" 節は、ラベルの後の「詳細」アイコンの表示とパネルのポップアップメニューを有効にします。
これは、ラベルの後の「詳細」アイコンをクリックすると表示される「詳細」ダイアログです。ユーザーは個別に属性を非表示または表示に変更できますが、属性の順序を変更することはできません。
たとえば、ユーザーは Properties 1 セクション内の Location 属性を非表示にすることができます。これはユーザーのプリファレンスとして保存されるようになったので、そのユーザーが次回 PSE をロードしたときも設定が維持されます。