Vous êtes sur la page 1sur 11

10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

Categories

Welcome to My Oracle World

Wednesday, April 18, 2012

OAF Hello World Tutorial


By: Guest Author

1. Create a New OA Workspace and Empty OA Project

File> New > General> Workspace Configured for Oracle Applications

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 1/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 2/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 3/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

2. Set Run Options in OA Project Setting

Select Your Project in the Navigator and choose Project Properties

Select Oracle Applications > Run Options

Select OADeveloperMode and OADiagnostic, and move them to selected


Options List

3. Create Application Module AM

4. Create a OA components Page

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 4/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

5. Modify the Page Layout (Top-level) Region

Attribute Property

ID PageLayoutRN

Region Style pageLayout

Form Property True

Auto Footer True

Window Title Hello World Window Title

Title Hello World Page Header

AM Definition prajkumar.oracle.apps.ak.hello.server.HelloAM

6. Create the Second Region (Main Content Region)

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 5/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

Attribute Property

ID MainRN

Region Style messageComponentLayout

7. Create the first Item (Empty Field)

MainRN > New > messageTextInput

Attribute Property

ID HelloName

Style Property messageTextInput

Prompt Name

Length 20

Maximum Length 50

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 6/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

8. Create a container Region for Go-Button

MainRN > messageLayout

Attribute Property

ID ButtonLayout

9. Create a Second Item (Go Button)

Select ButtonLayout > New > Item

Attribute Property

ID Go

Item Style submitButton

Attribute /oracle/apps/fnd/attributesets/Buttons/Go

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 7/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

10. Save Your Work

11. Run Your Page UI is ready

12. Add a Controller

MainRN > Set New Controller

13. Edit Your Controller

Add Following OA Exception as a last line in import section

import oracle.apps.fnd.framework.OAException;

Add Following Code in processFormRequest


https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 8/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

public void processFormRequest(OAPageContext pageContext, OAWebBean


webBean)

super.processFormRequest(pageContext, webBean);

if (pageContext.getParameter("Go") != null)

String userContent = pageContext.getParameter("HelloName");

String message = "Hello, " + userContent + "!";

throw new OAException(message, OAException.INFORMATION);

14. Build Your Controller

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 9/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

15. Test Your Work Your Hello World Page is Ready

Join the discussion


Visit the Oracle Blog Contact Us
https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 10/11
10/2/2017 OAF Hello World Tutorial | Welcome to My Oracle World

Learn more Learn more

Site Map Legal Notices Terms of Use Privacy Cookie Preferences

https://blogs.oracle.com/prajkumar/oaf-hello-world-tutorial 11/11

Vous aimerez peut-être aussi