Hi,
when mapping data to a screen, how could I do 'computed' result:
for example I want to map Adress ZipCode and Town in one place on the screen ?
Thanks
Sylvain
Hi,
when mapping data to a screen, how could I do 'computed' result:
for example I want to map Adress ZipCode and Town in one place on the screen ?
Thanks
Sylvain
Hello,
Here you can find how to map data https://devcenter.appery.io/documenta...
To display result in one place you need to concatenate it with JavaScript.
Hi Alena,
thanks, my problem is only to access the returned values.
I tryed
value=data['myField1']+' '+data['myField2'];
return value;
but it doesn't works
Hi Sylvian,
as i can see you trying to access some array data so i assume you have list/grid component and want mapping to iterate it with data and some label inside. If it's true here is a solution:
Make link from $ response to grid/list-item component to iterate it.
Details: http://prntscr.com/7f4x82/direct
Click "JS" button on this link.
Use following JS code:
pre
//Where "firstName" and "secondName" is your db goal fields.
var name = data.firstName + "_" + data.secondName;
//Where "labelName" is needed label name.
Apperyio("labelName").text(name);
/pre
Regards.