How do I map server code list service to page component

This forum contains topics that were moved from Get Satisfaction
ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

How do I map server code list service to page component

Post by ssquire »

I used the server code return all database objects snippet to get all objects from my database, but I now need to have them mapped to a list item and displayed on a page. I've read the documentation for Mapping and CRUD but I'm still missing how to properly map the database items to my list component.

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

How do I map server code list service to page component

Post by Serhii Kulibaba »

Hello Steven,

Please look at this documentation page how to use service mapping in your application: https://docs.appery.io/docs/appbuilde...

ssquire
Posts: 0
Joined: Tue Feb 12, 2013 4:36 am

How do I map server code list service to page component

Post by ssquire »

Sergiy,

I am using the mapping below to try and list my database items in the list component in the picture below. I thought I followed the instructions in the document you linked above, but it is still not working. I believe I'm missing something. The query works but mapping to the list component is the problem. I have also shared the app so you can take a look. Image
Image
Image

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

How do I map server code list service to page component

Post by Yurii Orishchuk »

Hi Steven,

Thank you for your screen shots.

You need to link response array to your page elements.

For this goal:
Open response body. There should be an array of items inside.
You need to link this array to your list items.
If you don't have an array inside body you need to generate response
parameters from response before.

More info on screen shot: http://prntscr.com/dnvi10/direct

Regards.

Post Reply