PDA

View Full Version : after dd's are selected,create a results page


edrosenthal350859
11-30-2009, 02:11 PM
Hi - i am able to get good results from the dynamic drop downs, having captured in three lists the state & county & city the user has selected. Those lists were created with the create dynamic array and populate list frunctions in the dd. It was easy once the db was set up properly.

the next step in my project is to go into the database and bring back results using those field values as parameters for the next query into the database, and shift the location of the user to the new page displaying the new resulting data.

There appears to be a data assist tutorial showing a results page, where that page reflects parameters pulled from a source page and i think that would be the next logical thing - to try to simulate that tutorial. Or Is there another idea i should try first?
also, where in the code will i find the selected value - in the javascript area...in the bottom leave array???

Eric Mittman
12-01-2009, 10:50 AM
Following the tutorial to create a search and result set is probably the best way to get going on this. The form that you have with the dropdowns is no different than a form where the user would enter those values, it will post whatever you have as the value from these lists. If the value from the list is not what you would like and you need the label instead you would have to incorporate some additional js to set the selected text to another hidden form element. You can then use this other hidden form element in the search server behavior.

I'm including an example of some js code that will set the value of a hidden form element to the selected text from the list.