Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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
Solved! Go to Solution.
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"];
}
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.