Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hi,
1) Is there any way we can create a service to upload tokens to a localization table?
2) Is there a way to manage localization table in a better way instead of adding each token manually?
3) Also how do we use locations inside the service?
Solved! Go to Solution.
1. you can use LocalizationTables[<table_name>].AddToken({name: '', value: ''});
2. You can create a UI to manage your tokens.
3. Are you saying how to get a token value in service? You can use one of following services, based on your need,
1. you can use LocalizationTables[<table_name>].AddToken({name: '', value: ''});
2. You can create a UI to manage your tokens.
3. Are you saying how to get a token value in service? You can use one of following services, based on your need,
Thanks for the response.
All the responses are helpful.
Is there any documentation where i can get list of all such services, for e.g. some kind of documentation which i can refer and know that i can use something like LocalizationTables[<table_name>].AddToken({name: '', value: ''}); ?
Hi @VR_10133499,
Documentation per se is available here: https://support.ptc.com/help/thingworx_hc/javadoc/com/thingworx/resources/localization/RuntimeLocalizationFunctions.html
However typically we don't go there if we try to use those services, simply because the service editor in the ThingWorx Composer gives easy access to the services, in the Snippet section in this case, as @Bikash_Panda shared already. Hovering on them gives the exact explanations in the link above.
However, in addition to the Snippets, you can also choose to see in the "Me/entities" all the services of all the entities in the platform - also for Localization Tables.
These are features of the ThingWorx Composer that were in the platform since the beginning, and are crucial to know and use to have maximum efficiency.