Returns the RunnerPage object of the Details preview displayed on the page.
Syntax
getDetailsPage( name, recordId );
Arguments
name {string}
the exact name of the Details table. Case sensitive.
recordId {integer}
an optional {integer}. A unique identifier of a record in a data grid on the List page.
Note: use the recordId() function in the GridRow object to obtain this parameter.
Return value
Returns the RunnerPage object of the Details preview displayed on the page.
Example
Hide the Add button for the order details table preview.
var details = pageObj.getDetailsPage( 'order details' );
details.hideItem( 'add' );
See also:
•RunnerPage class: getMasterRecord()
•Setting up the master-details relationship between tables
•List page settings / Click actions
•Show data from a master table on the details view/edit/add page
•Show order total on the Edit page as the details table is updated
•AJAX-based functionality: Details page records preview
•JavaScript API: RunnerPage object