eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Populate select menu with database?

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Populate select menu with database?

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)

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Populate select menu with database?

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

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

Populate select menu with database?

Hi Eascards,

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

Regarsd.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Populate select menu with database?

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

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

Populate select menu with database?

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Populate select menu with database?

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

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

Populate select menu with database?

Eascards,

Please show us screen shot with "Books" collection.

Regards.

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

Populate select menu with database?

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

Return to “Issues”