Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Project Settings API > Methods

Project Settings API: getDetailsKeys()

Scroll Prev Next More

 

Returns the fields that link the current master table to the specified detail table.

Syntax

$settings->getDetailsKeys($detailsTable);

Arguments

$detailsTable

The name of a detail table linked to the current table.

Return value

An array with two elements: masterKeys contains fields from the current master table, and detailsKeys contains the corresponding fields from the detail table.

Example

Display the first pair of fields linking Orders to Order Details.

$settings = new ProjectSettings("Orders");
$keys = $settings->getDetailsKeys("Order Details");
 
echo $keys["masterKeys"][0] . " -> " . $keys["detailsKeys"][0];

See also:

getDetailsTables()

getMasterKeys()

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software