field_names = db.resultats.fields field_types = [f.type for f in db.resultats]
Anthony On Thursday, March 3, 2016 at 2:23:54 AM UTC-5, Daniel Lafrance wrote: > > Hi group > > I am trying to build a db dynamic app but I am stick on the following > problem. > > I am able to get the filenames of a table by the syntax ; > > fields = list(db.resultats.keys()) > > > But I am unable to find how to get the field types. Is there a special > syntax that i could use ? > > Something like ...: > > ftypes = list(db.resultats.field_types()) > > > Regards ! > -- 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.