This topic is locked

Foreign Keys

7/15/2007 5:06:43 PM
PHPRunner General questions
C
chaz author

How does phprunner handle these.....do these enable auto insert or is it just a check for insertion?
how do we reference master keys from the events of the daughter table
thanks

J
Jane 7/16/2007

Hi,
foreign key from master table is inserted automatically when you add new record to the detail page.

More info about master-detail relatioships here:

http://www.xlinesoft.com/phprunner/docs/ma...elationship.htm
To select foreign key in the BeforeAdd event use following code:

global $strTableName;

echo $_SESSION[$strTableName."_masterkey1"];