Sample OAF Page Creation
Step1:-
Create a New OA Workspace and OA Project.
Right click on the Application and select New OA
Workspace.
Be careful to create OA workspaces and OA projects, rather than plain
workspaces or projects.
Ø Only OA projects allow you to create pages, regions,
and attribute sets.
Ø Only OA projects capture Oracle Applications related
information.
Give the File Name for
the Workspace for example Helloworld.jws
Check the Add a New OA Project and click OK.
After you click OK, you will see the Wizard Welcome
screen. You can skip the welcome screen and select Next.
Then we can see a
window which asks for Project Name, Directory name and Default Package, provide
the details as follows.
Project Name:- (HelloWorldPRJ )
Directory Name:- (It
will come by default it is the directory where
your projects store in the patch)
Default
Package:- (“<sangu>.oracle.apps.po.HelloworldPrj”.
In
this path your project will store)
Click
on Next .
In Step 2 and 3 of
Oracle Applications Project Wizard we can see Connection details and
Responsibility details which we added early in JDeveloper
Configuration Steps so need not to do anything. If u not
added,
then give the details.
Click Next.
In Step 3 and 3 of Oracle Applications Project
Wizard it will ask for runtime connection. JDeveloper
Configuration Steps we already set the default project
properties so need not to do any thing.
Click Next and then Finish.
STEP2:-
Create
the Application Module.
Right click on the
project select new and then select ADF Business Component, then select
Application Module as shown bellow
And
Click ok.
After
that we will get the window in that give the
Application module
name:- (HelloworldAM).
The package will come
automatically in that just give .server as shown bellow.
Click next, next …. And
finish.
STEP3:-
Create the page.
Right click on the
project select new, then select OA Components, then select page
Click ok.
After that we will get
the window in that give the name for page
Name:-
(HelloworldPG).
The
package will come automatically in that just give .webui as shown bellow.
STEP4:-
Now we have to attach
the application module for this page.
In the application
navigator select the <pagename>.xml (HelloworldPG.xml) from the webui
structure.
After that it will show
the page structure, select region1.
In the property
inspector select
BC4J-- > AM
Definition (select your AM).
Visual-- >
Window Title:- (HelloWorld).
Title :- (HelloWorld).
After that right click
on <pagename>.xml (HelloworldPG.xml) ) from the webui structure and
select run.
After that u will get
the desired output as shown below.
simple example for developing OAF Page
ReplyDeleteTHANK YOU.
ReplyDeleteHI Sangu, i followed the steps completely but when i run the page, it just goes on to load forever. Any idea why? I'm connected to the database via a VPN, does that make any difference?
ReplyDeleteONE DOUBT XML FILE NOT CREATE... WHY? STEP 4 PROCESS NOT WORKING...
ReplyDeleteHelpful to beginners...
ReplyDelete