Here is an example:
record = db(db.comments.id==request.args[0]).select()[0]
form = SQLFORM(db.comments,record,showid=False,labels=
{'body':'Comment','date':'Posted'})

Please post your error and form code if you still have trouble.

On Aug 20, 3:25 pm, Pynthon Pynthon <[email protected]> wrote:
> Thanks but can you please give me an example because I tried it but web2py
> throws up an error :(.
>
> 2009/8/20 mr.freeze <[email protected]>
>
>
>
>
>
> > If you're using SQLFORM you can pass a labels dictionary such as
> > labels={'id':'your_label'} or you can set showid=False to hide it
> > completely.  There may be a better way with the newer CRUD though.
>
> > On Aug 20, 11:46 am, Pynthon Pynthon <[email protected]> wrote:
> > > Can somebody please help me *shame*?
>
> > > 2009/8/18 Pynthon Pynthon <[email protected]>
>
> > > > I can't look at it now but I thought it said something with an
> > expression.
>
> > > > 2009/8/18 Pynthon Pynthon <[email protected]>
>
> > > > Well it does not work if I put it into the edit SQLFORM. Or is it model
> > > >> only?
>
> > > >> 2009/8/17 mdipierro <[email protected]>
>
> > > >>> db.table.id.readable=False
>
> > > >>> On Aug 17, 3:30 pm, Pynthon <[email protected]> wrote:
> > > >>> > Lol, this is no joke I did really forgot it again:
> > > >>>http://pastebin.com/f3dd6c821.
>
> > > >>> > 2009/8/17 Pynthon Pynthon <[email protected]>
>
> > > >>> > > Hello
> > > >>> > > I have some unwanted text in my form. Here is the code  (nah I
> > did
> > > >>> not
> > > >>> > > forget it this time Massimo *grin*). The problem is it puts this
> > on
> > > >>> my
> > > >>> > > screen:
> > > >>> > > ID: 1
> > > >>> > > Title: Title (field)
> > > >>> > > Body: Body (field)
> > > >>> > > But I don't want the ID text. How can I fix this?
> > > >>> > > Thanks!- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to