sdanigo
Posts: 0
Joined: Sat Jun 06, 2015 8:50 pm

newbie mapping question

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

newbie mapping question

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.

sdanigo
Posts: 0
Joined: Sat Jun 06, 2015 8:50 pm

newbie mapping question

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

newbie mapping question

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:

  1. Make link from $ response to grid/list-item component to iterate it.
    Details: http://prntscr.com/7f4x82/direct

  2. Click "JS" button on this link.

  3. 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.

Return to “Issues”