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

Updating Property Attributes Programmatically

Highlighted
Amethyst

Updating Property Attributes Programmatically

This answers the question but brings up another for the developers: Is there any chance of adding this functionality to the list of Services available to end users?  Specifically to change Property Category, Data Change Type, etc. via scripting.

1 REPLY 1

Re: Updating Property Attributes Programmatically

Hello,

 

You should be able to get it done via a trivial extension (I didn't test it though):

getProperty("myProperty").getPropertyDefinition().setCategory("newCategory");
getProperty("myProperty").getPropertyDefinition().getDataChangeType(DataChangeType.ALWAYS);

 

/ Constantine 

Announcements

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