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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

State-based Images in Tree Widget

rweller
5-Regular Member

State-based Images in Tree Widget

Hello!

 

I've searched the forums to no avail for this - apologies if I missed it. I am attempting to figure out if there is a way to include state-based images for icons in the tree widget in Thingworx. Essentially we want to have a little red or green circle to indicate in the navigation tree if there is an issue with any machines at a location. Is there a way to do this that I'm simply not able to figure out? I've attached an image as an example of what I'm trying to do. The colored dots would be icon images. 

if this is not possible, is there a way to do state-formatting on the text in the tree? 

 

Thanks!

ACCEPTED SOLUTION

Accepted Solutions

Hi @rweller

I think this might be done via a State Definition.

 

  • Create the State Definition based on the Property and its values that trigger the green / red icons.
  • Then assign a Style to them where the Icons are a Media Entity (image).
  • In the Tree you can then set the Tree Formatting to the State you defined earlier, it could e.g. be based on a Boolean property that uses a true (green) and false (red) state

Cheers,

Michael

View solution in original post

2 REPLIES 2

Hi @rweller

I think this might be done via a State Definition.

 

  • Create the State Definition based on the Property and its values that trigger the green / red icons.
  • Then assign a Style to them where the Icons are a Media Entity (image).
  • In the Tree you can then set the Tree Formatting to the State you defined earlier, it could e.g. be based on a Boolean property that uses a true (green) and false (red) state

Cheers,

Michael

slangley
23-Emerald II
(To:mneumann)

Hi @rweller.

 

If the solution provided by @mneumann answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Thank you for using our Community!

 

Regards.

 

--Sharon

Announcements


Top Tags