Page 1 of 2
Mapping a list service to a select menu??
Posted: Sun Jan 12, 2014 10:08 pm
by Catalyst Creations
Is it possible to map a database collection to a select menu? if so how would I map it? ive tried the list and query service but doesnt seem to list anything... ive read all the docs about select but no mention of mapping.. unless i missed it..
Mapping a list service to a select menu??
Posted: Sun Jan 12, 2014 10:23 pm
by Catalyst Creations
I forgot to mention that im mapping 10 items from database collection.. only one item will show up?? how do i get all 10?
Mapping a list service to a select menu??
Posted: Sun Jan 12, 2014 11:14 pm
by Alena Prykhodko
Hi,
As Mobile Select Menu has a child item. You have to create Response mapping from collection to the child item.
Please check this http://docs.appery.io/documentation/r... (see Select (Select menu) section)
Mapping a list service to a select menu??
Posted: Sun Jan 12, 2014 11:31 pm
by Catalyst Creations
Hi Alena,
Thanks for replying,
I understand how to map the response, but how would i go about adding 10 items in the response when the select menu has only one child item?
Mapping a list service to a select menu??
Posted: Sun Jan 12, 2014 11:50 pm
by Alena Prykhodko
Connection from $ to the item is required to populate all records from the collection.
Also this post will be helpful https://getsatisfaction.com/apperyio/...
Mapping a list service to a select menu??
Posted: Mon Jan 13, 2014 12:22 am
by Catalyst Creations
I already tried that.. ive mapped the $ to the item and one of the collection values to the value and label, but how do I get the 9 others to display? its only showing the first one... I checked the other posts to no avail.... Sorry to be a pain.
Mapping a list service to a select menu??
Posted: Mon Jan 13, 2014 12:45 am
by Alena Prykhodko
In this case Size1, Size2... are column names, did you create these parameters manually?
Please post a screen shot of your Database collection.
Mapping a list service to a select menu??
Posted: Mon Jan 13, 2014 12:52 am
by Catalyst Creations
No Created the database then created the list database service which automaticcaly had them setup...
Mapping a list service to a select menu??
Posted: Mon Jan 13, 2014 1:00 am
by Alena Prykhodko
There should be collection with 1 column 'Size' and 10 rows with values.
Mapping a list service to a select menu??
Posted: Mon Jan 13, 2014 4:02 am
by Catalyst Creations
Okay thank you. Does that mean if i want to set-up a update for each row im going to have to use each object number? Hence why i had it on one row... is there js to do this quicker or neater?