Re: [web2py] load form by its name

2010-08-01 Thread Miguel Lopes
On Sun, Aug 1, 2010 at 9:20 AM, Neveen Adel wrote: > Hello, > > i have function for example > def form_1(): > form = SQLFORM (_name='form_1') > > and i want inside a different function to load this form and insert > element into it > > For example: > > def another_fn(form_name): >form = #

[web2py] load form by its name

2010-08-01 Thread Neveen Adel
Hello, i have function for example def form_1(): form = SQLFORM (_name='form_1') and i want inside a different function to load this form and insert element into it For example: def another_fn(form_name): form = # load the form by form Name #and then do form[0].element().insert()