CORRECTION
somefield1 and somefield2 have create permission. while
***somefield3*** has
been denied access by me.

On Mar 15, 9:06 pm, phneoix <neo.stea...@gmail.com> wrote:
> SORRY put my question in wrong way.
>
> somefield1 and somefield2 have create permission. while somefield has
> been denied access by me.
>
> SQLFORM(db.sometable, writable=True) # it works here. sqlform
> generates a form with somefield1 and somefield2.
>
> but if i want to create a custom form it does not work.
>
> eg: SQLFORM(db.sometable,fields=
> ['somefield1','somefield2','somefield3'],writable=True) #it fails
> here. iam able to access all 3 fields
>
> sorry for the trouble.
>
> On Mar 15, 7:16 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
>
>
> > You can overwrite
>
> > db.table.field.writable=True or False
>
> > just before you call SQLFROM
>
> > On Mar 15, 6:05 am, phneoix <neo.stea...@gmail.com> wrote:
>
> > > i have set permissions for individual fields and implemented them
> > > successfully using
> > > SQLFORM(db.sometable, writable=True)
>
> > > but if i want to create a custom form it does not work.
> > > eg: SQLFORM(db.sometable,fields=
> > > ['somef1','somef2','somef3'],writable=True) #somef3 is denied access
>
> > > is there a way out.
>
> > > and i could not find the syntax for SQLTABLE to do the same job of
> > > hiding fields.
>
> > > thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to