Page 1 of 2

Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 8:10 pm
by CraigInDallas

I really appreciate your dynamic list example with static data.

I am currently populating one of the two level perfectly from my json call.

I am not sure though how to load the child level though the 1st time and on the Value Changed event.

Is the an example?


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 9:30 pm
by maxkatz

I'm not sure I understand the question... can you post a screen shot(s) of what you would like to do..?


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 9:45 pm
by CraigInDallas

Image

Image

Your example is exactly what I need to do with the exception of values from the json results.: http://help.gotiggr.com/getting-start...


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 9:58 pm
by maxkatz

You should duplicate the service. The first one loads the MakeSelect list. When a value is selected (Value Change event), invoke the second service and map models[] to the ModelSelect list. Let me know if this helps.


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 10:13 pm
by CraigInDallas

Max is your sample of the code that I need to filter the models in the list correspond to the makes in the list above?

By the way it really does help. Really appreciate you guys.


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 10:30 pm
by maxkatz

I don't think you need that example. Does models[] hold the values based on selection made in makeHolder? If yes, based on any new selection, the second list will be updated with new values, via service invocation.


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 10:44 pm
by CraigInDallas

Nope Not working. I am only getting 1 value in the model, no matter which make I choose. I get "Hummer"


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 10:50 pm
by maxkatz

Tell me how your service works, what request parameters does it have? And what data is returned?


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 11:20 pm
by CraigInDallas

Sorry I'm on my phone right now so I can't send you screenshots.

But the request only has a request type which is json and API key. Then returns back all makes and models


Example of Dynamic List from Rest results

Posted: Wed Oct 10, 2012 11:38 pm
by maxkatz

When you get a chance, please post a sample JSON that you get back from the service.