Page 1 of 2

Populate select menu with database?

Posted: Sun Jul 27, 2014 9:21 pm
by eascards

Hello- Having trouble figuring out how to user information in the database to be listed in a select menu. Any thoughts?


Populate select menu with database?

Posted: Sun Jul 27, 2014 10:10 pm
by Alena Prykhodko

Hello,

Use List or Read service http://devcenter.appery.io/documentat...
Please find here how to bind service response http://devcenter.appery.io/documentat...
(Select section)


Populate select menu with database?

Posted: Mon Jul 28, 2014 1:35 am
by eascards

So now using a list service. I have it mapped like it shows in the second link and it still only has the pre-defined options. I then just deleted the three options in the properties menu and added a blank one and it still didn't work.

If taking a look at my app would help you, I shared it with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a. It is called The Calving Book. username- jane pw- 123

Thanks


Populate select menu with database?

Posted: Tue Jul 29, 2014 12:08 am
by Yurii Orishchuk

Hi Eascards,

Please provide us screen shots where we can see what you have tried so far.

Regarsd.


Populate select menu with database?

Posted: Tue Jul 29, 2014 1:27 am
by eascards

This is what the properties look like for the select menu.
Image

This is what I have to map the list service. Image Image

This is the mapping for how the option is created. The information is sent to the database and it is currently working. Image


Populate select menu with database?

Posted: Tue Jul 29, 2014 9:55 pm
by Yurii Orishchuk

Hi Eascards,

I've checked your app. And here is result:

1 You are using to populate select component "TheCalvingBook_Books_list_service".

see details: http://prntscr.com/47mdwz/direct

2 But your list service returns nothing(0 items in response).

See details: http://prntscr.com/47meon/direct

So that's means your "Books" collection does not contain any items inside. And you have to populate this collection to see items in the select component.

Regards.


Populate select menu with database?

Posted: Tue Jul 29, 2014 10:03 pm
by eascards

When I check the database, I do have items in the Books collection.


Populate select menu with database?

Posted: Tue Jul 29, 2014 10:11 pm
by Yurii Orishchuk

Eascards,

Please show us screen shot with "Books" collection.

Regards.


Populate select menu with database?

Posted: Tue Jul 29, 2014 10:28 pm
by eascards

Populate select menu with database?

Posted: Wed Jul 30, 2014 1:34 am
by Yurii Orishchuk

Eascards,

I still have this issue http://prntscr.com/47ojty/direct

so please share your DB "TheCalvingBook" with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and update us here when you will have it done.

Regards