Angel Garcia
Posts: 0
Joined: Thu Jun 11, 2015 11:37 am

Concat two values of a service respone in one mapping item

I have a REST service response like this:

{path:"http://myweb.com/images/", people:[{name: "Epi", photo:"epi.jpg"}, {name:"Blas",photo:"blas.jpg"}, {name:"Henry",photo:"henry.jpg"}]}

I want to concat "path" field with every "photo" field on mapping, but mapping treats path and photo separately when two fields are dragged to the same place.

Is it possible to do my proposal?

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

Concat two values of a service respone in one mapping item

Hello Angel,

Please take a look here Combining requests from several components section https://devcenter.appery.io/documenta...

Angel Garcia
Posts: 0
Joined: Thu Jun 11, 2015 11:37 am

Concat two values of a service respone in one mapping item

Hello Alena,

I understand these guide, but I don ́t know how to translate it to my problem. I want to show an image concatenating server's image path and image file, something like this:

Image

Image

Thanks.

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

Concat two values of a service respone in one mapping item

Hi Angel,
You can use Run JavaScript with set for example localStorage variable for your image_directory in order before mapping
Than use it to concat with other params.

Return to “Issues”