set 
db.table.something.default = somevalue
db.table.something.writable = False

On Thursday, March 14, 2013 3:12:06 PM UTC+1, [email protected] wrote:
>
> I wan to write a SQLFORM where certain fields have their values fixed.  
>
>
> Eg: I want a form for db.auth_membership where the group_id is fixed to a 
> specific value and the only field to specify is the user_id.
>
>
> doing SQLFORM(db.auth_membership) doesn't work because all values of the 
> group are possible.  Is there a way of defining the parameter in SQLFORM 
> such that it constrains certain fields?
>
>  
> Thanks for any help
>
> Olly
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to