> I'm using SQLFORM.grid and would like to update the fields of a table
> via AJAX without the user having to click edit then submit in a new
> page.

You can learn how to do this and more here:
http://web2py.com/books/default/chapter/29/11

> Another request is a way to specify my own create and edit forms.
if len(request.args) > 2 and request.args[-3]=='edit':
  form = my_edit_form
  response.view = 'my_edit_view.html'

if len(request.args) >1 and request.args[-2]=='new':
 .
 .
 .

> If
> the grid is created on a join, then the create and edit forms are
> based on only one table. Perhaps there is also a clever automatic way
> to generate a form based on a join.

Check out smartgrid.

On Dec 21, 5:14 am, Liam <[email protected]> wrote:
> First up, I'm new to web2py and am enjoying using it very much. Thanks
> Massimo!
>
> I'm using SQLFORM.grid and would like to update the fields of a table
> via AJAX without the user having to click edit then submit in a new
> page.
> eg. I have a table, one of the columns is a boolean value (this gets
> displayed as a checkbox), the user can click the checkbox and the
> table gets updated automatically.
>
> A related problem, assigning a class or id to the rows or columns so
> javascript can respond to changes in the table entries.
>
> Another request is a way to specify my own create and edit forms. If
> the grid is created on a join, then the create and edit forms are
> based on only one table. Perhaps there is also a clever automatic way
> to generate a form based on a join.
>
> Does anybody know how to do this, if not, would they be considered in
> future versions?

Reply via email to