cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update style definition using script

SOLVED
Aquamarine

How to update style definition using script

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,

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to update style definition using script

5 REPLIES 5

Re: How to update style definition using script

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?

Re: How to update style definition using script

@PaiChung 

 

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.

Re: How to update style definition using script

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

Re: How to update style definition using script

Re: How to update style definition using script

Hi @odukiya 

 

The first url found to be useful. Thanks.

 

Just like CreateStyleDefinition , the UpdateStyleDefinition service also exists in EntityServices resource.

 

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!