Thank you for your support.
It has been solved by rewriting the arguments of IS_IN_DB.
The format (3rd argument) should not contain dot and should come from
only one table, which is the table of the second argument.
The query (1st argument) can reference more than one table (one of
them is used in the second and third argument, and it is the one that
contain the description that is required to be shown in the dropbox).
my mistake was that I thought that the second argument can be any one
of the two that are equated in the query, but choosing one will choose
that table that will be used in the format (third argument).
Thanks again and see you in the next opportunity.
Ashraf
On Feb 22, 1:26 am, Richard Vézina <
ml.richard.vez...@gmail.com>
wrote:
> Maybe reading IS_IN_DB doc could helps...
>
> Richard
>
> On Tue, Feb 21, 2012 at 5:22 PM, Richard Vézina <
ml.richard.vez...@gmail.com
>
>
>
>
>
>
>
> > wrote:
> > Ok by new style I mean this syntax :
>
> > db.dog.owner.requires = IS_IN_DB(db,*
db.person.id*,'%(name)s')
>
> > Instead of :
>
> > db.dog.owner.requires = IS_IN_DB(db,* '
person.id'*, '%(name)s')