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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

State Definition and Value Display

Toshihiko
7-Bedrock

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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

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

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

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

Top Tags