perhaps this? SELECT(*[OPTION(value.First_Name, _value=str(value.id), _selected=(value.id==1)) for value in values], **dict(_name='student_fees',_multiple="multiple"))
On Wednesday, 12 August 2015 00:49:13 UTC-5, oyamaneko azumi wrote: > > I want to have a select list having this kind or similar to this line > SELECT(_name='student_fees[]',_multiple="multiple",*[OPTION(values[i].First_Name, > > _value=str(values[i].id), if values[i].id==1: _selected="selected") > > is it possible? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

