form = SQLFORM(db[request.get_vars.name]).process() anyway, make sure you validate access and the name variable.
On Friday, 4 April 2014 00:13:17 UTC-5, Sharvil Katariya wrote: > > I want to basically pass URL?name='table_name' > > and create a form of the table name passed. > > but when i try to do db.table_name > i understand it will give me a error > as it will search for a table with table_name 'table_name' > > But I can't think of work around this problem... > > The code snippet in default.py is as follows: > > table_name=request.get_vars['name'] > form = SQLFORM(db,str(table_name)) > > -- 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.