Определить элемент <Table> для типа Requirement
Это определит таблицу для отображения объектов Requirements (действия по изменению), связанных с выбранной деталью в дереве структуры. В столбцах будут показаны следующие данные:
• Номер объекта Requirement
• Диапазон ограничения применимости объекта Requirement
• Статус объекта Requirement
• Номер объекта ChangeDirective, владеющего данным требованием
• Идентификатор детали, реализующей данный объект Requirement
• Номер объекта Requirement, предшественника данного объекта Requirement
Как определить элемент <Table> для типа Requirement
1. Откройте файл PDMLinkExplorerForTablesAndPanels.xml в следующем расположении:
<Windchill>/codebase/config/logicrepository/xml/explorer/produc
tstructure
2. В конце файла сделайте следующее:
a. Создайте следующий элемент <ExplorerElementGroup> как подэлемент элемента <LogicRepository>.
b. Определите для <ExplorerElementGroup> подэлемент <LogicContext> с типом данных Requirement.
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>
|
• Атрибут dataType элемента <LogicContext> определяет тип детали, которая будет показана в определенной таблице.
• Атрибут ID для элемента <Table> должен соответствовать ID, указанному в подэлементе импорта элемента <AssociationTable>, определенного выше.
• Атрибут attributeId элемента <CellDefinition> определяет квалифицированные данные атрибута, которые будут показаны в данной ячейке.
• Атрибут rendererClass элемента <CellDefinition> является дополнительным и переопределяет для ячейки средство рендеринга по умолчанию.
• Подэлемент <Resource> элемента <Label> ссылается на текстовую метку, определенную в файле ресурсов, который будет использоваться для заголовка столбца.
|