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(new XVar("delete"));
  }
  return null;

See also:

RunnerPage class: hideItem()

JavaScript API: RunnerPage object > setCurrentTabId(tabId)

Additional WHERE tabs

Additional WHERE tabs API

JavaScript API: RunnerPage object

JavaScript API