Skip to main content
1-Visitor
October 10, 2019
Solved

How to insert units in the value display

  • October 10, 2019
  • 1 reply
  • 2838 views

Hi there,

 

I am showing an information in the value display and this information is referent the weight where I use the unit "ton" (tonne). Like the image below:

 

image1.JPG

 

To do it I used two value display, one to bind my value and other to write the unit (ton). Follow image below:

 

image2.JPG

 

My question is: Is there any way to insert in the same value display the value and the unit? I have ever searched in the properties from value display and I did not find nothing about it.

 

Regards,

Leonardo.

 

 

Best answer by zyuan1

You can use an Expression function, get your numeric input and the Unit together in one String, and then send the new result to the Value Display.

1 reply

22-Sapphire I
October 10, 2019

I've always just used the label next to the value display.

You can always make the background and line transparent and then overlay that over a box so it looks like a single display.

einsfele1-VisitorAuthor
1-Visitor
October 11, 2019

Hi @PaiChung 

 

Thanks for your answer.

 

I do it too, but I would like to find some way to configure it in the same value display.

 

If I do not find other solution I will keep it.

15-Moonstone
October 12, 2019

Please post this request to the ThingWorx Ideas forum: https://community.ptc.com/t5/ThingWorx-Ideas/idb-p/thingworxideas

 

Either:

  • ask for the valuedisplay label to be inline with the value either before or after (currently the label displays above the value) - so you can use the label of the valuedisplay to represent the unit of measure,  or
  • ask for numeric renderers to support units of measure

 

Or maybe just ask for both of the above...

 

Thanks,

Alessio