Please enable JavaScript to view this site.

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

getCurrentRecord

Scroll Prev Next More

 

Gets the current record. Available on Edit/View pages.

 

Note: this function will only return data if key column is selected for the table in question.

Syntax

getCurrentRecord()

Arguments

No arguments.

Return value

Returns the array.

Example

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

 

XVar data = pageObject.getCurrentRecord();
MVCFunctions.Echo(data["Make"].ToString() + " " + data["Model"].ToString());

See also:

RunnerPage class: getMasterRecord()

JavaScript API: RunnerPage object > getSelectedRecordKeys()

About RunnerPage class