Wednesday 25 May 2016

How to Start with ADF

Hi every one today i am gonna show you how to Start working with  ADF (Application Development Frame work)

For this post i am using jdeveloper 11.1.2.3.0
To download jdeveloper visit the following URL.
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index.html

To create your First Application in ADF just Run your Jdeveloper and follow these Steps

Run your jdeveloper



1) Click on File menu and Select new , A new Window will be appears in front of you



2) In this window select "Applications" from left side under Categories and "Fusion Web Application" from right side under Items and click on OK





3) In next window write your Application Name and select Directory Path (Directory Path means set path where you want to save your Application)
you can also set "Application Package prefix"  means create a new Folder or package under which your Apllication will be save (For detail about Packages i have a complete post please visit that )
For Now just Click on Next



4) Each Application in ADF has two projects (divide and conquer rule)
one is Model layer and other one is ViewController layer
The Next window is to set Name and Directory Path for Model layer , For now just fine with default setting , simply  click on Next



5) In next window you can set the package for Model project , just leave it as Default and click on Next



6)The next window is for to set ViewController name and directory (its second layer of Application)
simple leave it as default and click on Next


7) Next window will set the place for jave classes and beens in View Controller Layer you can change the "Default package name" or java source path but just leave it as default and Click on Finish


So finally you have set the place to work with ADF Business Components, After click on Finish in previous window your Application would be look like this



8)Now to Create ADF  Business Components ,Again Right Click on Model Layer and Select New


9) In next window select "ADF Business Components" from Categories and "Business Components Form Table " from items



10) In next Window to establish Connection with database Click on + icon , a new window will appear in front of you to configure a new database connection , after filling the required fields must click on "Test Connection" and if there is no error it shows success
then just click on OK , and again OK




11) From the new window you can select database tables as Entity Objects for that  Firstly click on "Query" Then select Departments and Employees table and move form left to right and click on Next


12)In next window you can select View Object that will base on Entity Objects
To create Entity Object base view objects just select and move Entity objects from left to right



13) In next window you can create Query base View objects , for that agin click on Qurery , select and move table from left to right (i just create Countries as a Query base View Object) , click Next



14) In next window shows the creation of Application Module , it helps to navigate between View objects , in this window just click on Next



15) In next window you can generate the diagram , if you want , but for now just click on Next


16) Next window shows the summary about your ADF Bussiness Components , just click Finish


17 ) Now just Right click on AppModule and select Run Then double click on EmpDeptFKLink
it will show Master Detail Relationship





Congratulation You have done ...!
In the next post I'll explain what is
Entity object
Entity base View object
Query Base view object



Please Feel Free To Ask if you Face any Difficulty 
Like and share to help others
Thanks
Date 25-05-2016


3 comments:

Query to get Business unit (ORGANIZATION_ID) Detail in oracle Fusion

  SELECT HAO.ORGANIZATION_ID AS BUSINESS_UNIT_ID,         HAOT.NAME,         HAO.BUSINESS_GROUP_ID,         HAO.EFFECTIVE_START_DATE,       ...