0% found this document useful (0 votes)
43 views16 pages

Extend OA Framework Add New Field

1) The document describes how to extend a view object in Oracle Applications Framework to add a new field to a standard page. It involves creating a PL/SQL function, extending an existing view object, creating a substitution, and personalizing the page. 2) Specifically, it shows how to add a "Supplier Number" field to the "My Requisitions" region on the iProcurement shopping home page by extending the "MyReqsGlanceVO" view object. 3) After making the extension, personalizing the page, and mapping the new view object attribute, the additional field will be displayed on the page when it is viewed from both JDeveloper and the eBusiness Suite.

Uploaded by

Neeladri Pradhan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views16 pages

Extend OA Framework Add New Field

1) The document describes how to extend a view object in Oracle Applications Framework to add a new field to a standard page. It involves creating a PL/SQL function, extending an existing view object, creating a substitution, and personalizing the page. 2) Specifically, it shows how to add a "Supplier Number" field to the "My Requisitions" region on the iProcurement shopping home page by extending the "MyReqsGlanceVO" view object. 3) After making the extension, personalizing the page, and mapping the new view object attribute, the additional field will be displayed on the page when it is viewed from both JDeveloper and the eBusiness Suite.

Uploaded by

Neeladri Pradhan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Anil Passi

http://apps2fusion.com

In this article you will learn from a working example, how to extend view object in OA Framework to add a new field to standard page. This article will also teach you how this extension can be tested from both jDeveloper and also how this can be deployed to eBusiness Suite. Lets say, in the iProcurement shopping home page, we need to add Supplier Number field in the My Requisitions region. My requisition region primarily displays the data from PO_REQUISITION_HEADERS_ALL Table. However it is the table po_requisition_lines_all that contains the vendor id. In order to add a Supplier Name field here :1. Create a PL/SQL function that returns comma separated list of Supplier Names against a requisition. 2. Extend the View object being used which is MyReqsGlanceVO. Hence new view object xxgnmMyReqsGlanceVO will be created. xxgnmMyReqsGlanceVO will extend from standard view object MyReqsGlanceVO. 3. Create substitution in jDeveloper, so that new/extended view replaces standard view object MyReqsGlanceVO 4. Run the page from jDeveloper or from eBusiness Suite, so as to personalization the existing region. By personalization, a new field will be added. This new field will have a prompt Supplier number. And also, this new field will be mapped to the new view object attribute. 5. Deploy the changes to application tier Before making the changes, screen will look as below

After making the extension change, screen will look as shown below

First find the name of the page. This can be done by examining the URL or by clicking on Personalize link or by using about this link page

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

The document name in question is /oracle/apps/icx/icatalog/shopping/webui/ShoppingHomePG For extension, create a new OA Workspace and a new OA Project.

Create a project named xxgnm01

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

Give it any default package [does not really matter] To find out the name of the view object being used, open this page in jDeveloper.

The View object being used can be seen as below

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

View object being used is MyReqsGlanceVO Edit server.xml to retain only those vos that we wish to extend This step is optional, but helps sometimes when you have too many BC4J components within the server.xml

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

Copy the query from above View object in ClipBoard

Create the custom bc4j xxgnm.oracle.apps.icx.por.reqmgmt.server Inside this package we will be creating an Extended View Object

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

Click on finish Create a new view object

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

Change newly created attribute name to something meaningful. This view object attribute will be named xxgnmGetVendorNameConcat

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

Now that we have done substitution, we need to tell jDeveloper that this substitution should be picked up during runtime of the page. This is required if you wish to test your VO Extension from the jDeveloper. For testing BC4J extensions from jDeveloper, we need to modify Runner property, and append a text as shown below, which is Djbo.project=<name of your project>

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

Add above directive, so that extensions can be tested from jdeveloper itself

If you wish deploy the extension to the server, then use the above command jpximport.bat OAProject1.jpx -username apps -password apps -dbconnection "(description=(address_list= (address=(community=tcp.world)(protocol=tcp)(host=focusthreadServer.com) (port=1555)))(connect_data=(sid=FOCUSR12)))"

Now, lets personalize the iProcurement page and add a new field This can be done by clicking on Personalize Paege link

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

As shown below, we can see the new item that you added via personalization.

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

Anil Passi

http://apps2fusion.com

FocusThread Consultancy Limited A fast growing Oracle ERP Consultancy http://focusthread.com

You might also like