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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How to display boolean type value at Value Display Widget?

MT_10719574
5-Regular Member

How to display boolean type value at Value Display Widget?

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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

MT_10719574
5-Regular Member
(To:Arun_C)

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

 

 

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

MT_10719574
5-Regular Member
(To:MT_10719574)

Hi Arun C,

this issue solved after binding between the variable, value display widget to the created expression (parameter and output) are done. thanks again for the reply

Top Tags