tables list = db.tables field list for table 'a_table' = db.a_table.fields
On Thursday, June 27, 2013 10:30:24 PM UTC+2, Woody wrote: > > I hope the answer to this is something that's not too obvious, but I've > searched a bit and have not found an answer. I'm looking for a way to > programatically get a list of all of the fields in a given table. My > intention is to build a common function that will use variables for table > names and fields to display a similar form for several different tables. > > I see that I can use the Crud API to get table names like this: > crud.tables(). Is there a similar way to get field names, using crud or > something else? > -- --- 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/groups/opt_out.