Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Page class > Methods

getMasterRecord

Scroll Prev Next More

 

Gets the master record. Available on all pages of the details table, where data is filtered by the master record.

 

Note: this function will not return any data if you proceed to the details table directly bypassing the master table.

Syntax

getMasterRecord()

Arguments

No arguments.

Return value

Returns the array with master record data or null (see the note above).

Example

Get the master record and display the values of the Make and Model fields:

 

XVar data = pageObject.getMasterRecord();
if (data != null)
{
  MVCFunctions.Echo(data["Make"].ToString() + ": " + data["Model"].ToString());
}

See also:

RunnerPage class: getCurrentRecord()

JavaScript API:RunnerPage object > getDetailsPage()

JavaScript API: RunnerPage object > getDetailsPages()

JavaScript API: RunnerPage object > getMasterPage()

Example: Show data from a master table on the details view/edit/add page

Master-details relationship between tables

About RunnerPage class