Hi Stifan,

Thanks for the reply.

I tried:

db.define_table(
    'place_info',
    Field('place_id', db.place, requires=IS_IN_DB(db, 'place.id', 
'%(name)s')),
    Field('category_id', 'reference category'),
    Field('specific_desc', 'text'),
    Field('picture', 'upload'),

    format = '%(place_id)s'
    )

But the SQLFORM for the review table still only shows the value of 
place.id. Did I miss something? Should I been looking to create the form 
manually instead?

On Sunday, September 13, 2015 at 1:45:18 AM UTC+1, 黄祥 wrote:
>
> i think you can use requires = IS_IN_DB() and record representative that 
> reference to place table.
>
> best regards,
> stifan
>

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