db.table*,*request.args[0]
;-)
Richard
On Wed, Jul 27, 2011 at 6:03 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> form= SQLFORM(db.table.request.args[0],readonly=True)
>
> On Jul 27, 4:43 am, António Ramos wrote:
> > hello
> >
> > * in my controller *
> >
> > form= SQLFORM(db.
form= SQLFORM(db.table.request.args[0],readonly=True)
On Jul 27, 4:43 am, António Ramos wrote:
> hello
>
> * in my controller *
>
> form= SQLFORM(db.table.request.args[0])
> return dict(form=form)
>
> *in my view*
>
> {{=form}}
>
> This is to edit the record
>
> How to code to only view the re
You should maybe use CRUD :
http://web2py.com/book/default/chapter/07?search=crud#CRUD
crud.read(db.tablename, id) returns a readonly form for tablename and record
id.
3 matches
Mail list logo