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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

May I display the units for a value into the mashup?

fmanniti
9-Granite

May I display the units for a value into the mashup?

If I have my property number which unit is in % is it possible to show into the label widget (or into any other widget) both the value and the unit?
So instead of 50, I want to see 50%.

Obviously without resort to another property which is the join of me.property+'%'

4 REPLIES 4
PaiChung
22-Sapphire I
(To:fmanniti)

Usually I just use a Value Display widget and a label widget.

Yes, it's also what I was doing but in this case I'm forced to have a fixed distance between number and unit so if I have 100 the result will be

100%

if I have 5 it will be

5  %

It's not a big deal, I just hoped there was another way.

Hi Fabio, on the ValueDisplay widget you can align the number to the right ( Alignment=Right )

Hi the way I have done this is by using an expression.

 

Add your param and then add a string type for units when you configure.

Set the output to the label

Change the expression Param+Units

Change the String for the Units in the properties box

Top Tags