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!

Identifying selected tabbed region after report refresh

MM2587Apr 16 2016 — edited Apr 25 2016

Hi, i have tab display selector enabled for 4 regions. Each region has different reports. The tabbed region is as shown in the figure tab.JPG

I am doing some updates on each region and successfully able to refresh the report in the respective regions. But my problem is i have a drop down menu in report column.

drop.JPG

Below is the functionality i've written at Execute when page loads. The functionality works fine when page loads.

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

var tabreg = activeTab.href;

tabreg = tabreg.replace('#', '');

console.log(tabreg);

if (tabreg === 'Tab1') {

$(" td\[headers='DROPDOWN'\] [#nav](https://forums.oracle.com/ords/apexds/domain/dev-community?tags=nav) > li > a").click(function(e) { // binding onclick

  e.preventDefault();

  if($(this).prev().parent().hasClass('selected')) {

        $("td\[headers='DROPDOWN'\] [#nav](https://forums.oracle.com/ords/apexds/domain/dev-community?tags=nav) .selected div div").slideUp(100); // hiding popups

        $("td\[headers='DROPDOWN'\] [#nav](https://forums.oracle.com/ords/apexds/domain/dev-community?tags=nav) .selected").removeClass("selected");

        if ($(this).next(".subs").length) {

            $(this).parent().addClass("selected"); // display popup

            console.log('entered');

            $(this).next(".subs").children().slideDown(200);

        }

    }

    e.stopPropagation();

});

$("body").click(function() { // binding onclick to body

  $("td\[headers='DROPDOWN'\] [#nav](https://forums.oracle.com/ords/apexds/domain/dev-community?tags=nav) .selected div div").slideUp(100); // hiding popups

  $("td\[headers='DROPDOWN'\] [#nav](https://forums.oracle.com/ords/apexds/domain/dev-community?tags=nav) .selected").removeClass("selected");

});

}

});

After partial page refresh of the report drop down is not working i.e. when i click on the + icon the page is jumping to top of page. I am not even able to identify the region selector also.

Any help would be much appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2016
Added on Apr 16 2016
2 comments
670 views