OAF - Creating A Hello World Page (Basics) PDF
OAF - Creating A Hello World Page (Basics) PDF
OAF - Creating A Hello World Page (Basics) PDF
1. Every project should be under a OA Workspace. Right click on Applications and select New OA Workspace.
3. Set the following properties for the project and Click Next.
Project Properties:
Project Name – OracleApps88
Default Package – xxapps88.oracle.apps.fnd.hello
In the Default package xxapps88 is the third party identifier. fnd is the application short name and hello is the
component name.
OAF – Creating Hello World Page Raju Ch
4. For the hello world tutorial there is no database connection required. Click Next.
5. Set the below connection details and Click Next and Finish.
Run Time Connection Details:
DBC File Name - <JDEV_USER_HOME>\dbc_files\secure\<DBC File Name>.dbc
User Name – operations <Application User Name>
Password – welcome < Application Password>
Application Short Name – FND
Responsibility Key - APPLICATION_DEVELOPER
OAF – Creating Hello World Page Raju Ch
8. Set the following properties for the page and click OK.
New Page:
Name – Apps88HelloWorldPG
Package – xxapps88.oracle.apps.fnd.hello.webui
9. Click on Apps88HelloWorldPG and in the structure pane and click on region1 and set the following properties
for the region:
Region Properties:
Id – PageLayoutRN
AM Definition – oracle.apps.fnd.framework.server.OAApplicationModule
Window Title – Oracle Applications
Page Title – Hello World
OAF – Creating Hello World Page Raju Ch
OAF – Creating Hello World Page Raju Ch
11. Set the following properties for the region. All the message type items should be created under
messageComponentLayout region style.
Region Properties:
Id – MainRN
Region Style – messageComponentLayout
OAF – Creating Hello World Page Raju Ch
14. For creating a Button which will post the value got from the user we need a submit button. Buttons cannot be
created under “messageComponentLayout” region. So we will create a messageLayout region and create a new
submit Button under it.
19. The structure pane for the Apps88HelloWorldPG should look like below:
OAF – Creating Hello World Page Raju Ch
20. The page design is over now and lets create a controller which will handle the code.
22. Set the following properties for the controller. Click Ok.
Controller Properties:
Package – xxapps88.oracle.apps.fnd.hello.webui
Name – apps88HelloWorldCO
OAF – Creating Hello World Page Raju Ch
23. Click on Apps88HelloWorldCO.java. The java file contains processFormRequest and processRequest method.
For handling the button click request code needs to be written under the processFormRequest method.
ProcessFormRequest Code:
//Checks if the Go button is pressed. If yes then the code will be executed
if (pageContext.getParameter("Go")!=null)
{
//Assigns the value of input from the inputText to the string inputName
String inputName=pageContext.getParameter("HelloName");
//Concats Hello with the input and then !
String outmsg="Hello "+"" + inputName + "!!";
//Throws the concatenated message as an exception information on the browser
throw new OAException(outmsg,OAException.INFORMATION);
}
24. Save your work and right click on OracleApps88 project and click Add to Project Content.
OAF – Creating Hello World Page Raju Ch
25. Click on Add. Select xxapps88 and click Ok. Again Click Ok. Now you should see only the package
xxapps88.oracle.apps.fnd.hello.webui in your project.
OAF – Creating Hello World Page Raju Ch
26. Right click on Apps88HelloWorldPG and click Run. The completed page will
look like below:
OAF – Creating Hello World Page Raju Ch