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!

Promise like return value from apex.region().refresh() (javascript)

Soeren DJun 26 2025 — edited Jun 26 2025

I refresh a region (grid) in js. That causes the page to go to scroll position 0 and I would like to maintain users scroll position. I can do that by scrolling to users position after a delay but that causes flickering. refresh does not appear to return a promise. Is there another way to optimize this to avoid (reduce) flickering?

var scrollTop = $(window).scrollTop();
apex.region(listId).refresh();
setTimeout(function () {
  $(window).scrollTop(scrollTop);
}, 50); 

Thanks in advance.

Kind regards
Soeren D.

Comments
Post Details
Added on Jun 26 2025
1 comment
227 views