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!

Programmatically refresh or add filter to interactive grid after model data fetch finishes

dstinskiMay 27 2021

I have this apex form consisting of records being updated by clicking a button which executes a dynamic action that executes some pl sql code that modifies the record status of the records in the grid.
When the PL SQL is finished, it returns a validate msg into a page item and I have change event checking if it is set to "Success" else display the error message.
In the false action where an error occurs I execute the following code to apply a filter to the interactive grid:
apex.region("item_updates").widget().interactiveGrid("addFilter", {
type: 'column',
columnType: 'column',
columnName: 'RECORD_STATUS',
operator: 'EQ',
value: 'Error',
isCaseSensitive: false
});

The problem is when the filter is applied the grid displays no data found and I have to refresh several times before the grid finally displays the Errored records.
Any help on this would be greatly appreciated!

This post has been answered by dstinski on Jun 2 2021
Jump to Answer
Comments
Post Details
Added on May 27 2021
11 comments
8,557 views