Customizing Service Product Structure Explorer
Windchill Explorers, including the Service Product Structure Explorer, can be customized. Refer to Customizing the Product Structure Explorer (PSE) and its surrounding topics in the Windchill Help Center for details on customizing explorers. This section contains details specific to customizing Service Product Structure Explorer.
Overview
Explorer configuration files are located in the following directory:
codebase\config\logicrepository\xml\explorer
In that directory, the \servicebom directory contains the XML files that specify how Service Product Structure Explorer appears and functions. Specifically, the files define how Service Product Structure Explorer differs from Manufacturing Product Structure Explorer and Product Structure Explorer. This XML has a logic context of ptc.sis.ProductStructureExplorer, specified at the beginning of each XML file as follows:
<LogicContext application="ptc.sis.ProductStructureExplorer"/>
This logic context is used to determine which hierarchy of XML elements to use to build the user interface. An additional layer of customization XML is also used to build the user interface. This layer of XML resides in the \explorer\customization directory. By default, \customization contains the file CustServiceBOMExplorerMain.xml for defining customizations to Service Product Structure Explorer. Service Product Structure Explorer customization XML files specify a logic context of ptc.cust.sis.ProductStructureExplorer.
Customizing Service Product Structure Explorer
Use CustServiceBOMExplorerMain.xml to customize Service Product Structure Explorer in a manner similar to how the files in \servicebom differentiate Service Product Structure Explorer from Manufacturing Product Structure Explorer and Product Structure Explorer. You can use files other than CustServiceBOMExplorerMain.xml, but the application ID for all XML segments must be ptc.cust.sis.ProductStructureExplorer.
Use the following steps to customize Service Product Structure Explorer:
1. Add new or modified explorer groups below the appropriate comment line in your product installation directory copy of the following file:
\codebase\config\logicrepository\xml\
explorer\customization\CustServiceBOMExplorerMain.xml
Alternately, copy files from \servicebom to \customization and add or change the elements in the files in \customization. Ensure that the application ID for all XML segments is ptc.cust.sis.ProductStructureExplorer.
2. Restart the method server to update the logic repository.
3. Start Windchill Service Parts and Service Product Structure Explorer to review the changes.
Examples
Hiding a Menu Item:
<ExplorerElementGroup>
<LogicContext application="ptc.cust.sis.ProductStructureExplorer"/>
<!-- This markup will remove the Preferences dialog menu item -->
<!-- from the sPSE File menu -->
<ActionAccess id="ptc.pdm.pse.ExplorerTreeAA">
<MenuBar id="MenuBar">
<Menu id="FileMenu">
<MenuItem id="FileSISPreferencesMI">
<Placement remove="true"/>
</MenuItem>
</Menu>
</MenuBar>
</ActionAccess>
</ExplorerElementGroup>
Modifying a Table:
<ExplorerElementGroup>
<LogicContext application="ptc.cust.sis.ProductStructureExplorer"
dataType="wt.part.WTPart" />
<!-- This markup will cause the "name" column in the dual tree -->
<!-- view upstream tree to be hidden by default. The column can -->
<!-- still be re-enabled by right-clicking on any column heading -->
<!-- from that tree, and selecting "Name." -->
<Table id="ptc.mpm.pse.DualModeMainTreeTable"
selectionMode="multi-non-contiguous"
displayMode="view">
<CellDefinition id="name" displayWhenNoPreferenceSet="false"/>
</Table>
</ExplorerElementGroup>