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.
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.
Thank you Rocko for replied to the post.
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.
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)
Ok. I have tried with different browser but not working. I will create a ticket with PTC support.