Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi All
Would like to assign a source URL to Link widget by Thingworx service. Can you please let me know how to access a Link widget and its properties from Thingworx service.
Appreciate your help.
Thanks.
Solved! Go to Solution.
Hi @nmohammed.
You would actually need to bind the output of the service to the link widget's source url binding target. The service would use the needed logic to generate the url and output it as a string. Make sure the result is bound to the link widget as SourceURL in the mashup. Also make sure the url is complete and includes the protocol, domain, path, etc.
If you have any problems, please let us know.
Regards.
--Sharon
Hi @nmohammed.
You would actually need to bind the output of the service to the link widget's source url binding target. The service would use the needed logic to generate the url and output it as a string. Make sure the result is bound to the link widget as SourceURL in the mashup. Also make sure the url is complete and includes the protocol, domain, path, etc.
If you have any problems, please let us know.
Regards.
--Sharon
Thanks for quick reply. Appreciated.
I cannot bind the service at this moment. Am looking for method that will allow me to access link widget and assign a value to soureURL property when I run a service manually during deployment.
Example: Groups["IIOT_Admin"].AddMember(params); Am looking similar methods to access it.
Hi @nmohammed.
It is not possible to access a specific widget on a mashup via a service. You would need to define the service to output the data you wish to use in the mashup and pull in that service as a data source for the mashup.
This link from the ThingWorx Help Center may help to explain how this works. Also, if it's training that you need, please reach out to the Sales team to discuss options. We have courses that can walk you through specific examples required for your design.
Regards.
--Sharon
Hi @nmohammed.
If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon