Please share the snippet or logic, if any provided by PTC.
Also let me know how to use that snippet with any example.
The thingworx version is 8.3.
Thanks in advance,
Solved! Go to Solution.
Hello @ranjank
Please find following community post to answer your query
https://community.ptc.com/t5/ThingWorx-Developers/Style-definition-using-scripts/td-p/606413
Let me know if this one is of any help
Thanks
Om Dukiya
What is your use case that you want to update it using script?
Would normal enable/disable states or state definitions work for your use case?
Actually I want to pass different components like background color, foreground color(color codes), Italic, Underline(boolean) etc from mashup as inputs and then update the styles assigned to state definition for various nodes of tree widget.
Hi @ranjank , You can use custom classes property of a widget to update the style using services . But I am not sure it is present in version 8.3
Hello @ranjank
Please find following community post to answer your query
https://community.ptc.com/t5/ThingWorx-Developers/Style-definition-using-scripts/td-p/606413
Let me know if this one is of any help
Thanks
Om Dukiya
Hi @odukiya
The first url found to be useful. Thanks.
Just like CreateStyleDefinition , the UpdateStyleDefinition service also exists in EntityServices resource.