0% found this document useful (0 votes)
594 views12 pages

Cholas Oaf Tutorialsr12 Part 5 Drill Down To Details

This document provides instructions for creating a drill down details page in an Oracle Application Framework (OAF) application. It includes steps to create a view object with attributes for an employee and their manager, generate the associated Java files, create a details page with regions bound to the view object, add links to drill down from an employee's name to their details, and write controller code to initialize the details view object based on a parameter.

Uploaded by

Purushoth Yadav
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
594 views12 pages

Cholas Oaf Tutorialsr12 Part 5 Drill Down To Details

This document provides instructions for creating a drill down details page in an Oracle Application Framework (OAF) application. It includes steps to create a view object with attributes for an employee and their manager, generate the associated Java files, create a details page with regions bound to the view object, add links to drill down from an employee's name to their details, and write controller code to initialize the details view object based on a parameter.

Uploaded by

Purushoth Yadav
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details

Wednesday, 29 April 2009 15:43

For this exercise, you'll be extending the simple Employees search page you created in the Search Page Exercise to include a drilldown to a Details page that queries a single employee.

{StickyNote}{loadposition ADV1}{/StickyNote}

{xtypo_rounded2}

Prerequisite:

Complete the below tutorials before you start this tutorial.

1) Setup JDEV for R12 Tutorial.

2) HelloWorld page Tutorial for R12.

3) Chola's OAF Tutorials(R12) Part 3 - ResultBasedSearch

4) Chola's OAF Tutorials(R12) Part 4 - AutoCustomizationCriteria Search

{/xtypo_rounded2}

1 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

{loadposition CCL}

{tab=View Object} 1.Right click on your project and select new - > Business Tier -> ADF Business Components - > View Object.

Name - EmployeeFullVO Package - chola.oracle.apps.fnd.employee.server

2.In the Entity Objects page, select the EmployeeEO in the Available list and shuttle it to the Selected list twice (once for the employee, and once for the employee's manager).

3.Select EmployeeEO1 in the Selected List and set or verify: The Association End field is set to ManagerIdEmployeeEO. Reference is checked.

4.In the Attributes page, select the following attributes from the Available list and shuttle them to the Selected list: From EmployeeEO:

EmployeeId FirstName LastName FullName EmailAddress ManagerId PositionCode Salary StartDate EndDate

2 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

From EmployeeEO1: EmployeeId FullName EmailAddress

3 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

5.In the Attribute Settings page, select the the EmailAddress attribute, set the Attribute Name field to be EmployeeEmail, and change the Query Column Alias field to be EMPLOYEE_EMAIL.

6.Now select the FullName attribute, set the Attribute Name field to be EmployeeName, and change the Query Column Alias field to be EMPLOYEE_NAME.

7.Now select the FullName1 attribute, set the Attribute Name field to be ManagerName, and change the Query Column Alias field to be MANAGER_NAME.

8.Now select the EmailAddress1 attribute, set the Attribute Name field to be ManagerEmail, and change the Query Column Alias field to be MANAGER_EMAIL. Select the Next button.

9.In the query page click on Expert mode and paste the below query: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 SELECT EmployeeEO EmployeeEO

. .

EmployeeEO

. FIRST_NAME LAST_NAME

, ,

EMPLOYEE_ID

4 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

EmployeeEO . FULL_NAME EmployeeEO . EMAIL_ADDRESS EmployeeEO . MANAGER_ID EmployeeEO . POSITION_CODE EmployeeEO . SALARY EmployeeEO . START_DATE EmployeeEO . END_DATE EmployeeEO1 . EMPLOYEE_ID EmployeeEO1 . full_name EmployeeEO1 . email_address flkp . meaning FROM FWK_TBX_EMPLOYEES EmployeeEO , FWK_TBX_EMPLOYEES EmployeeEO1 , fwk_tbx_lookup_codes_vl flkp WHERE EmployeeEO . AND EmployeeEO . AND flkp .

AS AS , , , , , AS AS AS AS

EMPLO EMPLO

EMPLO MANAG MANAG POSITI

manager_id position_code lookup_type

= = =

10.In the Java page, select both the Generate Java File for View Object Class: EmployeeFullVOImpl checkbox and the Generate Java File for View Row Class: EmployeeFullVORowImpl. Click Finish.

Right click EmployeeAM and select Edit the EmployeeAM and shuttle the EmployeeFullVO to the right side.

{tab=Page}

11.Right click the project and select new.In the New window, expand the Web Tier hierarchy and select OA Components. Select Page.

Name - EmpDetailsPG

5 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

Package - chola.oracle.apps.fnd.employee.webui

12.Click on region1 and set : i. Name PageLayoutRN

ii. AM Definition - chola.apps.oracle.fnd.employee.server.EmployeeAM

iii. Window Title Chola R12 Tutorials Drill Down Search Page

iv. Title Chola Search Page

v. AutoFooter - True

13.Select the PageLayoutRN in the Structure pane, right-click and select New > Region Using Wizard from the context menu. 14.In the BC4J Objects page, select your EmployeeAM (chola.oracle.apps.fnd.employee.server.EmployeeAM), and then select your EmployeeFullVO1 view object instance from the Available View Objects list.

6 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

Style the Region Properties page, set the Region ID field value to MainRN and set the Region 15.In to defaultSingleColumn.

7 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

shuttle them - Attributes page, select the messageStyledText and the View Attributes list and 16.In Next. - tostyleSelected View Attributes list: EmployeeId- the of all the attributes to following from the Available attribute set as follows: FirstName -/oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/StartDate LastName /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/EndDate EmployeeEmailas- per the screenshot.Click Next and Finish. PositionDisplay - ManagerName Salary -prompt StartDateView EndDate/oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/Salary Click the - all 17.Change /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/EmployeeId EmployeeId /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/FirstName FirstName /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/LastName LastName /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/EmailAddress EmployeeEmail /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/Position PositionDisplay /oracle/apps/fnd/framework/toolbox/attributesets/FwkTbxEmployees/FullName_Manager ManagerName Salary StartDate EndDate Set the

8 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

19.Set the properties for LastName: CSS Classproperties for EmployeeID: 20.Set the - URI - mailTo:{@EmployeeEmail } 21.Set 22.Set the properties for FirstName: EmailAddress: CSS Class - URI - mailTo:{@EmployeeEmail } OraLinkText. Destination- OraDataText. 23.Set Position: OraDataText. 24.Set CSSa "ReturnMainRNLink} not be adversely region andoffollowing warning;Style property to Class OraDataText DestinationPageLayoutRN inDate: link at the bottom change its Region select the Yes button 25.Set your (the ski). defaultSingleColumn pane, right-click and you beneath the Salary: 26.Set Return Return will link item following properties: yourfor select New the page content StartDate: CSSReturnLink Employee Search" that will affected. creates page beneath > returnNavigation. 27.Set thetheURI Employee Search. End to proceed. -a to items and the Structure display messageComponentLayout. set the 28.Select returnNavigation JDeveloper JDeveloperthe {tab=CreateYour - folder Manager Name bottom Add - line OraLinkText. Select pageComponents ID - Class OraDataText. OA.jsp?page=/chola/oracle/apps/fnd/employee/webui/EmpSearchPG&retainAM=Y Destination Text

9 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

Save your Code} Code {tab=Code}initQuery( ) Method to Your EmployeeFullVOImpl Class. {slide=VO work. 29.Addoracle.jbo.domain.Number; empNum Importoracle.apps.fnd.framework.OAException; (OAException import 1 InitQuery Code: Statements: 19 18 17 16 15 14 13 12 11 1 9 8 7 6 publican 5mpNum 40 3etWhereClause ( i hrow {f String ""empNum ) . != e try = Number = c } Number null ( executeQuery setWhereClauseParam ! setWhereClauseParams s t new ) 0 initQuery null "EMPLOYEE_ID = :1" employeeNumber ; , ) (( ) ; "AK" 2atch oracle.apps.fnd.framework.OAException; new Classe {/slide} oracle.apps.fnd.common.MessageToken; Exception {slide=AM Code} )CodeMessageToken Add an 1 InitDetails Method to Your EmployeeAMImpl Import Statement: vo( void import initDetails( Code: Down} 11 1 9 8 7 essageToken 6 mployeeFullVOImpl ( to: 5 OA. 4 public 1 URI property=void 30 v } throw new M if E { String initQuery new [ jsp ] voinitDetails (OAException employeeNumber (errTokens "OBJECT_NAME" == EmployeeFullVOImpl = "AK" , 2o.achieve drill down,select the EmpName item in?the ResultsTable region and set the {/slide} the PageLayoutRN of set the Package Name toStructure pane, right-click and select Set ) =/ {tab=Drill Controllerto the context menu. Destination Name dialog, the EmpDetailsPG in the chola.oracle.apps.fnd.employee.webui null Tothe New 2 the Class ... from EmployeeDetailsCO. & Controller retainAM employeeNumber = Ypage {( & @Emplo {slide=Controller} New Select and In

Select:the of its details. amvoid query ]for our singleprocessRequest Code OKcall[ this Request Code 12 11 1 9 8 7 with 6 Now 5 Get employeeNumber 4 Always want to initialize the 3 public1 to create your controller. // super / {/ URL pageContext. ( ( OAApplicationModule String employee parameters getApplicationModule getParameter } am. Serializable (pageContext. "initDetails" = 20 your employeeNumber parameter from the processRequest {/slide} allProcess first. .page} = {tab=Save workRun your=the page. Save we and and RuninvokeMethod

pageCo ( param ( , OAPag

10 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

11 / 12

Chola's OAF Tutorials(R12) Part 5 - Drill Down to Details


Wednesday, 29 April 2009 15:43

{/tabs}

12 / 12

You might also like