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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to get 'unit' value definde in property from Mashup

kisakamoto
10-Marble

How to get 'unit' value definde in property from Mashup

Hi experts,

I would like to use 'Unit' information defined in number property, in some widget like label, grid and so on.

How can get it in Mashup Builder?

Regars,

Kinichi

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Kinichi,

You need to create a service in order to get the units, the code you will have to put in that service:

String GetUnits(propertyName) {

        var values = me.GetPropertyValues();

        var prop = values.dataShape.fields[propertyName];

        var result = prop.aspects["units"];  

}

View solution in original post

2 REPLIES 2

Hi Kinichi,

You need to create a service in order to get the units, the code you will have to put in that service:

String GetUnits(propertyName) {

        var values = me.GetPropertyValues();

        var prop = values.dataShape.fields[propertyName];

        var result = prop.aspects["units"];  

}

Thnaks Carles,

I could get the unit information.

Top Tags