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!

How to refresh iterator based on uncommitted changes

Sydney H.Jul 3 2014 — edited Jul 31 2014

Hi,

JDev 11.1.2.4

I have a VO with one VC. In my AM, I exposed 2 VO:

VO1 = VO without the VC

VO2 = VO with the VC

In my UI I have:

a table based on VO1 in which I can add, update or remove rows.

a button that show a popup that contains a table based on VO2

Scenario: Update

I make a modification on an existing row. The modification is done on a field auto submit - true.

I click the button

The table in the popup shows the modified value

OK

Scenario 1: Create

I create a new row. The fields to create the new row are all auto submit = true

I click the button

The table in the popup does not show the new row. It shows only the last state (original rows + modified rows)

KO

Scenario 1: Remove

I remove an existing row.

I click the button

The table in the popup does not show the deleted row. It shows only the last state (original rows + modified rows)

KO

Q: What can I do, so the table in the popup shows the current state (uncommitted data). I tried to refresh the iterator after a create or a delete but I still get the old data?

    DCIteratorBinding myIterator = ADFUtils.findIterator(iterator);
    myIterator.executeQuery();
    myIterator.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);

Thanks

This post has been answered by Timo Hahn on Jul 3 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2014
Added on Jul 3 2014
15 comments
4,198 views