[web2py] Re: SELECT / OPTGROUP

2011-10-07 Thread Dominique
Hello, I answer to myself, since it was not so complex ;) ... Oops! Hum hum ... Dominique In Controller: def search_form(): q = db(db.region.id==db.subregion.region).select(orderby=db.region.name | db.subregion.name) def prepare_select(rows): """ Creates a list to be used

[web2py] Re: SELECT / OPTGROUP

2011-10-06 Thread Dominique
Thanks for replying. value=""bla bla bla SubRegion 3" already tried without success ... Any other idea ? On Oct 6, 7:27 pm, puercoespin wrote: > For selected, try > >  (_name="region_to_search", > value="bla bla bla  SubRegion 3") > > instead of > > (_name="region_to_search", > selected="bla b

[web2py] Re: SELECT / OPTGROUP

2011-10-06 Thread puercoespin
For selected, try (_name="region_to_search", value="bla bla bla SubRegion 3") instead of (_name="region_to_search", selected="bla bla bla SubRegion 3") On 6 oct, 18:27, Dominique wrote: > Hello All, > > First things first:  congratulations to Massimo and all those who > help. > Web2py is