Fixed the typos and this is the part where I get stuck. It prompts me the
data validation error "Value not in database". I see the values in the
checkboxes.
db.define_table('finish',
>> Field('name'),
>> Field('abbr'))
>> db.finish.name.requires = IS_NOT_IN_DB(db,db.finish.name)
>> db.finish.abbr.requires = IS_NOT_IN_DB(db,db.finish.abbr)
>>
>>
>> db.define_table('product',
>> Field('series', 'reference series'),
>> Field('material', 'reference material'),
>> Field('finish', 'reference finish'),
>> Field('cut', 'reference cut'),
>> Field('name'))
>>
>>
>> db.define_table('productfinishes',
>> Field('product', 'reference product'),
>> Field('finish', 'reference
>> finish',widget=SQLFORM.widgets.checkboxes.widget))
>> db.product_finishes.requires = IS_IN_DB(db,db.product.id,'%(name)s')
>> db.finish.requires = IS_IN_DB(db,db.finish.id,'%(name)s')
>>
>> Shouldnt this work??? it prompts me an error.
>>
>> Thanks
>>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.