This topic is locked

Getting the actual master & details fieldnames

2/14/2025 3:51:49 AM
PHPRunner General questions
C
Chris Whitehead author

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'];
Admin 2/14/2025

We do not have such an API.

C
Chris Whitehead author 2/14/2025

Bugger , looks like it has to be a session variable then lol