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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Refresh region and item

ZiutAug 22 2014 — edited Aug 25 2014

Hi

I have on a page region with report (classic) and item. Data in report are changing every 5 sec. I would like to refreshing this region without using button (report and item).

For region (footer) I create javascript:

<script type="text/javascript">

<!--

  setInterval("jQuery('##REGION_ID#').trigger('apexrefresh');", 5000);

//-->

</script>

And it works fine only for report. For item (inside this region)  - no.

How refresh item automatic?

Item is build as select query from db and every 5 sec should be refresh. I tryed use:

<script type="text/javascript">

<!--

  setInterval("jQuery('#P2_CURRENT_VALUE#').trigger('apexrefresh');", 5000);

//-->

</script>

...but no result.

I am not strong in javascript.

Regards

Ziut

Comments

John Stegeman
Answer
Angel,

There is no problem - the [url http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_popup.html]documentation will tell you that what you describe is the documented behaviour:
The PopupFetchEvent is one of two server-side popup events but doesn't have a corresponding client event. The popup fetch event is invoked during content delivery. This means that the event will only queue for popups that have a contentDelivery type of lazy or lazyUncached. Another caveat is that the event will only work when the launch id is set. This is automatically handled by the af:showPopupBehavior but must be provided as a popup hint if programmatically shown.
Since the PopupFetchEvent is specifically defined as an event that is fired during content delivery, it's not going to fire if there is no deferred content delivery.

John
Marked as Answer by 811261 · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 22 2014
Added on Aug 22 2014
4 comments
1,544 views