Tailor ThingWorx Navigate Tasks > Synchronize Attributes List with Windchill
Synchronize Attributes List with Windchill
My Tasks displays attributes that are defined and stored in Windchill. To optimize data retrieval, ThingWorx Navigate caches the sets of attributes and their metadata. This cache is used for the task and tailoring pages of My Tasks. You need to manually refresh this cache when there are changes that affect the display name of an attribute or when the list of attributes on one of the relevant Windchill types is modified. Such changes include:
The display name of a tailorable attribute is changed
A new soft attribute is created on a change request or work item
A tailorable attribute is deleted
Manually refreshing the cache refreshes the cache for both ThingWorx Navigate and the OData connector.
You can refresh the cache through an external URL or through ThingWorx Composer. Note that only an administrator has permission to refresh the cache.
Refreshing the Cache Through an External URL
1. Configure yourThingWorx Foundation to enable external URLs. If your ThingWorx Foundation is already configured to enable external URLs, skip to step 2.
a. Open ThingWorx Composer. In the Browse menu, navigate to System, and select Subsystems.
b. Under Subsystems, select PlatformSubsystem and then select Configuration at the top of the page.
c. Select the Allow Request Method Switch check box.
2. Enter the following URL into your internet browser: <protocol>://<server>:<port>/Thingworx/Things/PTC.WCAdapter/Services/RefreshMetadata?method=POST&Accept=application/json. Make sure to add the correct protocol, server, and port.
3. Provide your administrator credentials. A status message appears.
4. Review the status message to see if the cache is successfully refreshed.
Refreshing the Cache Through ThingWorx Composer
1. Log in to ThingWorx Composer using your administrator credentials. In the Browse menu, navigate to Modeling, and select Things.
2. Under Things, select PTC.WCAdapter and then select Services at the top of the page.
3. Navigate to the service RefreshMetadata and execute it. You can execute it directly from the Services page, or you can click on RefreshMetadata and execute it there. A status message appears.
4. Review the status message to see if the cache is successfully refreshed.
Was this helpful?