Your table can't have the same field name :

http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=One+form+for+multiple+tables#Other-types-of-Forms
This only works when the tables don't have field names in common.

But you can .clone() your field :

https://groups.google.com/d/msg/web2py/FAvjWNUiC3Y/gV_4BPXZkw4J

Hope it helps

Richard




On Thu, Oct 31, 2013 at 5:05 PM, Diogo Munaro <diogo.mvie...@gmail.com>wrote:

> Hey guys, it's possible to use sqlform to generate same table twice or
> more?
>
> example:
>
> form = SQLFORM.factory(db.item,db.item_image,db.item_image,db.item_image)
>
> Is there exists a best way?
>
> --
> 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.
>

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