While I know I can get the table name and masterkey value from the following code, I wondered how would I get the actual field names which form the master/detail relationship? I know I culd put them in a session and pass to a function, I just wondered if there's a way to retireve them from the system.
### Get master table name
$masterTable = $_SESSION[$strTableName . "_mastertable"];
### Get foreign key values
$masterKey = $_SESSION[$strTableName.'_masterkey1'];