Posts

In ADF Faces tree and tree table is used for the hierarchical representation of master/detail form of data,
in this tutorial, I will show you that how can we design better UI’s using master-detail data.
af:iterator and af:ForEach both are used to iterate data as af:table for custom UI component-

here I am taking the example of default HR Schema of Oracle database, Departments and Employees table to show the master-detail relation

Using af:iterator-

Create a Fusion Web Application and prepare the model for the master-detail relationship between departments and employees table and in your page drop af:showDetailHeader from the component palette

I have Associations and view links between following entities in BC Layer:Department(Parent:1) and Employees (child: Many),Employees(Parent: 1) and Job history (child: Many).

In JSFF:

I have a form layout with two fields mapped from Department VO and then

underneath it I have a iterator on Employees collection similar to the use case you provided here in first part of this blog and I surrounded showDetailHeader with the iterator (defined proper partial triggers on iterator for refreshing showDetailHeader area for inserting a new row in Employees via createinsert method from command image link and),

now I have a requirement to show child table(Job history) data inside showDetailHeader: when I drag and drop the View Link(Job history) from data controls to jsff under the main iterator (for parent collection below Department form fields) & showDetailHeader it is not working as expected, Binding repeats for multiple parent rows.

when I do create insert on parent(Employees) it shows blank rows in child table(Job history) for existing Employee rows,

here we are dealing with Parent–>Child1(Association and VL between Parent and Child1 defined) –>Child2(Association and VL between Child1 and Child2)

Hey Friend! Thanks for visiting our site We have detected that you are using AdBlock and we understand your concern but for keeping up this website we need to show some beautifully placed ads. I hope you understand that and support us by disabling AdBlock on this site. Please disable AdBlock in the browser and reload this page to visit my website.&nbsp&nbsp&nbsp&nbsp

We use cookies on our website to help us offer you best online experience Find out more.