1

OA Framework Topics OAF Introduction and Concepts Details

Oracle Applications Framework Course Contents
OAF History MVC architecture OAF, D2K Comparison BC4J Components [ AM,EO,VO,AO] WebUI Compoents & Controller [ PG,CO] OAF/JDeveloper Directory Structure Brief : OA Exceptions ± Information- Error, Java Exception Handling ± Try, Catch Exercise to understand and implement BC4J and WebUI components Debug ³Hello World´ from JDeveloper Display FND messages using OA Exceptions Create dependent LOV Create VO based region to Display Search Results using CO Run & Debug Search Page Understanding Transactions in OAF Create Page in OAF Implementing Partial Page Rendering in Create Page [ PPR ] Linking Search Page and DML page [Page Context Navigation Methods ] Create Function/Menu for OAF pages deployment Deploy Search, DML Pages to server using XML Import Debugging OAF pages from oracle applications Understanding MDS [Meta Data Service] JDR tables ,JDR utilities Personalization Profiles Understanding Personalization as Functional Administrator ,End User Drill Down capability to DML page by Embedding custom page called Details Update Page Programmatic Control on Beans : Hide button bean using Details Update Page Implementing Function Security using SPEL Add LOV using personalization Import/Export Personalization between instances View Object Extension in DML page : New Column addition Entity Object Extension in DML page : Validations Controller Extension in DML Page Prepare JDeveloper for oracle std page VO extension View Object Extension in Oracle Standard Page Deploy substitutions using JPX Import JDR Utilities Java : Prepared Statement Usage in OAF PLSQL Entity Objects Calling OAF pages from Forms OAF calling Web service : Concept

mymsn_venky@hotmail.com
Hours 4 Hrs

OAF Basics : Implement Search Page

4 Hrs

OAF Basics : Implement DML Page

10 Hrs

OAF Personalization

10 Hrs

OAF Extensions

8 Hrs

OAF Advanced

4 Hrs

2

mymsn_venky@hotmail.com

Oracle Applications Framework Prerequisites
Prerequisite Topics Trainee Knowledge Details Oracle Ebiz-Suite Experience D2K Forms Knowledge OOPS basics Java basics JDeveloper must be installed in local machine [ Steps Provided Below ] Installation Steps [ JDeveloper installed in local machine, No steps required in server ] Set FND: Diagnostics profile value to µYes¶ Login to oracle apps -> Home Page Click About Page Link -> Navigate to Technology Stack tab Note OAF Version Refer metalink note 416708.1 and note required patch number for your OAF version Patch is a zip file , Download Patch to your desktop. Extract zip to D:\JDEVELOPER

JDeveloper Installation Find OAF Version

Download and extract patch

Create Folder JDEVELOPER in Local Machine D Drive Download patch to desktop Extract downloaded patch to D:\JDEVELOPER folder Extraction create three folders called jdevbin, jdevdoc, jdevhome Create environment variable µJDEV_USER_HOME¶ in your local machine. Set JDEV_USER_HOME to value µD:\JDEVELOPER\\jdevhome¶ Navigation to create environment variable: Desktop->My Computer-> Properties -> select Advanced-> press button Environment Variables -> Create variable using above values Create a shortcut to D:\JDEVELOPER\\jdevbin\jdev\bin\jdevw.exe to your desk top ,Rename Short to OAFJD Create a folder structure D:\JDEVELOPER\jdevhome\jdev\dbcfiles\secure in local machine Copy DBC file from your server location $FND_TOP/secure/<version> to D:\JDEVELOPER\jdevhome\jdev\dbcfiles\secure Open JDeveloper by clicking shortcut OAFJD Create a database connection [Steps provided below ] Select Connections folder shown in JDeveloper -> Right Click -> New Connection -> Opens Connection Wizard Connection Wizard : Step 1 : Field : Connection Name Value=Oracle SID ex:VIS , Connection Type : Oracle JDBC ,Click Next Step 2 : Field : Username = apps , Password = Database password Ex: apps , Click Next Step 3 : Field : Drive = thin : apps , Host Name=Provide apps DB tier machine name ex: apps.oracle.com : SID= oracle SID ex:VIS, Next Note: Host name for DB tier machine of oracle apps must be created before step3 and the same should be mentioned in step3 Step 4: Press Test Connection Button should return µSuccess¶ , Click Finish to complete testing.

Setting Environment Variable

Testing

3

mymsn_venky@Hotmail.com

OAF Evolution Goals

On Completion this presentation you should understand ‡ Evolution of OAF ‡ Future of OAF ‡ Present of OAF

Called using SSWA Function of oracle eBiz Suite Example: Some HRMS pages with PL/SQL cartridges Disadvantages Both static/dynamic Content & validations were programmed within the PL/SQL.com OAF Evaluation PL/SQL HTML PL/SQL Web Cartridge A pl/sql procedure builds HTML tags. HTP Package procedures used.4 mymsn_venky@Hotmail. Presentation and data were within the same layer Even the simplest possible change required changes to PL/SQL Code What is next « Oracle introduced a metadata concept in form of AK Developer Item properties like required/prompt/LOV etc became configurable This meta data was stored in AK% tables. Reduced the programming effort to make minor changes . and the resultant HTML is shown on the browser.

.com OAF Evaluation AK Developer AK Developer with PL/SQL and other technologies In AK Developer Regions and Region Items can be defined using Screens.5 mymsn_venky@Hotmail. Examples : iProc Pages . Required . Rendered . ³AK Developer´ separates Data Layer from Presentation Layer. Important tables in AK Developer are AK_REGIONS and AK_REGION_ITEMS. No IDE AK Developer Shared Regions changes are globally reflected Very limited number of item styles were supported AK is a proprietary technology What is next « AK Developer is added with AK_CUSTOM% tables to store personalization to make AK developer upgrade safe Oracle Applications Framework introduced to address IDE issue . Regions within the screen and their fields can be defined using AK Developer. HRMS pages AK Developer Customizations Modify Fields Properties like Prompt. Enable DFF etc. Disadvantages of using AK Developer AK Developer changes are not upgrade safe AK Developer is standalone and is not integrated with jDeveloper.

Java and Meta Data Service OA Framework is a IDE thru JDeveloper OA Framework is WebUI developed using XML and then loaded to MDS OA Framework using MVC architecture OA Framework Highly extensible architecture Using OA Framework ‡We can create custom pages ‡We can personalize existing pages ‡We can extend existing pages Disadvantages WYSWUG is not available No drag and drop provided as other standard IDE. Too much of code and too many steps for simple tasks.6 mymsn_venky@Hotmail. MDS is a propitiatory. Not an open standard.com OAF Evaluation Present & Future OA Framework OA Framework is a combination of XML. What is next « Fusion ! ADF !!! Now « Welcome To Oracle Application Framework .

com OAF Introduction Goals On Completion this presentation you should understand & learn ‡ OAF Tools & Technologies ‡ OAF Architecture ‡ OAF Compoents ‡OAF execution flow ‡jDeveloper usage for OAF ‡Some useful java information to work with OAF .7 mymsn_venky@Hotmail.

8 mymsn_venky@Hotmail.com OAF Introduction Usage & Tools Usage : ‡Create custom self service web pages for oracle applications ‡Extend oracle applications standard OAF SSW pages ‡Personalize oracle applications standard OAF SSW pages Technology . ‡Meta Data Service (MDS) Set of oracle tables which stores UI XML (webui components) information in database. ‡MVC architecture The J2EE ³Model-View-Controller´ architecture is used to develop OAF SSW pages. . ‡IDE OAF using jDeveloper as Integrated Development Environment for development. Tools & Architecture: ‡XML Pages stored in XML format ‡Java: Code segments written in Java which internally can call database objects using JDBC.

View Layer ± Web User Interface C ± Control Layer ± Code Layer responds to WebUI events Widely used in webpage delvelopment .com OAF Introduction MVC Architecture MVC Architecture M.9 mymsn_venky@hotmail.Model Layer ± Database Objects V .

com OAF Introduction OAF Components & Onion architecture M.VO.AO Library [Access to EO.Model Layer±(BC4J) Business Components for Java Objects (Server) ‡Entity Object (EO) ‡View Object (VO) ‡Association Object (AO) ‡Application Module (AM) = = Oracle SQL Table = Oracle SQL Query = Relations between EO.VO.10 mymsn_venky@hotmail. ‡processFormRequest method will be used to listen page events.AO] C ± Control Layer ± WebUI event listener (servlet) ‡processRequest method fires on page render.View Layer ± Web User Interface (UIX) UI XML Components (WebUI) ‡Page (PG) ‡Page Layout Region (PLRN) ‡Region (RN) ‡Bean ‡Controller (CO) = Canvas = Form = Block = Field = Form Level Triggers [No access to EO.AO] V . ‡Client Layers : UIX/webui and Controller ‡Business Layer : BC4J/server components . ‡Controller will access AM code segments to perform business logic.VO.

11 mymsn_venky@hotmail.) OAF Page Rendered User Perform Action Controller ± Handle user interaction using processFormRequest(.) ..com OAF Introduction Execution Flow Open OA Page Controller ± Initialize the page using processRequest(..

12 mymsn_venky@hotmail..)* -> (View Instance. View Attribute)** Note: * Mandatory ** Optional .com OAF Introduction Component creation : JDeveloper JDeveloper IDE Objects ‡Workspace* Is a Private working area for OAF web components ‡Project* Is further grouping to your OAF components Server Objects ‡Business Components for Java (BC4J)* All business compoents grouped here ‡Application Module (AM)* ‡Entity Object (EO)** -> Attach EO to AM* ‡View Object (VO)** -> Attach VO to AM* ‡Association Object (AO)** -> Attach AO to AM* Web User Interface (WebUI) Objects ‡Page (PG)* ‡Page Layout Region (PLRN)* -> Attach AM * -> Set Controller (CO)** ‡Region (RN)* -> Set Controller (CO)** ‡Bean (txt/ btn / disp / .

String S1=(String)int1.13 mymsn_venky@hotmail..h Ex: Import java. ‡Method (Procedure) Syntax <Scope> <return value> <method name>(<data type> <variablename1>.){ code «} Public void query (String S1)(){ if (s1=null) { system.EO. webui are the common folders used to group OAF components Java : Some useful syntax information ‡Import java class Imports java code required .serializable ‡Variable creation syntax ObjectType VariableName=Value.out.. ‡Casting (Data Type Conversion) ObjectType1 VariableName = (ObjectType1)ObjectType2.com OAF Introduction Java : Useful Information Java Package Structure ‡Package is nothing but folder structure ‡server is the folder used to store business components and code ‡webui is the folder used to store user interface components and code ‡schema folder can be used to keep Database Objects . this can be equated library call in c like #Include stdio.AO ‡Server.println(³S1 is null´) } } .io. Ex: int int1 =1. Ex: String S1=³´.VO.

com OAF Introduction Common Imports Import Class oracle.apps.framewrok.OAExceptions Category WebUI Remarks OA Exceptions AM VO Dialog Pages .fnd.14 mymsn_venky@hotmail.

Region (RN) .15 mymsn_venky@hotmail.com Understanding OAF Components : Login Page Exercise Goals On Completion this presentation you should understand ‡ Server Components ‡ Workspace. Project ‡ Business Components for Java (BC4J) ‡ Application Module (AM) ‡ Web Components ‡ Page (PG) . Controller code snippets . Beans ‡ Controller (CO) ‡ Application Module . Page Layout Region (PLRN) .

16 mymsn_venky@hotmail.excercise.ont.jpr ‡ server Components ( package oracle.excercise.apps.server ) Create Page (PG) .apps. Page Layout Region (PLRN) ‡ Create a Region under PLRN ‡ Create two text beans and submit button bean ‡ Set Controller to PLRN ‡ Controller ProcessFormRequest Method will be coded On Login Failure to show information message On Login Success show a dialog message and navigate to home page .ont.com Understanding OAF Components : Login Page Exercise Design Task ‡Create a login page and show messages on login failure & success ‡On login success navigate to home page Design ‡ Connection ( Oracle Components for Java ± OC4J) ‡ Create connection dbconn ‡ Containers ‡ Create workspace Excercises.server ) ‡ Create BC4J ‡ Create AM ‡ webui Components ( package oracle.jws ‡ Create Project Excercises.

User Name 4.17 mymsn_venky@hotmail.Localhost [ your host name] 7.Connection Name 2.Apps 4.Oracle JDBC 3.Apps schema password 5.Password 5.com Understanding OAF Components :Login Page Exercise Oracle Components 4 Java : Connection Step Create Connection Navigation Connection-> New Database Connection Property 1.Host Name 7.1521 [ Database port name .VIS [ Database Name . default 1521 ] 8.Thin 6.DBConn 2. default VIS] .Driver 6.JDBC Port 8.Connection Type 3.SID Value 1.

Operations 8.ORDER_MGMT_SUPER_USER .D:\jdev9i\devhome\jdev\myprojects[ $JDEV_USER_HOME] 2.dbc 7.Welcome 9.ONT 10.Default Package 4.oracle.Responsibility_key Value 1.Use Repository Design Time 5.DBConn 6.18 mymsn_venky@hotmail.ont.Directory Name 2. D:\jdev9i\devhome\jdev\dbc_files\secure\vis.Connection 6.Excercise.apps.jpr 3.Workspace Name 1.Application Short Name 10.jws-> New OA Project Property 1.com Understanding OAF Components : Login Page Exercise Container Components Step Create Workspace Navigation WorkSpaces-> New OA Workspace Excecise.User Name 8.webui 4.Directory Name 2.Checked 5.excercise.Password 9.Excercise.jws Create Project 1. D:\jdev9i\devhome\jdev\myprojects[ $JDEV_USER_HOME] 2.File Name 3.DBC File Name 7.

login.login.User Name 4.19 mymsn_venky@hotmail.Training 3.excercise.com Understanding OAF Components : Login Page Exercise Server Components Step Create BC4J Navigation Exercise.Package Name 2.Connection 3.jpr -> New Business Component package Property 1.apps.Password 1.oracle.excercise.testAM 2.server 2.Checked .oracle.server 3.Generate Java Files Value 1.Package 3.apps 4.Apps Create Application Module BC4J-> New Application Module 1.ont.ont.Name 2.apps.

oracle.webui Note: Page auto creates a region called region1 of type PLRN 1.ItemStyle 3.Package Name 2.Login Note: Used to submit form values for server side processing 1.apps.apps.ont.Message Text input 3.Prompt 4.jpr -> New Web Tier-OAComponents-Page ->Propery Inspector LoginPG -> region1 Property 1.Prompt 1.Submit 3.ID 2.login.excercise.testAM Note: AM can set at PLRN/RN level 4.server.ItemStyle 3.ID 2.webui 2.Login Window 5.login.True 1.loginCO [ Controller name should end with CO] Note: Controller can set at PLRN/RN level Check : Controller of PLRN property should be oracle.excercise.apps.login.PageLayout 3.Default Single Column [ Choose any Style as required] 1.Region Style 1.txtLoginName 2.20 mymsn_venky@hotmail.Class Name Value 1.LoginPLRN [ Region name should end with RN] 2.excercise.Package 1.ont.Region Style 3.ID 2.Application Module 4.loginCO Page layout region: Properties Create Region Create text Item LoginPLRN-> New -> Region LoginRN-> New -> Item Create text Item LoginRN-> New -> Item Create Submit Button LoginRN-> New -> Item Create Controller LoginPgG -> LoginPLRN>Set New Controller .com Understanding OAF Components : Login Page Exercise webui Components Step Create Page Navigation Excercise.ont.LoginRN [ Region name should end with RN] 2.apps.Password 4.login.Message Text input 3.ItemStyle 3.ID 2.Login Page 1.Name 2.LoginPG [ Page name should end with PG ] 2.webui.Secret 1.Name 2.excercise.Window Title 5.Page Title 1.User Name 1.Prompt 1.ont.btnSubmit 2. oracle.oracle.txtPassword 2.

21 Understanding OAF Components : Login Page Exercise Controller & Application Module code snippets //Login Application Module Code mymsn_venky@hotmail.com //Login Controller Code .

com Understanding OAF Components : Home Page Exercise Goals On Completion this presentation you should understand ‡ View Objects ‡ Drop Down List bean ‡Search AM & Controller Code .22 mymsn_venky@hotmail.

ont.webui ) ‡ Create Page (HomePG) .23 mymsn_venky@hotmail. empResultsVO to homeAM ‡ webui Components ( package oracle.workspace.apps.server ) ‡ Create BC4J ‡ Create homeAM ‡ Create positionVO for drop down list ‡ Create empResultsVO for results region ‡ Attach positionVO .excercise.project from login page exercise ‡ server Components ( package oracle.home. Page Layout Region (HomePLRN) ‡ Create a region (SearchRN) under HomePLRN ‡ Create a drop down list bean to show position bean ‡ Create a submit button bean to search action ‡ Set Controller homeCO to homePLRN ‡ Controller processRequest Method will be coded using execute query method on positionVO to show values in drop downlist ‡ Controller processFormRequest Method will be coded using execute query method on empResultsVO to process search action .home.com Understanding OAF Components : Home Page Exercise Design Task ‡Create a Home Page to search employees data with search and result sections Design ‡ use connection.excercise.apps.ont.

jpr -> New Business Component package Property 1.positionVO 2.excercise.oracle.Checked 1.testAM 2.title.Checked Create Application Module BC4J-> New Application Module BC4J-> New View Object Create empVO View Object Create positionVO View Object BC4J-> New View Object 1.Checked Attach EmpVO to TestAM TestAM->Edit Settings 1.home.home.Checked 6.Package 3.User Name 4.Checked 5.apps.apps.Generate Accessors 1.oracle.server 3.Move positionVO from left pane to right pane .home.Generate Java File EmpVORowImpl 5.Checked 6.apps 4.Generate Java File 6.ont.Checked 5.Query Statement EmpVOImpl 4.home.Package 3.Generate Java File 6.full_name.ont.Move empVO from left pane to right pane 2.excercise.Password 1.oracle.Data Model Value 1.excercise.excercise.apps.DBConn 3.Name 2.Name 2.com OAF Introduction Search Page : BC4J Components Creation Step Create BC4J Navigation Exercise.Name 2.Connection 3.apps.empVO 2.Package 3.Apps 1.oracle.24 mymsn_venky@hotmail.server 3.Generate Java Files 1.ont. Select distinct position_code from training_employee Note: Press test to test the query 4.position_code.ont.Generate Java File EmpVORowImpl 5. Select employee_id.salary from training_employee Note: Press test to test the query 4.Query Statement EmpVOImpl 4.Generate Accessors 1.Package Name 2.server 2.server 3.

home.Package 1.SearchRN [ Region name should end with RN] 2.excercise.Class Name Value 1.Page Title 1.ID 2.positionVO 5.apps.homePLRN [ Region name should end with RN] 2.PositionCode Page layout region: Properties Create Region Create text Item homePLRN-> New -> Region searchRN-> New -> Item Create Submit Button searchRN-> New -> Item 1.homeCO Create Controller HomePG -> HomePLRN>Set New Controller .webui 2.apps.plPosition 2.Prompt 4.Window Title 5.excercise.oracle.Pick List View Definition 5.Message Choice 3.Name 2.home.ID 2.Home Page 1.Submit 3.ItemStyle 3.webui Note: Page auto creates a region called region1 of type PLRN 1.HomePG 2.server.Default Single Column [ Choose any Style as required] 1.ItemStyle 3.apps.excercise.ID 2.Name 2.Employee Home 5.Pick List View Attribute 1.Position 4.oracle.server.oracle.Application Module 4.excercise.Package Name 2.home.Region Style 3.Region Style 1.btnSearch 2.homeAM Note: AM can set at PLRN/RN level 4.ont.ont.jpr -> New Web Tier-OAComponents-Page ->Propery Inspector homePG -> region1 Property 1. oracle.Prompt 1.ont.ont.apps.PageLayout 3.home.25 mymsn_venky@hotmail.Search Note: Used to submit form values for server side processing 1.com OAF Introduction Search Page : WebUI Components Creation Step Create Page Navigation Excercise.

public void processRequest(OAPageContext pageContext. //pempno="%"+pempno+"%".26 mymsn_venky@hotmail.getApplicationModule(webBean).getApplicationModule(webBean). //vo. am. // get AM // EMPAMImpl am = (EMPAMImpl)pageContext.examples. //vo.framework.com OAF Introduction Search Page : AM. //vo. } .processRequest(pageContext.io.executeQuery(). OAWebBean webBean) { super.apps. webBean).invokeMethod(³empSearch".setWhereClause(³Ename=µ%¶´+pempno+´%¶´ ).EMPAMImpl.pempno). import oracle.apps. //type casting OAApplicationModule am = pageContext. Serializable[] parameters = { ename }. Controller Code Creation EMPAM Controller Code : EMPAM ->Code Editor Public Void empSearch(String pempno) { EMPVOImpl vo = EMPVOImplVO1(). vo.setWhereCluseParams(0.setWhereCluseParams(null). parameters).Serializable.fnd.OAApplicationModule. //import oracle.getParameter("empnameS").ont. vo. } EMPAM Controller Code : EMPAM ->Code Editor import java.setWhereClause(³Ename=:1´ ).search. String ename = pageContext.

27 mymsn_venky@hotmail. set watches .com OAF Introduction Search Page : Run & Debug Run Search Page ‡ ‡ ‡ ‡ ‡ Select Run from context Menu of SearchPG.xml Should show below Screen Enter an Employee Name Ex: µSmith¶ Press Button Query ResultsRN should display the employee rows which has Smith in its Employee Name Debug Search Page ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ In EMPCO set a break point on processFormRequest method In EMPAM set a break point on empSearch method. Select Debug from context Menu of SearchPG. understand execution flows .xml Should show below Screen Enter an Employee Name Ex: µSmith¶ Press Button Query Control should go to jDeveloper to method processFormRequest Press F6 till Screen rendered with µSmith¶ Employee information Control should go to AM Method empSearch Finally once code completes the resultant rows will appear on OAF screen In Debug mode . can debug by viewing variable values.

28 mymsn_venky@hotmail.com Understanding OAF Components : External LOV Exercise Goals On Completion this presentation you should understand ‡External LOV region ‡Attaching LOV region to a LOV bean of parent page ‡Dependant External LOV bean based on value passed form parent page ‡Dependent LOV controller code .

. Change existing enameS textbean to LOV bean. we can use EMPVO if it is not designed to do any DML operations.But it is recommended by oracle to create a seaprte VO for LOVs. Create EmployeeLOVCO to add where condition to EMPVO query Set Properties of dept pick list bean to attach DeptVO values. Set properties of enames as to attach EmployeeLOVRN to search page No changes to results region Required as it is querying based on employee name already. Create a new DeptVO for department picklist. Create a OAF dependent EmployeeLOV region page for employee LOV to show selected department employees. Create a new EmplovVO .com OAF Introduction Search Page LOV: Overview Task ‡ Modify homePG searchRN to have an LOV field to fetch employee ID from an independent external Employee LOV and populate results to resultsRN based on employeeID returned Design & Implementation ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ Extend Search page to have one pick list bean for department.29 mymsn_venky@hotmail.

ename from emp Create EMPVO BC4J -> View Object 5A.Package 3.Checked [Required to fetch values from database] 1.Move DEPTVO to selected View Objects list .Checked [Required to fetch values from database] Attach deptVO .*VOImpl 5B.ont.server 3.ExpertMode 4.*VOImpl 5B.Uncheck [ No need as no DML operations ] 5B.search.Name 2.Query 5.Name 2. empLovVO to EMPAM AM->Edit Settings -> Data Model Tab 1.30 mymsn_venky@hotmail.apps.com OAF Introduction Search Page LOV: BC4J Components Creation Step Create deptVO Navigation BC4J -> View Object Property 1.oracle.empLovVO 2.ont.*VORowImpl empLovVO deptVO Value 1.Generate Java File(s) 5A.Cheked 4.Package 3.Move EMPVO to selected View Objects list 2.server 3.Uncheck [ No need as no DML operations ] 5B.Select deptname from emp 5A.Select empno.classes.*VORowImpl 1.ExpertMode 4.Generate Java File(s) 5A.classes.search.Cheked 4.deptVO 2.oracle.apps.Query 5.

AttributeProperties 1.True [ to allow user to personalize this table bean ] 1.emplovCO 2.classes.oracle.AM 2.search.apps.apps.empLovVO 3.com OAF Introduction Search Page LOV: LOV Components Creation Step Create LOV Region & Properties Set PLRN properties Navigation Search Project-> New -> Web Components -> Region region1->Properties Property 1.ViewObject 3.Choose MessageStyleText and Varchar as style and datatype for all selected attributes.Type 3.oracle.search.server.Page Title 1.EMPAM 2.Window Title 5.UserPersonalization 1.webui 1.apps.Move Attributes that needs to be displayed in lov 6.Rendered 2.True 2.server.RegionStyle 5.Atributes 6. oracle.31 mymsn_venky@hotmail.Page Layout Region 3.Name 2.AM 4.Table 5.empLovRN 4. 1.EMPAMImpl 4.Width 4.RecordsDisplayed 3.RegionID 4.classes.PLRN 2.Style 2.ont.Employee List 5.classes.Package 1.Package Value 1.search.EmpLovRN 3.10 3.Name 2.List Of Values 2.Name 3.webui Create empLovRN using Region Wizard PLRN -> New Region using Wizard Modify Properties for empLovRN ReslutsRn->Property Inspector Set Controller to PLRN PLRN->set New Controller .Employee List 1.100% 4.

100% 4.webui Set Controller to PLRN PLRN->set New Controller .classes.True 2.Package Value 1.EMPCO 2.32 mymsn_venky@hotmail.UserPersonalization 1.10 3.RecordsDisplayed 3.Width 4.Name 2.Rendered 2.apps.com OAF Introduction Search Page LOV: Extend Search Page WebUI Components Step Modify Properties for Results RN Navigation ReslutsRn->Property Inspector Property 1.server. oracle.search.True [ to allow user to personalize this table bean ] 1.

examples. OAWebBean webBean) { super. String ename = pageContext.33 mymsn_venky@hotmail. } .setWhereCluseParams(0.getParameter("empnameS").invokeMethod(³empSearch".fnd. // get AM // EMPAMImpl am = (EMPAMImpl)pageContext.search.getApplicationModule(webBean).setWhereClause(³Ename=µ%¶´+pempno+´%¶´ ). //import oracle.Serializable. } empLovCO Controller Code : empLovCO ->Code Editor import java. public void processRequest(OAPageContext pageContext. webBean). vo. am. vo. Serializable[] parameters = { ename }.processRequest(pageContext. //pempno="%"+pempno+"%". parameters). //vo.getApplicationModule(webBean).EMPAMImpl. //vo.com OAF Introduction Search Page : AM.apps.setWhereClause(³Ename=:1´ ).framework.executeQuery().pempno).io. //type casting OAApplicationModule am = pageContext. //vo. import oracle.apps.OAApplicationModule.ont. Controller Code Creation empAM Controller Code : empAM ->Code Editor Public Void empSearch(String pempno) { EMPVOImpl vo = EMPVOImplVO1().setWhereCluseParams(null).

understand execution flows . set watches .34 mymsn_venky@hotmail. can debug by viewing variable values.xml Should show below Screen Enter an Employee Name Ex: µSmith¶ Press Button Query Control should go to jDeveloper to method processFormRequest Press F6 till Screen rendered with µSmith¶ Employee information Control should go to AM Method empSearch Finally once code completes the resultant rows will appear on OAF screen In Debug mode .xml Should show below Screen Enter an Employee Name Ex: µSmith¶ Press Button Query ResultsRN should display the employee rows which has Smith in its Employee Name Debug Search Page ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ ‡ In EMPCO set a break point on processFormRequest method In EMPAM set a break point on empSearch method. Select Debug from context Menu of SearchPG.com OAF Introduction Search Page LOV: Run & Debug Run Search Page ‡ ‡ ‡ ‡ ‡ Select Run from context Menu of SearchPG.

35 mymsn_venky@hotmail.com OAF Introduction OAF Basics : Search Page Creation : Run and Debug .

Sign up to vote on this title
UsefulNot useful