Skip to main content
Dec 18, 2019 5:40 AM UTC
Solved

display colour for a property

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

BennyBAnswer
Dec 18, 2019 6:21 AM UTC

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

BennyBAnswer
Dec 18, 2019 6:21 AM UTC

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.

Dec 30, 2019 4:43 PM UTC

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