Looks like it should work. What do you mean it doesn't work? What are you expecting, and what is happening instead?
Anthony On Tuesday, August 7, 2012 3:13:36 AM UTC-4, Annet wrote: > > I have the following validator: > > IS_NOT_IN_DB(db(db.PromoUnit.sequenceNumber==request.vars.sequenceNumber),db.PromoUnit.promoPositionID,error_message='combination > > promo position sequence number already in database') > > The table PromoUnit also has a field nodeID which I would like to include > in the validator. I thought maybe this would work: > > IS_NOT_IN_DB(db((db.PromoUnit.sequenceNumber==request.vars.sequenceNumber)&(db.PromoUnit.promoPositionID==request.vars.promoPositionID)),db.PromoUnit.nodeID,error_message='combination > > nodeID promo position sequence number already in database') > > ... but it doesn't. Is there a solution to solve this problem? > > > Annet. > --

