On Aug22, 2:55pm, Varun Kumar <varunk.ap...@gmail.com> wrote: > db1 { > field1} > > db2 { > field2} > > db3 { > field3 > > } > > db1.field1.requires = IS_IN_DB ( db2.field2 or db3.field3 ) > > what is the syntax for above IS_IN_DB statement ( is it possible to add drop > down menu also for this command ) ?
If your emphasis is about the "OR" relationship, how about build a "base" db (table) first and let all other reference field links to the base? db0{ field0 } db1{ field1, requires=IS_IN_DB(db0,db0.field0) } db2{ field2, requires=IS_IN_DB(db0,db0.field0) } db3{ field3, requires=IS_IN_DB(db0,db0.field0) } anyway, you get the idea. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@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 -~----------~----~----~----~------~----~------~--~---