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!

Javascript refresh all regions or at least event region (APEX5.1)

HoekSep 26 2019 — edited Sep 26 2019

Hi all,

Being not a Javascriptkid yet, but trying to learn how to accomplish the following:

We have an APEX (5.1) page which used to have a one region where one could execute a procedure through a derived/virtual column (type= link, URL=javascript:)/AJAX callback.

The executed code (declared on page level, Function and Global Variable Declaration ) is pretty straightforward:

function fixdata(seq){

    apex.server.process('P101_FIXDATA', {

      x01: bookingseq

    }, {

      dataType: "text",

      success: function (pData) {

          $('#missingdata').trigger('apexrefresh');

      }

    });

}

So the static region id is passed in order to refresh the region.

Now that same procedure is being called from 7 other new regions.

Is there a way to refresh all regions/the complete page in this function without copying $('#missingdata').trigger('apexrefresh'); eight times?

I'm looking for a more elegant way.

Thanks in advance for any pointers

Regards

This post has been answered by fac586 on Sep 26 2019
Jump to Answer
Comments
Post Details
Added on Sep 26 2019
2 comments
655 views