There is no relation between both tables... You can embed 2 forms as
component (LOAD())

if you were having list:reference type field it is differents and you have
to question yourself if you are not better to have something like
SELECT_OR_ADD_OPTION() or even better AutocompleteSelectOrAddOption()
widget... I recently update my old AutocompleteSelectOrAddOption() widget
(not finish yet) in order to move from jquery ui dialog to bootstrap
modal... I will publish a web2py slice when done.

Just ask if it interest you I can publish preview here...

Richard

On Thu, Apr 16, 2015 at 2:08 PM, LoveWeb2py <[email protected]> wrote:

> Hello,
>
> I'd like to have two SQLFORMs right next to each other.
>
> The second SQLFORM is just going to be linked to the field in table 1, but
> will be used so the student can make additional comments about a field.
> Model will look like this:
>
> db.define_table('main_table',
>         Field('field1','string'),
>         Field('field2','string'),
>         migrate=False)
>
> db.define_table('second_table',
>         Field('info_about_field1','list:string'),
>         Field('info_about_field2','list:string')
>         migrate=False)
>
> My question is... is it possible to have the second_table as a link
> underneath the main_table field. I want to have a modal pop up so they can
> enter additional information about the field
>
>
>  --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to