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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

How to change inner value color of ThresholdIndicatorWidget based on condition?

A_Wakde
4-Participant

How to change inner value color of ThresholdIndicatorWidget based on condition?

Hi developers,

 

Firstly, I am using ThingWorx 9.4.6 version.

 

How to implement below problem:

Problem: I want to implement to change the inner value colour of the ThresholdIndicatorWidget according to OEE property value. meaning if OEE value is below 60 then inner value colour should be RED likewise OEE value below 80 -> Yellow and below and equal to 100 -> Green.

 

I am attaching a screenshot of that widget in the name of ThresholdIndicatorWidget.png, PFA. In this image, 22 number value should be in RED colour. For inner indicator bar I have attached a new State Definition for this widget instead of its default state definition. I am attaching the image in the name of StateDefinition.png for your reference. Due to this state definition inner value colour is not changing accordingly.

 

Please help me in this. Thanks in advance.

 

 

 

 

6 REPLIES 6

Could it be you are referring to the KPI dial widget?

In your style, set the foreground color, not the background color. Also make sure the state is based on number, not on string.

 

A_Wakde
4-Participant
(To:Rocko)

Thank you Rocko for replied to the post.

  • I have applied your approach but still no luck.
  • This is not the KPI dial widget, it is a ThresholdIndicator widget. KPI dial widget is not available in the Thingworx 9.4.6 version.
  • In my state definition I have set background, secondary background, text and line colour to red and do it for yellow and green colour as well.
  • My state definition is based on Number not a String .
  • AW_13823420_0-1758607048290.pngAW_13823420_1-1758607097876.png
  • See the above attached images for your clarification. Please, let me know if you need any other information

I only have KPI dial here so it may be different. What you can try is to unset the state formatting property on the widget, save it, and then re-set the state def you created. I needed to do this for the system to load the changes in the styles of the State Definition. If that doesn't help it might be a bug.

A_Wakde
4-Participant
(To:Rocko)

Hi Rocko,

I have done it what you have told. But changes didn't reflect on widget. still there is no luck. can you have another approach to implement this functionality? please, let me know. Thanks for your effort.

no sorry. you can try to start from scratch, create a new mashup with only the one widget, just to try it out. if it still doesn't work it's a bug and you can try to create a ticket with PTC support but 9.4 at this time is probably not supported anymore.

(it could be a browser issue as well so maybe try a different browser just to rule it out)

A_Wakde
4-Participant
(To:Rocko)

Ok. I have tried with different browser but not working. I will create a ticket with PTC support.

Announcements


Top Tags