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 prevent record fetch for the 1st onload [multi questions] - ADF 11g

746902Feb 10 2010 — edited Feb 10 2010
Hi,
I am working on JDev 11.1.1.2.0 with oracle 10g as the DB.

I have built a master page [ i.e. a page linked to a single master table eg. country tbl] with CRUD functionality. It is a pure ADF components page.
This page has been built using a single DC component of the same table. The page is segragated into an add/edit , search and search list sections.
All using the same DC component. The list section has partial trigger depending on search, while the add/edit has partial trigger based on list. This helps me selecting a record from list and display the details in add/edit section. I have multiple questions.

1. When my page gets loaded the add/edit section shows the 1st record of the table. This is not required. How can I prevent this?

2.a. B'coz of same table's view component, when I add ([createInsert operation]) a record in add/edit section even the list section gets updated with a blank record. Thus the page gets rendered twice. At this point if I want to delete ([Delete operation]) the record it is prevented since the table has a 'primary key' column.

2.b. Now even if I select a record from the list it shows 'Error: A value is required' message. Thus I am forced to either reset the URL or enter a dummy value and take further actions.

Any guidance on how I can rectify these issues? I do understand that the model gets updated with the new record but it is not submitted yet then how do I prevent such flow?

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2010
Added on Feb 10 2010
2 comments
611 views