You are right Anthony, understood now.
Thanks Massimo for the warning as well.

On Saturday, May 31, 2014 8:07:33 PM UTC+7, Anthony wrote:
>
> On Friday, May 30, 2014 7:59:01 PM UTC-4, Pham Quang Dung wrote:
>>
>> Anybody enlighten me on while this form still updates the data? (I 
>> expected it was disabled to then use my own callback)
>>     form = SQLFORM.smartgrid(db.anyinfo,onupdate=None
>>                         ,constraints = dict(anyinfo = (tb.name
>> [6:]=='level'))
>>                         ,user_signature=False
>>                         )
>>
>
> "onupdate" is an argument of SQLFORM.grid that SQLFORM.smartgid passes on. 
> SQLFORM.grid then submits the "onupdate" callback as the "onsuccess" 
> argument to SQLFORM.process for update forms. The "onsuccess" argument is 
> simply a callback function that gets run after a form has been accepted 
> (i.e., processed). There is no reason to set onupdate=None, as that will 
> have no effect -- it does not turn off editing. If you want to turn off 
> editing, set editable=False.
>  
>
>> Also is there a way to convert all the way to POST form (I am confused as 
>> this was asserted in the manual, however it's GET while it reads args from 
>> URI not form vars, right?)
>>
>
> Not sure what you mean here. If you are using the grid functionality to 
> create or update records in the grid, the associated forms are POSTed. The 
> query string is only used when searching the grid.
>
> Anthony 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to