db.define_table('Participant',
Field('Id' , 'integer'),
Field('FirstName' , 'text'),
Field('LastName' , 'text'),
Field('CardNumber' , 'text'),db.define_table('Participant',
Field('Id' , 'integer'),
Field('FirstName' , 'text'),
Field('LastName' , 'text'),
Field('CardNumber' , 'text'),
Field('SocialSecurityNumber' , 'text'),
Field('IsActive'),
Field('Accelerated'),
Field('Consent'),
Field('FiftyPercentApprentice'),
Field('IsApprentice'),
Field('IsUnemployed'),
Field('Lock'),
Field('SocialSecurityNumber'),
Field('IsActive'),
Field('NonCompliant' , 'integer'),
Field('Member_Local', 'reference Locals'),
Field('Contractor_Member'),
Field('Participant_ContactType'),
primarykey=['Id'],
migrate=False)
db((db.Participant.CardNumber==form3.vars.unionid3) & \
(db.Participant.IsUnemployed=='False') & \
(db.Participant.Consent=='True')).select(db.Participant.ALL,
cacheable=False).first().update_record(NonCompliant=False)
I attempt to update record here yet I keep getting Row has no attribute
'update_record'
I know by default cacheable is false but I set it there anyway to make sure
i wasnt crazy it wont take it no matter what i do.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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.