Local Table
In this example, the Affected Objects table is configured to add additional columns to display remote object data.
Follow these steps:
1. Access the ChangeManagement-service.properties.xconf file.
This file is located in the wcEnterprise/ChangeManagement/src/com/ptc/windchill/enterprise/change2 directory.
2. Add attribute values for the additional columns to the table ID changeRequest_affectedData_table.
The entries must be in the following format:
<Option requestor="java.lang.Object" selector="changeRequest_affectedData_table" resource=
"IBA|<Column ID>::<Data Utility ID>::<Sortable>::<Data Stored Locally>" />
* 
Use a comma-separated list to add entries for multiple columns.
All columns added to the xconf properties file are treated as remote columns.
For example, specify the values in following format:
<Resource context="default" name=com.ptc.jca.table.remoteColumns">
<Option requestor="java.lang.Object" selector="changeRequest_affectedData_table" resource="IBA|xMaterial::::true::false" />
</Resource>
Where,
changeRequest_affectedData_table is the table ID for Affected Objects 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.
3. Build the ChangeManagement module.
4. Run xconfmanager -p from the Windchill shell.
Alternatively, you can use the command xconfmanager -pF.
5. Restart the Method Server.
6. Create a global attribute for the column in the Type and Attribute Management utility and add it to the Affected Objects table view.
For more information on creating a new global attribute, see Working with the Type and Attribute Management Utility.
For more information on custom table views, see Customizing Table Views.
7. 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.
8. Verify that the configured columns appear in the Affected Objects 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.
<Sortable>
Set to True to enable data sorting.
Set to False to disable data sorting.
<Data Stored Locally>
Set to false as the column is remote.
Isto foi útil?