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: