[web2py] Re: How to not validate a reference field

2013-12-16 Thread Phil Hughes
Perfect. Clearly the trick here is just getting used to all the options available. I have yet to find something I can't do but, much like learning any new language (computer or natural) you just need to get used to it. Thanks. On Monday, December 16, 2013 3:17:58 PM UTC-6, Anthony wrote: > > I

[web2py] Re: How to not validate a reference field

2013-12-16 Thread Anthony
> > I guess you could make it a plain integer field and use > requires=IS_EMPTY_OR(IS_IN_DB(db, ...)) > I think that's the way to go, but you don't have to make it a plain integer field -- can still be a reference field. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] Re: How to not validate a reference field

2013-12-16 Thread Phil Hughes
The record will become a relationship between two people but the way it works the first person creates the record and gets an ID (not the id field in the record but and identify number for building the relationship.) That ID is then sent to the other party (effectively by internal email) so they

[web2py] Re: How to not validate a reference field

2013-12-16 Thread Cliff Kachinske
Why do you want to do this? Reference fields include the IS_IN_DB validator by default. I guess you could make it a plain integer field and use requires=IS_EMPTY_OR(IS_IN_DB(db, ...)) On Monday, December 16, 2013 12:28:14 PM UTC-5, Phil Hughes wrote: > > I have some reference fields in a table