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 Refresh a Parent Report Region from a Modal Page, while it is still Open

Tony FatourosAug 1 2017 — edited Aug 2 2017

Hi,

Using Oracle APEX v5.1.2.

Hoping someone can assist with the following situation. I basically have a parent  page that has a standard classic report region, where I have assigned a static id of "my-report".

Now as part of this region, I provide the ability for a user to press the "+" icon that opens a modal page, to allow a user to add another record to this underlying report table. Within this modal window, I am calling an AJAX apex.server.process that successfully performs the creation of a new entry, when the user presses an "Add" button on this modal screen.

Now after the creation of this new record, with the modal window still open, as the user may want to add further records, I actually want the parent region report with the static id of "my-report" to automatically refresh in the background.

The way I've approached it at the moment and not sure why it doesn't work, is actually trigger a DA on page 0, which seems to be getting called from my modal JS code but this code doesn't seem to trigger a refresh on my parent report region id "my-report", which is on a different page.

I've tried the following JS code and it doesn't seem to work:

apex.event.trigger( "#my-report", "apexrefresh" );

//and

apex.jQuery('#my-report').trigger('apexrefresh');

Can anyone pls assist with the above as I need to keep the modal window still open while my report on the parent page is refreshed.

Thanks.

Tony.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2017
Added on Aug 1 2017
3 comments
1,429 views