Page 1 of 1

Concat two values of a service respone in one mapping item

Posted: Thu Jul 09, 2015 6:53 am
by Angel Garcia

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?


Concat two values of a service respone in one mapping item

Posted: Sat Jul 11, 2015 1:47 am
by Alena Prykhodko

Hello Angel,

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


Concat two values of a service respone in one mapping item

Posted: Mon Jul 13, 2015 6:47 am
by Angel Garcia

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.


Concat two values of a service respone in one mapping item

Posted: Mon Jul 13, 2015 7:16 pm
by Pavel Zarudniy

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.