Sie sind auf Seite 1von 23

OAF Tutorial1:How to create an OAF page to display person details.

Open jdeveloper 9i and create workspace first

Create file name as oaf_tutorial1.jws in path: D:\p4573517_11i_GENERIC\jdevhome\jdev\myprojects\oaftutorial1 and click on ok button Then click on next button and now enter file name as oaf_tutorial1.jpr and default package as oracle.apps.tutorial1

And click on next button And enable the check box called use repository for design time and select connection needed. And click on next button

And provide details as below represented screen shot. Provide dbc file path and user name and password for front end access

Click next button and then click finish button to finish creating .jpr file Now create one business component package

And enter package name as before mentioned as default package, and at the end put schema server

Then click on next button

then click on next button And click finish button

Create another business component with ending name as server.

And click finish button And create one more business component with ending name as webui

And then click on next button and click finish button.

Now create an entity object

Select schema object as our table name and then enter entity object name as our wish

Then click next button

Then click yes button when pop-up is displayed as below

Then select all generate methods and click on next button

And click on finish button Now the entity object with name XxPersonDetailsEO is created in schemaserver package Then select that file and right click on it and click on new default view object as shown below

Then the view with file name XxPersonDetailsEOView is created in schemaserver . after this move that file to server package.

Then select server package

And click on ok button Then rename it to xxPersonDetailsVO by rightclick on it

And change the name to xxPersonDetailsVO and click on ok button

Now right click on server package and create one new application module

And name it as xxPersonAM and click on next button

Then select view file and move it to right side under xxPersonAM

And click on next button

Then click next button.

And make sure that generate java file(s) check box is enabled. Then click on finish button. Then rebuild the .jpr file

Now right click on .jpr file and select new option

Then select web tier category and in that select oa Components and at right side select page item. And click on ok button

Now enter page name As xxPersonMainPG and select package as webui and click on ok button

Then select that file at system navigator displayed at left side. And now at bottom select region1 and set properties as shown below screenshots Change id as MainRN

Now select AM Definition as xxPersonAM module by selecting it and click on ok button

And now give window title and title as Main Person Page for Search. And save them

Now rightclick on MainRN at left side bottom and select new and in it select region(click it) Then change its properties

Id as QueryRN And region style as query

Now make construction mode as resultsBasedSearch and select include simple panel as true, include views panel as true and include advanced panel as true. And save it. Now select QueryRN and rightclick on it and click on new and select region using wizard.

Then click next and select xxPersonDetailsVO1 at view usages tab and click next button

And change region style as table and click on next button.

Now select the required fields from the list at left side.

And click on next button. And select style as messageStyledText for all the fields and then click next button

And click on finish button

Now select these fields one by one and change properties as shown below. As make search allowed true and sort allowed ascending

This is for personId and now change like this for all fields and dont change sort allowed for rest of the fields as required. And save them. And rebuild the .jpr file

Then run the xxPersonMainPG.xml file to view the output.

Das könnte Ihnen auch gefallen