Use of a SET in list returned of result. Em segunda-feira, 8 de agosto de 2016 15:21:58 UTC-3, madhu nomula escreveu: > > Hello, > > In Web2py database we have date entries. Need to get distinct dates and > bind to a dropdown control. But I am unable to get : > > Please find code below: > Controller: > myrows = db((db.Act.org_id==db.organix.id)& (db.auth_user.id== > auth.user.id) ).select((db.MC.activity_date )) > > View: > > <select name="bindDate" class="form-control" id="ddlyDate" > > {{for x in myrows:}}<option > > value="{{=x.activity_date}}">{{=x.activity_date.strftime("%m/%d/%Y")}}{{pass}}</option> > > </select> > > > > Need to bind only distinct dates to this <select control > Appreciate your help in advance. > > Regards, > MC >
-- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.