Hi Felix,

'%(title)s' doesn't affect the table contents,  it is used to
represent the 'id' field in drop-down select boxes etc. In this case,
the 'title' field would appear in the select box for choosing the
'id'.  Of course,  the idea is that the title field will be much more
understandable than an id number.  If you do not have a 'title' field,
then use whatever else would be meaningful e.g. '%(name)s'.

-David

On Mar 7, 8:32 am, Felix <felix1...@gmail.com> wrote:
> Hi,
>    I don't understand the third parameter in the IS_IN_DB(). Even when
> I removed the '%(title)s', the table contents seemed to be the
> same.Can someone please tell me what it is used for?
>
> db.comment.image_id.requires = IS_IN_DB(db, db.image.id, '%(title)s')
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to