Showing Master Detail row in one ADF table
Hi All,
Today I am going to show how you can show the master and detail row in same table.
In order to show this you have to create you View Object based on master as well as detail Entity Object linked with association as shown below.
Then go to Attribute section and Add the Attribute from Entity Object as shown below.
Then select the attribute according to your wish from DepartmentEO. For my example I have selected all and click on ">" icon.
Now click on Ok button.
Now go to your page and create the table based on attributes from Employee table only.
as shown below.
and click on Ok.
Now go to Structure Palette and right click on the table and select the option "Facet-Table" then select Detail Stamp" option as shown below.
Now drag and drop the view object from data control to the detailStamp facet as read only form and delete the attributes from EmployeeEO in the popup and keep only attributes from DepartmentEO.
Click on Ok.
Now when you run your page you will see that the table is looking like as this:
If you notice here you can see some triangular shaped icon is appearing on extreme left.
So when you click on any of the triangular icon then it will expand the row as shown below.
So you can see the child information just below the row in the same table.
That's all about it.
Happy Coding :)
Today I am going to show how you can show the master and detail row in same table.
In order to show this you have to create you View Object based on master as well as detail Entity Object linked with association as shown below.
Then go to Attribute section and Add the Attribute from Entity Object as shown below.
Then select the attribute according to your wish from DepartmentEO. For my example I have selected all and click on ">" icon.
Now click on Ok button.
Now go to your page and create the table based on attributes from Employee table only.
as shown below.
and click on Ok.
Now go to Structure Palette and right click on the table and select the option "Facet-Table" then select Detail Stamp" option as shown below.
Now drag and drop the view object from data control to the detailStamp facet as read only form and delete the attributes from EmployeeEO in the popup and keep only attributes from DepartmentEO.
Click on Ok.
Now when you run your page you will see that the table is looking like as this:
If you notice here you can see some triangular shaped icon is appearing on extreme left.
So when you click on any of the triangular icon then it will expand the row as shown below.
So you can see the child information just below the row in the same table.
That's all about it.
Happy Coding :)
good one ! which ADF version are you using ?
ReplyDeleteThe JDeveloper version is 11.1.1.6.0
Delete