Skip to Main Content

Java Development Tools

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.

View Object not updating when there is changes in DB

User_7TK0DSep 2 2022

Hello,
I need some help.
I'm a newbie and I'm using JDeveloper 12.2.1.4.0.
Why the VO is not fetching the changes in Database?
I tried to update the status from NEW to PENDING in Database
image.pngBut the changes is still not reflecting in UI Page
image.pngI already set the VO to auto-refresh = true but it is still not working
Thanks

This post has been answered by Eric v.M. on Sep 10 2022
Jump to Answer

Comments

Christine Lei-Oracle

Have you tried to wrap the child data the other way around as

const bufferingDP = new BufferingDataProvider(childArrayDataProvider);
this.childDataProvider(new ListDataProviderView(bufferingDP));

Hopefully in this way, ListDataProviderView would apply filter on all buffered data.

DaveArch

Thanks for your reply Christine.
Unfortunately that doesn’t work because wrapping it the other way around means that the functions specific to BufferingDataProvider are not available i.e. getSubmittableItems()
node.js:3173 Uncaught TypeError: this.childDataProvider(...).getSubmittableItems is not a function
Any other ideas?
Is there a way of altering the filterCriterion on ListDataProviderView without replacing the whole data provider which is wrapping it? I was wondering whether this would work so that they next time the data is fetched it will use the new filter?

Christine Lei-Oracle

The original wrapping order will use original data without buffered data information. Don't seem to have a way better than your current one although it's not that 'automatic' unfortunately.

1 - 3

Post Details