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 Transient Child VO with new rows .

337428Dec 3 2008 — edited Dec 4 2008
Hi,
I have a Master-Detail layout in my page. The data for the master comes from a SQL-based VO (say "MasterVO"). The data for the detail comes from a Transient VO (say "TransientChildVO"). I have created the MasterVO and TransientChildVO view objects; linked them with a viewlink (MasterVOToTransientChildVO) and added them to my AM. I have dragged/dropped the MasterVOToTransientChildVO viewlink to my page and the master-detail ui components have been created.

In the TransientChildVOImpl, I have overridden the executeQueryForCollection() method to get the rowset from 2 different VOs (say "abcVO" and "xyzVO"). In addition to this I have overridden the hasNextForCollection(), createRowFromResultSet(), getQueryHitCount() and create() methods. In the createRowFromResultSet() method I am using the rowset obtained by executeQueryForCollection() to create new rows in the TransientChildVO. So far so good .. the data comes up fine in both the master and detail regions.

In the detail region, I have a button on each row which when clicked on shows a popup with a Table in it. The user can create rows in this table and the data will get populated in xyzVO. The user can click on the Ok button in the popup to return to the page with the master-detail. The question are:

* how do I make sure that the newly added rows into xyzVO get reflected in the detail region?
* Can I force the executeQueryForCollection() again so that newly created rows in xyzVO gets populated back to the TransientChildVO?
* will just clicking on a different master row and coming back to the original master row call the executeQueryForCollection() again? (i don't have data to test this yet)

Thanks.

- Jay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2009
Added on Dec 3 2008
2 comments
1,049 views