OAF Tutorial1 Practice

download OAF Tutorial1 Practice

of 23

Transcript of OAF Tutorial1 Practice

  • 7/31/2019 OAF Tutorial1 Practice

    1/23

    OAF Tutorial1:-

    How to create an OAF page to display person details.

    Open jdeveloper 9i and create workspace first

  • 7/31/2019 OAF Tutorial1 Practice

    2/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    3/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    4/23

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

  • 7/31/2019 OAF Tutorial1 Practice

    5/23

    Then click on next button

    then click on next button

    And click finish button

  • 7/31/2019 OAF Tutorial1 Practice

    6/23

    Create another business component with ending name as server.

    And click finish button

    And create one more business component with ending name as webui

  • 7/31/2019 OAF Tutorial1 Practice

    7/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    8/23

    Then click next button

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

  • 7/31/2019 OAF Tutorial1 Practice

    9/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    10/23

    Then the view with file name XxPersonDetailsEOView is created in

    schemaserver . after this move that file to server package.

    Then select server package

  • 7/31/2019 OAF Tutorial1 Practice

    11/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    12/23

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

    And name it as xxPersonAM and click on next button

  • 7/31/2019 OAF Tutorial1 Practice

    13/23

    Then select viewfile and move it to right side under xxPersonAM

    And click on next button

  • 7/31/2019 OAF Tutorial1 Practice

    14/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    15/23

    Now right click on .jprfile 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

  • 7/31/2019 OAF Tutorial1 Practice

    16/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    17/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    18/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    19/23

    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.

  • 7/31/2019 OAF Tutorial1 Practice

    20/23

    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.

  • 7/31/2019 OAF Tutorial1 Practice

    21/23

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

    then click next button

    And click on finish button

  • 7/31/2019 OAF Tutorial1 Practice

    22/23

    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

  • 7/31/2019 OAF Tutorial1 Practice

    23/23

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