Procedural File: class.atkonetomanyrelation.inc
Source Location: /relations/class.atkonetomanyrelation.inc
Page Details
This file is part of the Achievo ATK distribution.
Detailed copyright and licensing information can be found in the doc/COPYRIGHT and doc/LICENSE files which should be included in the distribution.
| Version: | $Revision: 6352 $ $Id: class.atkonetomanyrelation.inc 6969 2010-07-22 09:39:16Z rmerewood $ |
| Copyright: | (c)2000-2004 Ivo Jansch |
| License: | ATK Open Source License |
Constants
AF_ONETOMANY_ADDORCOPY_DIALOG [line 42]
AF_ONETOMANY_ADDORCOPY_DIALOG = AF_SPECIFIC_3
|
|
Use pop-up dialog for whatever a new record must be copied or must be added.
AF_ONETOMANY_ADD_DIALOG [line 31]
AF_ONETOMANY_ADD_DIALOG = AF_SPECIFIC_2
|
|
Use pop-up dialogs for adding records
AF_ONETOMANY_EMBED [line 37]
AF_ONETOMANY_EMBED = AF_ONETOMANY_ADD_DIALOG
|
|
Use embedded forms for adding records
API Tags:
| Deprecated: | Replaced by AF_ONETOMANY_ADD_DIALOG. |
AF_ONETOMANY_SHOW_ADD [line 57]
AF_ONETOMANY_SHOW_ADD = AF_SPECIFIC_4
|
|
Show the OTM in add mode.
Warning! Not on by default because this only works in simple cases.
What ATK does is, when you are in OTM add mode, it stores everything you add in the session, then when you're actually saving, it persists everything to the database.
However, as you may guess, not having an id will lead to strange results for:
- Nodes that use the foreign key in their descriptor
- Nodes with unique records (AF_UNIQUE always just checks the database)
- Combined primary keys
AF_RESTRICTED_DELETE [line 26]
AF_RESTRICTED_DELETE = AF_SPECIFIC_1
|
|
Only allow deletion of master item when there are no child records