The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Hi All,
I am building a mashup in Thingworx 9.0 where I have to display status of machine i.e. either running or stopped. I am getting that status via a service which I have binded to a data shape.
Requirement is to show status of machine in green if machine is running and red if machine is stopped. I used value display to show the value status and in background I placed a shape whose colour will change as per status of machine.
I have binded data of service to shape, but i am not able to find exact state formatting to achieve this result. Currently i have configured ALERT TYPE(as shown in attached image). Kindly suggest how to achieve this. I have attached an image showing the objective that needs to be achieved.
Solved! Go to Solution.
Hello @VK_9460892
Sorry for the late reply here. You can refer the following post to achieve your use case.
I tried it the following way and it worked
1) Created a service where result is string ( 'Running' or 'Not Running')
2) created a new State definition (colour test) with 2 new state string definition for both values
3) bind the output of service to shape data
4) when trying to set state based formatting select the one you have created (Colour Test)
I hope it will work for you,feel free to revert in case you face further challenges.
Thanks
Om Dukiya
Hello @VK_9460892
Please refer following post for your problem
Let me know if it doesn't resolve your issue.
Thanks
Om Dukiya
Hello @odukiya
Thanks for taking out your time to respond to my query.
I have already applied the colour changing filter on progress gauge, based on range concept given in your provided solution in the thermometer post. It is working perfectly fine.
However, here I need to use string as an input and change colour, which is not working for me.
Kindly suggest. Thanks.
Hello @VK_9460892
Sorry for the late reply here. You can refer the following post to achieve your use case.
I tried it the following way and it worked
1) Created a service where result is string ( 'Running' or 'Not Running')
2) created a new State definition (colour test) with 2 new state string definition for both values
3) bind the output of service to shape data
4) when trying to set state based formatting select the one you have created (Colour Test)
I hope it will work for you,feel free to revert in case you face further challenges.
Thanks
Om Dukiya
Hello @VK_9460892
If your query has been answered please mark appropriate solution as accepted for benefit of others with same question.