instead of request(0), write request.args(0) 

29 Ocak 2014 Çarşamba 19:13:27 UTC+2 tarihinde A36_Marty yazdı:
>
>
> I've created a web2py grid of records based on the selection on the page. 
>  i.e. a table COMPANY has many EMPLOYEES -- someone selects a given COMPANY 
> and a SQLFORM.grid of the related EMPLOYEES is shown.
>
> Question:  How can I customize the web2py Add/Edit forms that appear when 
> the respective buttons are pushed on the Grid.
>
> More specifically, if one wishes to add an EMPLOYEE, I need to hide the 
> related COMPANY field on the add form, yet still fill in the value with 
> whatever COMPANY is currently selected.
>
> I see formargs, editargs, createargs, etc., but am having trouble finding 
> examples (that I understand) of how to modify these forms and not recreate 
> the wheel by making totally custom add/edit grid forms.
>
> Your responses are most appreciated.  I am a novice web2py user with 
> limited webapp development experience.
>
> Thanks in advance.
>

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