On Aug 10, 2009, at 4:48 PM, FERNANDO VILLARROEL wrote: > > Dear all, > > I am trying use calendar on a simple form as below: > > def llamados(): > > > hoy=time.time() > desde=time.strftime('%d-%m-%Y 00:00:00',time.localtime(desde)) > hasta=time.strftime('%d-%m-%Y %H:%M:%S',time.localtime(hoy)) > > > lineas > = > db > (db > .accountcode > .id_clientes > = > = > session > .cliente_id).select(db.accountcode.ani,orderby=db.accountcode.ani) > > if len(lineas) > 1: > > acc=['All'] > > else: > > acc=[] > > for l in lineas: > > acc.append(l.ani) > > > form > = > FORM > (TABLE > (TR > ("Desde > :",INPUT > (_type > = > "datetime > ",_name="desde",_value=desde,_class='datetime',_id="datetlimite", > requires=IS_DATETIME())), > > TR > ("Hasta > :",INPUT > (_type > = > "datetime > ",_name="hasta",_value=hasta,_class='datetime',_id="datetlimite", > requires=IS_DATETIME())), > > TR("Lineas",SELECT(acc,_name="linea",requires=IS_IN_SET(acc))), > TR("",INPUT(_type="submit",_value="Consultar")))) > > return dict(form=form) > > > I can see calendar only in the first INPUT (_name="desde"). > > Why when i trying of update date the second INPUT (_name="hasta") > the calendar not show?
Try giving your INPUTs distinct ID's. > > Fernando. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---