John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

yes, it only contains the 1st record.. see below (the raw test shows 2 records, the live test only displays 1 record) :

Image

Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

i must be missing something... WHat else is needed to populate the full list from json?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

how to populate a selectmenu from a json list response?

John,

You have incorrect Response parameters or mapping. As your Rest Service returns an array, there should be a parameter with tick "Array" among the Response parameters. You can create response structure using "Automatically Create from Sample Response" button on "Response" tab.

Then in Mapping create an arrow from array to Mobile List Item.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

yes i did that already. I even ticked the array box for '$' plus i tried it with and without the array box checked off for: 'id' and 'driver_name' - i tried it both ways and neither populates the list, just the 1st record...

see below:

Image

Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

i found my problem.... I also needed to drag the '$' to 'menuselectitem_13'

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

thank you all for your help...!!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

how to populate a selectmenu from a json list response?

Glad it's finally solved :)

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

the only thing is when the screen 1st arrives, the select menu is empty, but when you click on it - it then shows the list. How can i have the 1st record show automatically on arrival without clicking anything?

see below how it looks on arrival:

Image

once you click on it:

Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

how to populate a selectmenu from a json list response?

How can i have the 1st record show automatically on arrival without clicking anything?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

how to populate a selectmenu from a json list response?

On service Data tab add "Set property" action on Success event. In Action parameters choose component Select Menu, Property = "Selected", value = 1
Then after Mapping finishes the first Select Menu item will be selected.

Return to “Issues”