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

Mapping a service inside another service

Hi,
I have 2 services,
one return a list of clients, the other one return a list of phone call.
In my model storage, I've defined a model for my client wich include an array of 'phoneCall' (another model define in local storage).

I have mapped my service to the local storage and then local storage to screen. All works fine except that I'm not able to map the phoneCall in my client local storage.

Iwould like to:
For each client retreive, launch the phoneCall service wich retrieve the phone calls associated to that client and then map them inside the listClient model

Some screen shot:
Image Image Image Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Mapping a service inside another service

Hello Sylvain,

Do you use appery.io database in these services? You can use pointers to other collections: https://devcenter.appery.io/documenta...

You can also use mapping for services which you invoke via JS

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

Mapping a service inside another service

Hi I use MySql Database.
In my case what would be the syntax in JS for mapping ? Is there example in the doc (didn't find)

Thanks

Sylvain

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Mapping a service inside another service

It is impossible to add mapping from one service to another. You should use storage variables fo that:
-save response from service 1 to storage
-read storage variable and send it to the service 2

Return to “Issues”