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

how to populate a selectmenu from a json list response?

i am receiving a json list, and i would like to populate a select menu with the list. I tested the server response and it works. I mapped the elements. And I hooked up the service to an event. I dont know what else to do here?? See below for what i did so far:

Image

Image

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to populate a selectmenu from a json list response?

What exactly doesn't work? Please check if there are any errors in the console. This could be a cross-domain issue.

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

how to populate a selectmenu from a json list response?

when i run the live test, the driver list coming from the json response does not populate... i checked for errors and didnt find any. You will see the black arrow below where the list is supposed to fill - heres a snapshot:

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to populate a selectmenu from a json list response?

Switch to Net tab -- do you see the service invoked?

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

how to populate a selectmenu from a json list response?

what do you mean by Net tab?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to populate a selectmenu from a json list response?

In the screen shot (Firebug) -- there is a Net tab.

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

how to populate a selectmenu from a json list response?

yes ok i got it . so here are the other stuff i did as well (check and see if im supposed to invoke a service to change values like i did below):

Image Image
Image Image

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

how to populate a selectmenu from a json list response?

oops, sorry i added the last image twice...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to populate a selectmenu from a json list response?

I'm not sure I see the service is invoked...

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

how to populate a selectmenu from a json list response?

well, i shared my app with you guys already... Do you think you could take a peek at this and maybe find something im missing? This is the 1st time im running this particular service... I'd appreciate it. Thanks..

Return to “Issues”