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!

automatically expand region when selected by region display selector

melinda_fAug 17 2017 — edited Aug 17 2017

APEX 5. I have several collapsible regions on a page and am using a region display selector. I have a user request to automatically expand the region when a single region is selected with the region display selector.

I found code to be able to capture what region is selected. I am trying to figure out how to put this to use to do what I need to do and I thought for sure this would work. This is what I have in the Execute when Page Loads for my page:

$('.apex-rds').data('onRegionChange', function(mode, activeTab) {

console.log(activeTab.href);

$(activeTab.href+' button.t-Button--hideShow[aria-expanded="false"]').click();

});

The console.log works just fine and displays the region as expected If I hard code in the name of the region in the code to expand the region it works, I just can't figure out how to get it to work using activeTab.href for the region name.

console output:

pastedImage_0.png

This post has been answered by melinda_f on Aug 17 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2017
Added on Aug 17 2017
1 comment
440 views