Something like this --->
SELECT('',_type="select",_name="state_name",
*[OPTION(x['key1_in_dict'],_value=x['key2_in_dict'])for x in
myDataSetDict])## Note: I have assumed that the resulting dataset is a dict. HTH :) Vineet On Dec 6, 10:04 pm, chandrakant kumar <[email protected]> wrote: > How do i create a drop down list in views with data from a query. > > for e.g. > > rows = db(db.person.id>0).select() > > then, how do i present the user a dropdown list containing all the persons > name.

