This doesn't work. The key from the parent grid comes with URL(... 
,args=[id]) and pressing submit gives a new request. Storing the id in the 
session variable looks ugly to me.

kl. 16:07:45 UTC+2 søndag 31. mars 2013 skrev Vladimir Kaznacheev følgende:
>
> in controller try 
> db.<table>.<field>.default = some_value
> before
> form = SQLFORM.grid(.......)
>
>
>
>
> воскресенье, 31 марта 2013 г., 18:01:23 UTC+4 пользователь Sverre написал:
>>
>> I want to create on a grid and have most of the fields hidden by setting 
>> field attrs readable=False and writable=False to hide these field in detail 
>> view and update. The problem occurs now, when I'm creating new data. The 
>> hidden fields are not writable and one of them contains the key from a 
>> parent grid. 
>>
>> How can I write a value into a field when the user clicked submit?
>>
>>
>>

-- 

--- 
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