Page 1 of 1

How do I map server code list service to page component

Posted: Thu Dec 22, 2016 9:56 pm
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.


How do I map server code list service to page component

Posted: Fri Dec 23, 2016 8:52 am
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...


How do I map server code list service to page component

Posted: Fri Dec 23, 2016 6:13 pm
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


How do I map server code list service to page component

Posted: Mon Dec 26, 2016 5:52 am
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.