Please enable JavaScript to view this site.

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

JavaScript API: RunnerPage object >getCurrentTabId()

Scroll Prev Next More

 

Returns the id of the current tab. This function can be used on any List or Print page events.

Syntax

getCurrentTabId()

Arguments

No arguments.

Return value

Returns the id of the current tab.

Example

You can hide the Delete button on the "main" tab using this code:

 

if( $pageObject->getCurrentTabId() == "main" ) {
$pageObject->hideItem("delete");
}

See also:

RunnerPage class: hideItem()

JavaScript API: RunnerPage object > setCurrentTabId(tabId)

Additional WHERE tabs

Additional WHERE tabs API

JavaScript API: RunnerPage object

JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software