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