Skip to main content
1-Visitor
February 28, 2020
Solved

State Definition and Value Display

  • February 28, 2020
  • 2 replies
  • 1486 views

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

Best answer by Constantine

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

2 replies

17-Peridot
February 28, 2020

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

17-Peridot
February 28, 2020

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

18-Opal
February 28, 2020

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

Toshihiko1-VisitorAuthor
1-Visitor
March 2, 2020

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