Celsius to Fahrenheit data formatter

Can anyone orientate me how to create a Datta formatter to convert celsius to fahrenheit and biz.?

Doable with a custom formatter. Take a look here for starters:

You can easily create an app connect formatter that does this:

<script>
dmx.Formatters('number', {
   fahrenheit: function(number) {
     return (number * 9/5) + 32;
   }
});
</script>

and then use it like:

{{my_value.fahrenheit()}}
5 Likes

Is any way to save it and integrate to de UI?

1 Like