Configuration for Exporting Object Information and Security Label Values
Before exporting information about objects and the security labels applied to those objects, some additional configuration is required.
1. Enable security labels for display in table views. For more information, see Step 17: Display Security Labels in Table Views — Optional.
2. Modify the AvailableAttributes.xml file to allow the object identifier attribute to display in table views.
a. If you have not already done so, establish a safe area for customized files. For more information, see Setting Up a Directory Structure for Managing Customized Files and Text Tailoring.
b. Navigate to the following source file: <Windchill>/codebase/com/ptc/core/htmlcomp/createtableview/AvailableAttributes.xml
where <Windchill> is the installed location of your Windchill solution.
c. Copy the AvailableAttributes.xml file to the following locations:
<Windchill>/wtSafeArea/siteMod/codebase/com/ptc/core/htmlcomp/createtableview
and
<Windchill>/wtSafeArea/ptcOrig/codebase/com/ptc/core/htmlcomp/createtableview
d. Open the <Windchill>/wtSafeArea/siteMod/codebase/com/ptc/core/htmlcomp/createtableview/AvailableAttributes.xml file in a text editor.
e. Add the following line under the <!-- js id mappings --> section, immediately following the other Map elements:
<Map id="thePersistInfo.theObjectIdentifier" jsId="objOID"/>
f. Add the following line under the <Class name=”wt.fc.Persistable”> element:
<Attribute id="thePersistInfo.theObjectIdentifier"/>
g. Save and close.
3. Modify the SearchResultsTable.properties.xconf file to allow for exporting security labels from the Search Results table.
a. Navigate to the following source file: <Windchill>/codebase/com/ptc/netmarkets/search/SearchResultsTable.properties.xconf
b. Copy the SearchResultsTable.properties.xconf file to the following locations:
<Windchill>/wtSafeArea/siteMod/codebase/com/ptc/netmarkets/search
and
<Windchill>/wtSafeArea/ptcOrig/codebase/com/ptc/netmarkets/search
c. Open the <Windchill>/wtSafeArea/sitemod/codebase/com/ptc/netmarkets/search/SearchResultsTable.properties.xconf file in a text editor.
d. Edit the file as described below:
If the Windchill Service Parts module is not installed then:
Modify the following line:
<Option serviceClass="com.ptc.netmarkets.search.views.PersistableResultTableView" requestor="java.lang.Object"
selector="wt.fc.Persistable.defaultSearchView"/>
to update the subclass to the following:
<Option serviceClass="com.ptc.netmarkets.search.views.PersistableAllAttrsResultTableView" requestor="java.lang.Object"
selector="wt.fc.Persistable.defaultSearchView"/>
If the Windchill Service Parts module is installed then:
Modify the following line:
<Option serviceClass="com.ptc.arbortext.windchill.partlist.view.PartsListAllAttrsResultTableView" requestor="java.lang.Object"
selector="com.ptc.arbortext.windchill.partlist.PartList.defaultAllTypesSearchView"/>
to update the subclass to the following:
<Option serviceClass="com.ptc.netmarkets.search.views.PersistableAllAttrsResultTableView" requestor="java.lang.Object"
selector="com.ptc.arbortext.windchill.partlist.PartList.defaultAllTypesSearchView"/>
e. Save and close.
f. From within a windchill shell, run the following command to copy your updated files to the installation directory:
ant -f bin/swmaint.xml installSiteChanges
g. From within a windchill shell, run the following command to propagate the changes:
xconfmanager -pF
4. Restart your Windchill method server.
Was this helpful?