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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to update style definition using script

ranjank
14-Alexandrite

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
odukiya
15-Moonstone
(To:ranjank)
5 REPLIES 5
PaiChung
22-Sapphire I
(To:ranjank)

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?

ranjank
14-Alexandrite
(To:PaiChung)

@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.

anarwal
12-Amethyst
(To:ranjank)

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

odukiya
15-Moonstone
(To:ranjank)

ranjank
14-Alexandrite
(To:odukiya)

Hi @odukiya 

 

The first url found to be useful. Thanks.

 

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

 

Top Tags