Professional Documents
Culture Documents
Now we are going to learn about how to extend the view object in OAF.
Step1:- Navigate to the page where you want to extend the view object.
Analyze the page and note down in which region you want to extend.
Click on about this page and note down the VO associated with that region.
And also note down the path of the VO.
Step2:- Let us consider now we are extending the standard iProcurement page.
Now in My Requisition region in the existing table we are adding one more new column.
Note down the below details:-
VO Name:- MyReqsGlanceVO.
VO Path:- oracle.apps.icx.por.reqmgmt.server.MyReqsGlanceVO. (U will get the path of the VO
in Business components section ).
Step3:- Get the corresponding files from the server $JAVA_TOP to local machine.
Name:- (xxMyReqsGlanceVO)
Package:-Give the package name (VOExtension.oracle.apps.icx.por.reqmgmt.server)
Extends:-Brows the standard
VO (oracle.apps.icx.por.reqmgmt.server.MyReqsGlanceVO)
Click on next
It will open the sql query window in that do the required changes according to the requirement.
Don't forget to generate the java file
After creating the extended view object compile the java files.
Business Components
Substitutions
In the substitution window select standard VO in left hand side and select custom VO on right
hand side and click on ADD button.
Step8:- Move that newly created folder back to the server
From C:\dev\oaf\r1211\jdevhome\jdev\myclasses
(the newly created VOExtension folder)
To /oracle/apps/r12/visr12/apps/apps_st/comn/java/classes
make the fallowing path in a single line for that in notepad go format uncheck word
wrap:-
jpximport C:\oaf\p9879989_R12_GENERIC\jdevhome\jdev\myprojects\VOExtension.jpx
-username apps -password apps dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST= focusthreadr12.com)(PORT=1521))(CONNECT_DATA=(SID= visr12)))"
C:\dev\oaf\r1211\jdevhome\jdev\myprojects\VOExtension.jpx this the path where
your jpx file located in your machine.
Step10:- To check the extension has done or not go to the sql developer execute the
following command
begin
jdr_utils.listCustomizations('/oracle/apps/icx/por/reqmgmt/server/MyReqsGlanceVO');
end;
Go back to the page and check the newly added field is appearing or not.