Page 1 of 1

Can i add a static character in from or at the end of a service json response value?

Posted: Sun Jun 09, 2013 9:02 pm
by John Herdean

Hi, i have a field that i want to show like this for example: '$value'. the way im getting it from my back end server is just a pure value, not with the $. So, if im getting back from the server this: '500.25' - how can i show it to display: '$500.25'?


Can i add a static character in from or at the end of a service json response value?

Posted: Sun Jun 09, 2013 9:19 pm
by Igor

Add next code on yours map field
code
var a = value;
var b= "$" +a;
return b;
/code
Image


Can i add a static character in from or at the end of a service json response value?

Posted: Sun Jun 09, 2013 9:30 pm
by John Herdean

it works thanks