OAF Interview Questions & Answers - Part 4

oaf interview beginners,oaf interview for advance professionals

1. What are different methods of passing paramaters in OAF?
1. Tokens
eg. vname={@AttributeName}
2. Hash Maps
eg. HashMap variablename=new HashMap();
eg. pageContext.putSessionvalue(“ParamterName”,ParameterValue)

2. Explain structure of setForwardURL method. 
There are many parameters, here is the complete list of it:-
public void setForwardURL(String functionName,
 byte menuContextAction,
 String menuName,
 com.sun.java.util.collections.HashMap parameters,
 boolean retainAM,
 String addBreadCrumb,
 byte messagingLevel)

functionName – This is the function name representing the page you want to forward to. If its null, an IllegalArgumentException will be thrown. 

Also if the function is not under the current HOMEPAGE a OAException will be thrown.
menuContextAction – Determines the behavior of the MenuContext after forwarding to the new page. It accepts the following values:
OAWebBeanConstants.KEEP_MENU_CONTEXT: Keeps the menu context as is.
OAWebBeanConstants.KEEP_NO_DISPLAY_MENU_CONTEXT: Keeps the menu context as is, but will not display all menus including global buttons.
OAWebBeanConstants.KEEP_NO_DISPLAY_MENU_CONTEXT_RETAIN_GLOBAL_BUTTONS: Keeps the menu context as is, but will not display all menus excluding global buttons.
OAWebBeanConstants.REMOVE_MENU_CONTEXT: Removes the menu context
OAWebBeanConstants.GUESS_MENU_CONTEXT: Selects the given functionName function if it exists in the current menu. 
 If not it will try to make a guess by moving up the menu tree until it finds it. An exception will be thrown if the function could not be located.
OAWebBeanConstants.RESET_MENU_CONTEXT: Reset the menu context to the given functionName and menuName.
menuName – The name of the HOMEPAGE menu to reset the Menu context to when the menuContextAction is OAWebBeanConstants.RESET_MENU_CONTEXT. 
If the menuName is not of type HOMEPAGE a OAException will be thrown. You can pass null otherwise.
parameters -
HashMap of parameter name/value pairs to append to the forward URL. The final forward URL parameters are in the following sequence:
It will first get the function’s corresponding URL call by querying the function information from the database. If the user is not authorized to execute this function, a security OAException will be thrown.
It will then append all parameters passed in the parameters HashMap. First parameter added to the HashMap will be first added to the URL. Also the framework will encode all parameter values before appending them to the URL.
It will remove all parameters if they have null values in the passed parameters HashMap. This provides an easy way for developers to set a certain parameter’s value to null if they want to remove it.
It will remove any OA Framework internal URL parameters such as bcrumb, retainAM, and so on..
retainAM – If true, all the cached application modules will be retained. If false, all the cached application modules will be released. 
Developers must use this parameter to control the release behavior of the cached appplication modules. 
This method will ignore any retainAM=true or retainAM=false as a URL parameter or as part of parameters

3. Code to copy rows in VO
public void copy()
 SuppliersVOImpl pervo = getSuppliersVO1();
 Row row[] = pervo.getFilteredRows("SelectFlag","Y");
 for (int i=0;i<row.length;i++)
 SuppliersVORowImpl rowi = (SuppliersVORowImpl)row;
 OADBTransaction trx = (OADBTransaction)getTransaction();
 Number b = trx.getSequenceValue("FWK_TBX_SUPPLIERS_S");
 AttributeList a = (AttributeList)rowi;
 SuppliersVORowImpl r =(SuppliersVORowImpl)pervo.createAndInitRow(a);
 //Set here your unique attribute values, I'm setting here Supplier Id as for every new row it should be different.

4. What for isPreparedForExecution() and executeQuery() methods used?
isPreparedForExecution function will check whether all parameters are assigned properly and query is ready for execution. 

On multiple navigations to the page this query will not be executed multiple times.
While executeQuery function is used for executing the VO query so that it can fetch the data from database into VO cache.

5. What is the pattern used in developing any OAF component?
   MVC (Model, View, Controller)
   Lists the components in the MVC architecture
   Model: Application Module, View Objects, View Links, Entity Objects, Entity Associations etc.
View: Page, Region, Attributesets etc.
Controller: Controller class files

6. If we have to initialize something during the page loading, which is the right place?
A.     ProcessRequest() method of the Controller file is the right place.

7. What is the significance of ProcessFormData()?
   For a ‘POST’ request the data on the page is binded to the view object in this method

8. Does ‘GET’ request result in calling ProcessFormData()?
   No, only POST request calls that.

9. How does page structure get created at runtime?
   OAPageBean is responsible for creating the bean hierarchy structure at runtime after calling ProcessRequest() of each of the beans in the hierarchy.

10. Where does the client BC4J objects get placed in the server?
A. They are located in the oracle.apps.<product>.<application>.server

11. Where does the server BC4J objects get placed in the server?
   They are located in the oracle.apps.<product>.<application>.schema.server

12. Where does the Page and Controller related files get placed?

   They are located in oracle.apps.<product>.<application>.webui

13. What are Validation View Objects?
   They are the VVO’s used in validation of attributes, they are the BC4J components and have their AM ie VAM Validation Application Module

14. What is the version of Jdeveloper to be used in 11i or R12?
   For 11i, Jdeveloper 9i will be used and for R12 Jdeveloper 10g will be used.

15. What is a Database Connectivity(DBC) File?

   It is a .dbc file which is specified in the project properties. The location of this file on the server is $FND_TOP/secure

16. What is the object passed to every page request?
   OAPageContext object is passed to every request, using this object the controller initializes the application module object and will call the required methods.

17. Where is the view object(VO) initialization or query filtering done?
   It is done with view object implementation class Ex. EmpVOImpl.java

18. What is the property to set for an AM so that the transaction state is maintained across pages?

   RETENTION_LEVEL property is set to value MANAGE_STATE for an AM.

19. Give some examples of Page Personalization?

   Addition of new columns to a table results, adding of fields, changing the order of regions, columns etc. Apart from this validation of certain fields, display of Descriptive flex fields etc can also be achieved

20. How to do register a new OA Framework page in Oracle Applications?
   oracle.jrad.tools.XMLImporter utility will be used. After successfully importing the page data will be stored in metadata repository tables of the database

21. How do you move personalization from one machine to another?

   Using the functional administrator responsibility the xml file can be downloaded, this file contains the required personalization done on a particular page. The same can be used to upload in a different instance. Here XMLImporter utility can be also used.

22. What are the different layers of onion reuse object model in OAF?
   The hierarchy is as :
Controller (XXCO.java)
                       Application Module   (XXAMImpl.java, XXAM.xml)
                                       View Objects(XXVOImpl.java, XXVORowImpl.java, XXVO.xml)
                                                    Entity Objects(XXEOImpl.java, XXEO.xml)

                                                             |_ Database            

Other Articles Published Under OAF Interview Series:



Account Payables,1,Advance Table In OAF,1,AME,1,AOL Concepts,19,AP Holds,1,Apps Initialization,1,Blanket Purchase Orders,1,Blanket Releases,1,Careers,9,Common Errors and Solutions,2,Concurrent Programs,10,Contract Purchase Orders,1,Corporate Culture,3,Corporate Ladder,3,Customer Interface,3,Customization,1,De-Normalization,1,EAM,1,EBS Tutorials,10,Education,16,Emterprise Asset Management,1,English,1,Enterprise Asset Management,1,Entrepreneur,1,Error Fixes,1,Executables,2,Extension,1,fnd_user,1,FNDLOAD,1,Global Agreements,1,Guest Posts,7,Handy Scripts,63,Health Tips,1,Important Apps Queries,1,Infographic,3,Interview Preparation,62,Interview Q/A,68,Inventory Org ID,1,Iproc,4,Iprocurement,4,IT,3,jDeveloper,1,Job Search,1,Key Tables In Oracle Apps,5,Learning English,1,MDS,1,Metadata Tables,2,Multi Org Architecture,2,Normalization,1,O2C,1,OAF Interview,50,OAF Personalization,1,OAF Tutorials,52,OCI,1,Operating Unit,1,Oracle 10g,1,Oracle 11g,1,Oracle Access Manager,1,Oracle ADF,1,Oracle Alerts,2,Oracle AP,12,Oracle Apex,1,Oracle APIs,4,Oracle Application Object Library,19,Oracle Applications,10,Oracle Approvals Management,1,Oracle Apps,4,Oracle Apps DBA,2,Oracle Apps Interviews,36,Oracle Apps Tips,9,Oracle Apps Tutorials,98,Oracle AR,18,Oracle Assets,2,Oracle BAM,1,Oracle BI Publisher,1,Oracle BPEL,1,Oracle BPM,1,Oracle Cloud,1,Oracle Cloud Infrastructure,1,Oracle Dabase Structure,2,Oracle Database Architecture,2,Oracle Database Key Tables,3,Oracle EAM,2,Oracle EBS,5,Oracle Financials,2,Oracle Forms And Reports,17,Oracle Forms Interview Questions,6,Oracle Forms Tutorials,6,Oracle GL,4,Oracle Holds,1,Oracle HRMS,10,Oracle Human Resources,1,Oracle Inventory,4,Oracle Payables,1,Oracle Payroll,1,Oracle POTutorials,1,Oracle Purchasing,7,Oracle Reports Interview,9,Oracle Reports Tutorials,3,Oracle SOA,1,Oracle System Administrator,4,Oracle Workflow,4,Order Management,2,Organization ID,3,Organizations,3,Performance Tuning,2,Personalization,1,PL/SQL Block,1,PL/SQL Interview Questions,11,PL/SQL Scripts,44,PL/SQL Tutorials,53,Planned Purchase Orders,1,PO,1,PO Action History,1,PO_ACTION_HISTORY,1,POracle Purchasing,1,PR,1,Procedures And Functions,2,Profile Options,2,Purchase Orders,1,Purchase Requisition,2,Receipts,1,Request Groups,1,Responsibility,1,Shell Script,1,SOA Tutorials,4,Social Media,1,Software Industry,2,Software Tools,1,SQL And PL/SQL Interview,38,SQL Interview,52,SQL Scripts,38,SQL Tutorials,43,Standard Purchase Orders,1,Troubleshooting,1,Unexpected error,1,Unix/Linux Commands,3,User,1,Value Sets,1,Weblogic,1,XML Publisher,4,
Oracle Apps Guy: OAF Interview Questions & Answers - Part 4
OAF Interview Questions & Answers - Part 4
Part 4 of OAF interview questions and answers series. This series has 22 OAF interview questions and answers which are asked frequently in interviews.Oracle OAF Interview Questions and Answers,basic to advanced OAF Interview Questions and Answers
Oracle Apps Guy
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content