Massimo, I tried:
> db.companyactivity.activity.requires=[IS_IN_DB(db,db.activity.id,'% > (activity_name)s'),IS_NOT_IN_DB(db > (db.companyactivity.company==request.vars.company),db.companyactivity.activ > ity)] > db.companyactivity.activity.widget=OptionsWidget.widget ... using revision 1027 of the sqlhtml.py file. The OptionsWidget works, but, the validator: IS_NOT_IN_DB(db (db.companyactivity.company==request.vars.company),db.companyactivity.activ ity) ... doesn't work. Kind regards, Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---