In real world we often need to build master detail application where we need to perform CRUD operation using Master to Detail.
We can easily obtain this in ADF. How we can obtain this and what functionalities we can provide easily are described below.
As for every ADF Web application we build two projects one is Model and another is ViewController.
We can build ADF application in both the approaches Model Design to UI Design as well as UI Design to Model Design.
We have followed Model Design to UI Design.
First we created the Business Components for this demo.
I created the Entity Objects first, then association between entities. I then built View Objects and View Links between them. I then included the View Objects in our Application Module.
We must have the view links created for creating master detail relationship.
I then created our UI in ViewController project.
I created ADF Table using master View Object for Departments.
Then I created our slave table using slave View Object Employees.
We should be able to select rows in master table. Otherwise we will not be able to change the slave table.
Now if we select any department in the master table then the employees belonging to that department will be automatically populated in slave table.
We can perform CRUD operations on both the master and slave(s). As shown in the below screenshots.
Hope this can help you ........... :)
We can easily obtain this in ADF. How we can obtain this and what functionalities we can provide easily are described below.
As for every ADF Web application we build two projects one is Model and another is ViewController.
We can build ADF application in both the approaches Model Design to UI Design as well as UI Design to Model Design.
We have followed Model Design to UI Design.
First we created the Business Components for this demo.
I created the Entity Objects first, then association between entities. I then built View Objects and View Links between them. I then included the View Objects in our Application Module.
We must have the view links created for creating master detail relationship.
I then created our UI in ViewController project.
I created ADF Table using master View Object for Departments.
Then I created our slave table using slave View Object Employees.
We should be able to select rows in master table. Otherwise we will not be able to change the slave table.
Now if we select any department in the master table then the employees belonging to that department will be automatically populated in slave table.
We can perform CRUD operations on both the master and slave(s). As shown in the below screenshots.
Hope this can help you ........... :)