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!

Interactive Grid – Persisted Selection not reflected in selectionStateItem across pages

Pierre Yotti3 days ago — edited 3 days ago

I’m working with an Interactive Grid where I’ve enabled

function( options ) {
  options.defaultGridViewOptions = {
       persistSelection: true,
      selectionStateItem: 'P53_SELECTION_STATE'
  };
  return options;
}

What I notice:

  • Select All applies only to the current page.
  • With persistSelection:true, APEX correctly remembers the selection across multiple pages.
  • However, the page item defined in selectionStateItem (P53_SELECTION_STATE) is only populated with the selection state of the currently loaded page.

Example:

  1. Go to page 3, deselect 2 rows.
  2. Switch to page 1, click Select All.
  3. When I check P53_SELECTION_STATE, it does not reflect the deselections from page 3.
  4. Only after I go back to page 3 does the item get updated correctly.

So it seems the item is updated only when a page is loaded, not when changes are made on other pages.

Question:
Is there a way to have selectionStateItem reflect the true global selection state immediately (without the user having to revisit each page)? Or do I need to implement my own custom tracking logic with JavaScript and a global Set of PKs?

Any suggestions or best practices are highly appreciated!

This post has been answered by Karel Ekema on Sep 2 2025
Jump to Answer
Comments
Post Details
Added 3 days ago
3 comments
113 views