Professional Documents
Culture Documents
OAF: - Oracle Applications Framework Version: - 9.0.3 Architecture of OAF
OAF: - Oracle Applications Framework Version: - 9.0.3 Architecture of OAF
Version : - 9.0.3
NOTE: - For OAF install Jdeveloper (developed by Java & J2ee for E-Business Suite).
Architecture of OAF:
OAF follows the MVC (Model View Controller) Architecture.
Model (BC4J Components)
View (User Interface xml)
Controller (Developed by Java Classes)
What are BC4J Components?
BC4J Components are as follows
AM VOEO D
B
The above structure is the Onion Structure; in which AM (Application Module) interact
with the VO (View Object) and VO interacts with EO (Entity Object) and EO interacts
with DB (Data Base).
NOTE: EO can only interact with the Data Base.
A page can have only one AM and AM can have number of VO and EOs.
To display simple page no need of VO and EO, only AM is enough.
F:\Vijay_OAF.zip
: JDEV_USER_HOME
: D:\Jdeveloper\jdevhome\jdev.
5. Go to D:\Jdeveloper\jdevbin\jdev\bin
For the above screen first you need to get the .dbc file. By the following path we can get
the .dbc file from the server /d01/applmgr/visappl/fnd/11.5.0/secure/erp_vis.dbc.
Open the .dbc file copies the host name and past it in the host name in the screen,
similarly get the Service Name and past it in the SID. - Next and click on Test
Connection.
Next Finish.
Next Give the default package name in the standard format as follows
<Identifier>.oracle.apps.<application_short_name>.<component>.webui
Ex: - Vijay.oracle.apps.po.WelcomePG.webui (web user interface)
Next checks the check box and select the use repository for design time
And select the database connection name (Vijay).
Next, attach the DBC file name in the DBC file name by click on browse.
Give the oracle application front end user name: operations
Password: welcome
Change the .webui to .server, all the BC4J components will be stored in the server.
Ex: - Vijay.oracle.apps.po.WelcomePG.server
FAQs
Give the item ID name (ex: - Text) and Prompt (Enter our Name) in property inspector
window
Similarly create another item with the item (Submit) item style as submit button and
give the prompt in property window and run the page.
Go to structure window right click on region1 and select the Set New Controller.
Click on Ok.
Create another button the same region and give the ID name as Clear with item style as
Submit Button.
Clear
Clear
Write the following code in Processes from Request for Clear Button.
Give the file name Fine Name : - <an name> ex:- Vijay ok
Next
Next
Attach the .dbc file and give the front end username and password.
Next finish.
Create BC4J component
Create EO by right click on the BC4J component select the New Entity Object (EO)
Next next by default it takes rowed will be the primary key (click on Yes)
Select all general methods next.
Here by default system will ask to create the VO and give the VO name ex: - searchVO
Next finish.
Now you can see that AM, VO, EO is created, then click on AM select Data Model and
attach the VO to AM
Write the
where clause
Ex;- searchEO.TYPE_LOOKUP_CODE=UPPER(NVL(:0,TYPE_LOOKUP_CODE))
Give the page name (any name) ex; - searchPG and select the .webui ok
Select the AM ok, and give the window title (any name) ex: - SearchPG, title (an
name) Welcome to search page.
Create another region and select the region style as Message Component Layout.
Give the ID; name for the item and give any prompt name (Ex: - Enter Type Lookup
Code)
Rebuilt the page and run the page to test. You can see the following out put.
Create another region with region style as PageButtonBar and create an item by giving
the item style as SubmitButton and give any ID name (Ex: - Search) and give any
prompt as well (Search). Rebuilt the page and test the page.
Create another region with the region style as advancetable and attach the view instance
(searchVo1) as shown in figure. Ok.
Give the item style as MessageStyledText and select the view attribute (PoHeaderId).
Click on column header New SortableHeader and give the prompt (PO Header ID)
Rebuilt the page and test the work and you will see the out put as follows
Enter any type of purchase order like Standard, Rfq, Blanket and Contract.
How to call from one page to the other page?
In the begin you already created search page with the PO_HEADERS_ALL table with
respect to that we will take PO_LINES_ALL with respect to the PO_HEADER_ID we
have to display PO_LINES.
Now we will create another search page for lines.
Create BC4J component for polines as shown in fig.
Next we need to give the link between headers and lines, to create the link follow the
steps.
Enter the required details in the above screen and click on search and click on particular
header id we can get the details with respect to header id. As shown next fig.
How to insert data into custom table?
1) Create a table as follows in cus_top.