From APEX version 22.2 there's a changed behavior how active tabs or region display selectors (RDS) are stored in the browser session storage:
In versions before 22.2 they were stored without a prefix (session storage scope) and now they are stored with the prefix ORA_WWV_apex.apexTabs.
In some of my applications I've used a custom JS function to clear active tab:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Clear Active Tab | |
* @param {number} pPageId - Page Number | |
* @param {string} pRegionId - Region Static ID | |
*/ | |
function clearActiveTab(pPageId,pRegionId){ | |
var vStorage; | |
if (apex.storage.hasSessionStorageSupport()) { | |
vStorage = apex.storage.getScopedSessionStorage({ | |
useAppId: true | |
}); | |
vStorage.setItem(pPageId+'.'+pRegionId+'.activeTab', null) | |
} | |
} |
From APEX 22.2 you need to set prefix:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Clear Active Tab | |
* @param {number} pPageId - Page Number | |
* @param {string} pRegionId - Region Static ID | |
*/ | |
function clearActiveTab(pPageId,pRegionId){ | |
var vStorage; | |
if (apex.storage.hasSessionStorageSupport()) { | |
vStorage = apex.storage.getScopedSessionStorage({ | |
prefix: 'ORA_WWV_apex.apexTabs', | |
useAppId: true | |
}); | |
vStorage.setItem(pPageId+'.'+pRegionId+'.activeTab', null) | |
} | |
} |
Tested in APEX 22.2.0