Skip to main content
6-Contributor
July 23, 2024
Solved

How to display boolean type value at Value Display Widget?

  • July 23, 2024
  • 1 reply
  • 1775 views

Why the Display Name stated in State definition file is not shown accordingly for value with boolean base type? please refer the screen shot

version: ThingWorx 9.3.7-b1432

MT_10719574_1-1721723812886.png

 

 

Best answer by Arun_C

Hi @MT_10719574 ,

 

State Definition : 

Arun_C_0-1721728506901.png

Selected Button Bar Value:

Arun_C_2-1721728639002.png

That Display Name string from State Defintion probably would work for the  widget like 'Button Bar' but doesn't work in general for state based definitions of Value Format.

 

If you need to convert the boolean value to Ready/Not Ready. You need to define the state definition both Value & Display Name should name.

Arun_C_3-1721729113735.png

In mashup you can handle with expression to convert the boolean value to required display value. Based on the expression out you can convert it render in value display.

Arun_C_4-1721729234158.pngArun_C_5-1721729254873.png

Thanks & regards,

Arun C

1 reply

Arun_C16-PearlAnswer
16-Pearl
July 23, 2024

Hi @MT_10719574 ,

 

State Definition : 

Arun_C_0-1721728506901.png

Selected Button Bar Value:

Arun_C_2-1721728639002.png

That Display Name string from State Defintion probably would work for the  widget like 'Button Bar' but doesn't work in general for state based definitions of Value Format.

 

If you need to convert the boolean value to Ready/Not Ready. You need to define the state definition both Value & Display Name should name.

Arun_C_3-1721729113735.png

In mashup you can handle with expression to convert the boolean value to required display value. Based on the expression out you can convert it render in value display.

Arun_C_4-1721729234158.pngArun_C_5-1721729254873.png

Thanks & regards,

Arun C

6-Contributor
July 24, 2024

Hi Arun C,

thanks for the reply.

i tried the given method (state definition file, value display widget with expression), still not able to get the READY/NOTREADY at dashboard. Any other setting is missed? 

MT_10719574_0-1721798607737.png

MT_10719574_1-1721798632925.png

 

 

16-Pearl
July 24, 2024

Hi @MT_10719574 ,

 

Can you please share the state definition , expression connection & value display rendering format to understand more on missing part?

 

Thanks & Regards,

Arun C