Please enable JavaScript to view this site.

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

Project Settings API: getMasterTables()

Scroll Prev Next More

 

Returns information about tables configured as masters of the current table.

Syntax

settings.getMasterTables();

Arguments

No arguments.

Return value

An array of master-table relationship definitions. Each item contains table, masterKeys, and detailsKeys elements. Returns an empty array if the table has no masters.

Example

Display the master tables linked to Order Details.

var settings = new ProjectSettings("Order Details");
var masters = settings.getMasterTables();
 
foreach (KeyValuePair<XVar, dynamic> master in masters.GetEnumerator())
{
MVCFunctions.Echo(master.Value["table"] + "<br>");
}

See also:

getMasterKeys()

About Project Settings API