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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to update style definition using script

ranjank
15-Moonstone

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,

ACCEPTED SOLUTION

Accepted Solutions
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
15-Moonstone
(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
13-Aquamarine
(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

ranjank
15-Moonstone
(To:odukiya)

Hi @odukiya 

 

The first url found to be useful. Thanks.

 

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

 

Announcements


Top Tags