Click on the New Application and Select the “ADF Fusion Web Application”. Click Ok
Give the Application Name “AMTester” and click on Finish which creates MVC architecture.
Now connect to the Database.
Now create the EO, VO and AM for your application.
Select “ADF Business Components” at left of New Gallery and then “Business Components from Table”
Create EO and Select its VO and AM.
In Application Module editor write the Package as “model” and Name as “AppModule”.
Click “Finish”.
Now Select the AppModule and click on Run to test your data in Application Module.
All the Associations and View-link Created Automatically if exist as shown.
]]>
Give the Application Name “PPR” and click on Finish which creates MVC architecture.
Now connect to the Database.
Now create the EO, VO and AM for your application.
Select “ADF Business Components” at left of New Gallery and then “Business Components from Table”
Create EO and Select its VO and AM.
Click “Finish”.
Now create a Blank JSF Page and give File Name as “Dept.jspx” and click Ok.
Now Drag and Drop the DepartmentView1 from data controls to JSF page and “Select ADF Form”
Select the LoactionId attribute and in property inspector write the id as “LOC”
Save all your work.
Still in the Properties window expand the Behavior node and set the AutoSubmit property to True
Now Select the departmentId and choose the Edit option of Partial Triggers in property inspector and shift LOC option to the left.
Click Ok.
Check the Partial Page Rendering Option in Browser by running the page in web logic server
Click Ok.
Check the Partial Page Rendering Option in Browser by running the page in web logic server
]]>We can create master-detail relationship between two tables using View Link (VL).
In this practice master table xxstp_test and xxstp_test_details as detail table created in Schema of database.
Click New Application àOpen Create Fusion Web application (ADF) wizardà
Select Fusion Web Application (ADF)àClick “Finish”
Right click on Modelà Newà New Galleryà ADF Business Components à Business Components from Tablesà Create Database Connectionà Enter details
After connect to Scott enter Query and select the tables to create EO.
Shuffle the EO to the left to create VO. Do not select the read only VO. click on the checkbox of Application Module to create AM and click “finish”.
Right click on package and Click on New View Link to create a link Between two tables.
Name the VL as “MasterdetailbyVL”
Select the source and destination VO attribute that define the View Link.
Click on the checkbox of Source Accessor in view Link Properties wizard
Select the AM checkbox with enter the Package and Name as shown.
Create JSF Page
In Create JSF Page wizard type the File Name as MasterdetailbyVL.jspx and select as the Blank Page. click ok
From the Data Control drag and drop the XXSTPTestDetails2 to the JSF page editor. In Create Select the Master-Detailà ADF Master Table, Detail Table as shown.
Now Right click the JSF page and select “Run” to run the page in the browser the page behaves as Master-Detail relationship as shown.
When Master table data changes detail table data also changes as noticed.
]]>1. Click New Application, which open Create Fusion Web Application Wizard. Type Application Name as “MasterDetail” and select “Fusion Web Application (ADF)” option. Click finish creates Model and Viewcontroller architecture.
2. Connect to the database connection HR as shown.
3. Click on “Query” shows all the tables in HR database connection. Select Departments and Employees table and move them to the left side to Create EO.
4. Move list of already selected EO to the left side to create Updatable VO
5. Select the Application Module (AM) checkbox as shown. Click finish and Save all.
6. All the View links and Associations between tables created automatically as shown in Application Navigator and Run the AM to test the Data Model before it will create in web page.
7. Click on ViewController à Newà New Gallery àJSFà JSF Page. Click Ok
8. Type File Name “Master-Detail.jspx” and select Blank Page. Click Ok.
9. Drag and Drop the “Employees3” from the data control to editor and select
Master-Detail with “ADF Master Form and Detail Table” as shown.
Master-Detail in web browser.
]]>