Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to display specific tab using Region Display Selector at displaying page?

Blue BirdMar 26 2018 — edited Mar 30 2018

Hi,

I'm using APEX 5.0.4. I have an interactive report page with data columns and one contain hyperlink (Identification > Type > Link) to another page. This another page have couple of charts. Each chart is on separate tab using Region Display Selector. What I would like to achive is that when user click link on first page, specific tab would open on my target page with charts (e.g. 3rd tab). My chart page open normally, but not necessary on the correct tab, but on before active tab (when I was on this page).

I found one recipe here, which should do exactly that, but It doesn't work If I follow this instructions. Either I'm doing something wrong or I didn't set all correct or some parts are not described how it should be.

Can someone please give me even easier solution for what I would like to achive or try to follow this instructions and tell me if this example work at all? Below are some settings but it's hard to write them all. The most helpfully to me would be if someone can follow this article and confirm that this example work out of the box or he has to do some additional steps which is not clearly written but it should be, so example would be valuable for other readers as well not just the author.

I have Select list named P100_SELECT_TAB, which have List of Values > Static Values: STATIC2:User Data;1,Chart;2

Then I have Region Display Selector (RDS in advance) with Advanced > Static ID > TABS (set to TABS)

pastedImage_1.png

Inside this RDS I have two tabs (as shown above):

- "User Data" with Advanced > Static ID set to TAB_1

- "Chart" with Advanced > Static ID set to TAB_2

For P100_SELECT_TAB I bind Dynamic Action (DA) with Condition When > Change > Item's > P100_SELECT_TAB equal to 1

For True part of this DA I have Identification > Action > Execute JavaScript Code:

sessionStorage.setItem(".&APP_ID..&APP_PAGE_ID..<TAB_CONTAINER>.activeTab","#CR_SR_<TAB_NAME>");

$('#<TAB_CONTAINER> a[href="#CR_SR_<TAB_NAME>"]').trigger('click');

Affected Elements > Item's > P100_SELECT_TAB.

BB

This post has been answered by fac586 on Mar 30 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2018
Added on Mar 26 2018
32 comments
10,646 views