Page 1 of 1

Unusual Mapping Capabilities

Posted: Mon Aug 17, 2015 8:55 pm
by Jack Bua

I noticed that I could map an included object from a service request to things like grids and mobilelistitems, but could not map them to other things like text fields, like I can with " $ ".

Image

Why is this? Could you please give me an example of why this would be used?


Unusual Mapping Capabilities

Posted: Wed Aug 19, 2015 12:00 pm
by Alena Prykhodko

Dear Jack,

You can find more about mapping in collections here https://devcenter.appery.io/documenta...

You can not map them because they have fields included, they can be mapped to text, etc.


Unusual Mapping Capabilities

Posted: Wed Aug 19, 2015 5:07 pm
by Jack Bua

Hi Alena,
I did not find what I am talking about in that documentation, but it did help since I learned about "Combining requests from several components". Thank you.

I am a bit confused at your response, however. "You CAN NOT map them because they have fields included, they CAN be mapped to text, etc". I know they CANNOT be mapped to text fields. Am I safe in assuming that they can be treated similarly to the top array element ($)?


Unusual Mapping Capabilities

Posted: Sat Aug 22, 2015 12:56 pm
by Serhii Kulibaba

Hello Jack,

This functionality is necessary for using more than one parameter in one field.
E.g.: I have storage model: http://prntscr.com/87kxi0
Now I am able to use JS:
prereturn value.firstName + " " + value.secondName;/pre
in the mapping like this: http://prntscr.com/87kxmo


Unusual Mapping Capabilities

Posted: Sat Aug 22, 2015 3:51 pm
by Jack Bua

Hello Sergiy,

Thank you for your reply. I think I understand that now.

Thank you.