Skip to main content
1-Visitor
December 18, 2019
Solved

display colour for a property

  • December 18, 2019
  • 2 replies
  • 1165 views

Hii

I have  a Thing property as Punch_In_Status and created a property as Test

when a person Punch in the biometric scanner the property displays as PRESENT , If not is displays as ABSENT

My need is that , In mashup when  the property Punch_In_Status displays as PRESENT ,then the Test property should be in GREEN colour , if ABSENT it should display as RED colour

Best answer by BennyB

You describe a state based layout which can be realized with the ValueFormatter property & StateDefinition entities. This is available for widgets such as gauge or shape but not for labels as far as I know. You could perhaps manually build this by using shape as background and put a label on top.

2 replies

BennyB16-PearlAnswer
16-Pearl
December 18, 2019

You describe a state based layout which can be realized with the ValueFormatter property & StateDefinition entities. This is available for widgets such as gauge or shape but not for labels as far as I know. You could perhaps manually build this by using shape as background and put a label on top.

Support
December 30, 2019

Hi @Peter_Raj.

 

If the response provided by @BennyB helped you to find a solution, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon