Thursday, November 7, 2013

Creating Train Region in OAF


Train Region in OAF


Now we are going to learn about, how to use the train region in oaf.

For train region.

First create one workspace and project.

Create one Application Module.

Here I am using data insertion. So create one Entity Object. (Not Mandatory)

Create one View Object and attach to AM.

Create three pages and attach the AM and set the window title and title for each pages.

The Structure of the pages are as shown below.

Train1PG

For each item set the View Instance and View Attribute.




Train2PG

For second page in the main region along with AM definition set one more property called AM State Required to TRUE.






           
Train3PG

For third page also make AM State Required to TRUE.






Next Create one new Region.

Right click on webui select new.

Webui-- > new -- >OA Component -- > Region.

Give the name for the Region

Name:-           (EmpTrainRN)

Style:-train





After creating the Region in the structure. Right click on the region select new link

Create three links.

Set the following properties for the link.

ID:-      (STEP1)

Destination URI:- Give the path of the 1 page (OA.jsp?page=/sangu/oracle/apps/po/TrainPRJ/webui/Train1PG)

Text:-    (Step1)





Repeat the same for other two links also.

ID:-      (STEP2)

Destination URI:- Give the path of the 2 page (OA.jsp?page=/sangu/oracle/apps/po/TrainPRJ/webui/Train2PG)

Text:-    (Step2)




ID:-      (STEP3)

Destination URI:- Give the path of the 3 page (OA.jsp?page=/sangu/oracle/apps/po/TrainPRJ/webui/Train3PG)

Text:-    (Step3)




Create one more region for navigation of type pageButtonBar.

Right click on webui select new.

Webui-- > new -- >OA Component -- > Region.

Give the name for the Region

Name:-           (EmpNavRN)

Style:-pageButtonBar





After creating the Region in the structure. Right click on the region select new item

Create one submit button item for save.

Id:-save
Style:-submitButton
Prompt:-save.

Create another submit button item for cancel.

Id:-cancel
Style:-submitButton
Prompt:-cancel.


Crete one region.

Style:-navigationBar

First Step:- 1

Last step :- 3




Create three links items in the navigationBar region.

Right click on the region select new item

Set the following properties for the link.


ID:-      (step1link)

Style:- link

Destination URI:-  Give the path of the 1 page (OA.jsp?page=/sangu/oracle/apps/po/TrainPRJ/webui/Train1PG)

Text:-    (Step 1 of 3)



ID:-      (step2link)

Style:- link

Destination URI:-  Give the path of the 2 page (OA.jsp?page=/sangu/oracle/apps/po/TrainPRJ/webui/Train2PG)

Text:-    (Step 2 of 3)




ID:-      (step3link)

Style:- link

Destination URI:-  Give the path of the 3 page (OA.jsp?page=/sangu/oracle/apps/po/TrainPRJ/webui/Train3PG)

Text:-    (Step 3 of 3)

The structure of the region is as follows.





After creating the EmpTrainRN region and EmpNavRN region.

Now click on your Train1PG

In this page create one Region.

Style:- pagebuttonBar

Extends:- Here give the path of your EmpNavRN region
                (/sangu/oracle/apps/po/TrainPRJ/webui/EmpNavRN)




After this now write click on main region of the page and select new location.




After creating the location it will create one region in that Extend your train Region i.e EmpTrainRN.






Repeat the same for remaining two pages also.

(One region for EmpNavRN region and one location for EmpTrainRN region)

The structure of the page looks as follows.



This finishes the Train Region Run The Page to See The Output.



U can add the data.



After clicking next button it move to next page.



After clicking next button it move to next page.