Are you using SQLFORM.grid?

-Jim

On Friday, September 27, 2013 2:38:01 PM UTC-5, Tao Wang wrote:
>
> I'm just beginning to learn web2py. A beginner question about how to 
> insert a record using sqlform
>
> form = SQLFORM(db.filecomment, fields=['file_id', 'filecomment'])
>
> I can get the file_id, so I do not need user to file this field. What the 
> user only need to file the 'filecomment' field. How could I do this? In the 
> above code, the user need to file both "file_id" and "filecomment".
> After form.process.accepted, the record will be inserted. 
>
> Thanks
>

-- 
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/groups/opt_out.

Reply via email to