Changes between Version 5 and Version 6 of IS_ONE_OF
- Timestamp:
- 08/23/09 13:15:42 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IS_ONE_OF
v5 v6 3 3 The '''IS_ONE_OF()''' validator is a custom version of web2py's IS_IN_DB() for foreign key lookups in a key table. In forms, the respective field will be rendered as a drop-down field. 4 4 5 Other than IS_IN_DB, the IS_ONE_OFvalidator is deletion status sensitive, i.e. records in the key table that are flagged as 'deleted' will be ignored.5 Unlike IS_IN_DB, the '''IS_ONE_OF''' validator is deletion status sensitive, i.e. records in the key table that are flagged as 'deleted' will be ignored. 6 6 7 7 Furthermore, it is possible to filter the key records by a type field (which should be int) for certain options.