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!

ADF master-detail master selection not updating detail tables

user9149841May 28 2012 — edited May 30 2012
Hello,

I am running JDeveloper 11.1.2.2 running on Windows XP Pro and I am still testing with the embedded weblogic server.

I have created a master-detail data model (as described in several articles that are frequently referenced in these forums) and added them to a page fragment with a query panel. When I run the task flow/page fragment, I can run the search and the master table gets the correct data, and the detail tables get the correct data for the first row in the master table.

The problem is that when I select a non-first row in the master table, the detail tables don't get updated. I have set the PartialTriggers on each detail table to reference the master table's id and I verified that the master table has a selectionlistener specified with EL that performs the makeCurrent operation on the data collection iterator that iterates over the master table rows.


Here is my data model and UI setup:

My tables: A,B,C,D,E,F
Views:
AB_JOIN_VO (extends generated VO A; added entity B and all attributes from B; has a view criteria based on a single attribute from B)
C_VO
D_VO
EF_JOIN_VO (extends generated VO E; added entity F

Data Model:
AB_JOIN_VO
-> C_VO
-> D_VO
-> EF_JOIN_VO

UI:
1. From the Data Controls section in the App navgivator, I did the following
* Expand the data control for AB_JOIN_VO
* Expand the Named Criteria folder under the AB_JOIN_VO data control
* Dragged the View Criteria object to my page fragment as a Query Panel with Table (this gives me my master table)
* The table component that acts as my master table on the UI had ID "resId1".
* Dragged C_VO (found under AB_JOIN_VO in Data Controls) to the page fragment as a ADF Read-Only Table (detail table 1 is now on the UI)
* Dragged D_VO (found under AB_JOIN_VO in Data Controls) to the page fragment as a ADF Read-Only Table (detail table 2 is now on the UI)
* Dragged EF_JOIN_VO (found under AB_JOIN_VO in Data Controls) to the page fragment as a ADF Read-Only Table (detail table 3 is now on the UI)
* For each table, I left all columns in the table and select "Single" row selection, and selected the box to enable Sorting.
2. In the Page Fragment, for each detail table component, I did the following:
* Selected the component in the structure pane
* selected the PartialTriggers property in the Property Inspector
* Selected the PartialTriggers drop down menu on the right of the text field and selected "Edit"
* Used the popup browser to select the resId1 component and shuttled it to the right pane and hit "Ok".
- This set the PartialTriggers property to "::resId"
3. Ran rebuild on both my model and viewcontroller projects
4. Right-clicked and selected "Debug" on the jspx page that contains a link that launches the task flow for my page fragment that contains the UI described above.
5. On the page, when the link is selected, the task flow launches in a subtab as shown in the UI Shell article (http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html) - using a backing bean to launch the task flow.
6. When the page comes up, I launch the task flow using my link.
7. I enter my search data in the text field of the search box, and hit the "Search" button
8. The master table gets populated with the correct data, and the detail tables get populated with data that corresponds to the first row of the master table.
9. I select a row in the master table other than the first row, but none of the detail tables get updated.


Here are other things I observed while running the page and task flow:
* After I search, it looks like all rows in the master are selected because they have a dark gray background. If I press the Esc key, the background color of the rows is white again.
* If I put a new value in the search text box and press search again, that resets all of the data. So, my master table has the correct data again, and each detail table has the correct data for the first row in the master table and that data doesn't change if I select a different row in the master table.
* In the IDE, after I launch the task flow, I see errors in the debug log saying that "::resId1" could not be found and that the syntax used for that field is deprecated. If I update the PartialTriggers value on each detail table to be just "resId1" and run the scenario again, all of the same problems are still in place in the UI, and the debug logs show the same error except this time they say "resId" is using a deprecated syntax.

Any help here would be greatly appreciated.

Thanks,
John
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2012
Added on May 28 2012
5 comments
1,356 views