Remote Table
To add additional columns to remote DPT tables such as Trace To and Remote Traces table, follow these steps:
1. Access the TraceLinksClient-configuredAttributes.properties.xconf file.
This file is located in the wcEnterprise\TraceLinksClient\src\com\ptc\windchill\enterprise\tracelink directory.
2. Add the attribute values for the additional columns to the appropriate table ID.
The entries must be in the following format:
<Option requestor="java.lang.Object" selector="<DPT Table ID>"
resource="<Column ID>:<Data Utility ID>:<Sortable>:<Data Stored Locally>:<Remote Column>" />
* 
Out-of-the-box, the following table IDs are supported:
object.trace.traceTo—for adding columns to the Trace To table
object.trace.remoteTraces—for adding columns to the Remote Traces table
Use a comma-separated list to add entries for multiple columns.
For example, to add an additional column to the Traced To table, specify the values in following format:
<Configuration targetFile="codebase/configuredAttributes.service.properties">
<Resource context="default" name="com.ptc.jca.table.remoteAndLocalColumns">
<Option requestor="java.lang.Object" selector="object.trace.traceTo" resource="xMaterial::true:false:true" />
</Resource>
</Configuration>
Where,
object.trace.traceTo is the table ID for Traced To table.
xMaterial is the column ID.
The data utility value is empty as remote data is fetched.
True indicates that the column is sortable.
False indicates that the remote data is not stored locally.
True indicates that the column is remote.
3. Build the TraceLinksClient module.
4. Run xconfmanager -p from Windchill shell.
Alternatively, you can use the command xconfmanager -pF.
5. Restart the Method Server.
6. Configure attribute mappings for the additional columns in the OSLCResourceAttributeMappingConfigTable in ThingWorx Platform. For more information about attribute mapping, see Configuring the Windchill DPT Extension.
7. Verify that the configured columns appear in the remote DPT table.
Attributes to be Specified in the Configuration File
Attribute
Description
<Column ID>
Specify the column ID.
This value must match the internal name of the column mapped in the OSLCResourceAttributeMappingConfigTable in ThingWorx Platform. For more information about attribute mapping, see Configuring the Windchill DPT Extension.
* 
The display name of the column can be customized using the Text Tailoring feature of Windchill. For more information, see Managing Text Tailoring.
<Data Utility ID>
Leave this empty unless using a data utility.
* 
If you are using a data utility to manage data, specify the data utility ID. For more information about creating a data utility, see Creating a Data Utility in Attribute Customization.
<Sortable>
Set to true to enable data sorting.
Set to false to disable data sorting.
<Data Stored Locally>
Set to false, if the column is remote.
Set to true, if the column is local.
<Remote Column>
Set to true to mark the column as remote.
Set to false if you are using a data utility to manage data.
* 
For more information about creating a data utility, see Creating a Data Utility in Attribute Customization.
Isto foi útil?