Skip to main content
Feb 28, 2020 6:12 AM UTC
Solved

State Definition and Value Display

I have a service returns string "Alarm"/ "Healthy"/ "Error".

I want to display these string and change color based on state.

 

I made a state definition and binded service result to value display - data.

 

Now, I open "ValueFormat" but don't know how to assign state definition. How to do it?

My TWX version is 8.5.0

 

Thanks.

 

スクリーンショット 2020-02-28 15.10.15.png

Feb 28, 2020 1:09 PM UTC

Hello @Toshihiko,

 

Just in case if you can't find a proper solution, then there's an ugly, but rather efficient and simple workaround -- you can create three value displays styled differently and manipulate their visibility via three validators or expressions.

 

Regards,

Constantine

4 replies

Feb 28, 2020 10:08 AM UTC

Hi,

 

Seems a defect, I cannot see State-base formatting for Value Display in 8.5.3.

I still need to test in 8.5.4

 

Raluca Edu

Feb 28, 2020 2:33 PM UTC

Hi,

 

I can confirm this is a defect and it was already reported. For the moment, we do not have a fix version.

Reference article: https://www.ptc.com/en/support/article/CS317147

 

Thanks,

Raluca Edu

Feb 28, 2020 1:09 PM UTC

Hello @Toshihiko,

 

Just in case if you can't find a proper solution, then there's an ugly, but rather efficient and simple workaround -- you can create three value displays styled differently and manipulate their visibility via three validators or expressions.

 

Regards,

Constantine

ToshihikoAuthor
Mar 2, 2020 12:17 AM UTC

Thanks @Constantine, yes it's ugly but will do in the way you suggested for now...