• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Extensions in OAF
 

Extensions in OAF

on

  • 8,304 views

Webinar on Extensions in OA Framework (OAF), Oracle Application Framework

Webinar on Extensions in OA Framework (OAF), Oracle Application Framework

Statistics

Views

Total Views
8,304
Views on SlideShare
7,019
Embed Views
1,285

Actions

Likes
3
Downloads
0
Comments
0

7 Embeds 1,285

http://www.iwarelogic.com 839
http://www.sqlplsqloracleappstutorials.com 392
http://plsqloracleappstutorials.blogspot.com 41
http://www.oracleappsguy.com 9
http://iwarelogic.com 2
http://webcache.googleusercontent.com 1
http://translate.googleusercontent.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • WE will talk about some examples where we would require extensions and get a better idea about what are extensions in OAF. Things you need to know for doing extensions is important as there are various components which are related to a particular page. So we will discuss what are the various things we need to know and how we get this particular information. During extensions the main components that are extended are the view objects, application module and the controller. So we will take a look as to how we extend these components and where we need to extend these components. We will talk in brief about personalization and how the personalization of a page is important or plays a role during extension. It may be so that you have done your development on one instance and now you would like to add these same extensions to another new instance. So we will talk about how we can deploy in a systematic way.
  • Installation is the process of moving E-Business Suite from the distribution media (i.e., CD or DVD) to the host system. Installation is only the first step of bringing up a fully functional E-Business Suite instance. The software still needs to be configured to the specific needs of the business or business unit for which it is installed. The software may also need to be installed on multiple servers if a multi-node installation is desired. Configuration is the process of setting the proper parameters and customer-specific information for a fully-functional E ­ Business Suite instance. Personalization is the process of making changes to the User Interface (UI) from within an E-Business Suite form/page. It is possible to make personalizations to both Forms-based and OA Framework-based pages. Extensibility refers to the ability to programmatically extend an application's functionality. In other words, extending the n functionality of an application gives developer the ability of: · Adding new content or business logic · Extending/overriding existing business logic
  • This first screen shot is of a search page in iRecruitment module. The seeded functionality provided the user to search vacancies on various fields, but this seeded functionality did not allow a user to have a multiple search on a single field. As we can see in the picture, we have 4 different request type, in the seeded functionality we could select on only of these request type. There was a requirement where a user would like to have multiple selection on a particular field and perform the search. This requirement could not be satisfied without extension. To satisfy this requirement there was a need to add various shuttles and then perform the search. In the future slides we will understand how we need to go ahead to extending a particular page. The second example is from the sourcing application. In sourcing a surrogate bid is created by the user on behalf of the supplier. There was this requirement where this surrogate bid could be a responsive or a non-responsive bid. To satisfy this requirement we had to created a custom region, which would ask the user whether the bid is responsive or non responsive. If the bid is non-responsive then a compulsory textbox would appear which would ask the user to give a particular reason. This requirement could not be satisfied be using personalizations only. The was a need to extend, create various components to satisfy the need.
  • This example is again taken from the sourcing application. This is a table which would display all the bids with regard to an auction. In the seeded functionality the comments column of this table was not present. This column’s functionality has been added through extensions. The need was that if we click on the comments icon it would redirect the user to another page and show all the comments with regards to a particular bid. We can surely add this column and the image icon through personalizations, but we required to do extensions for displaying the respective comments. Extensions was done to handle the on click event of the icon. Extensions could also be done to override the seeded functionality. Here is an example where sections were required to be added while creation of an auction. Functional Evaluation is one such section. The seeded code would allow the user to add this functionality without any verifications. There was a requirement where the user had to explicitly specify whether he/she would like to add functional evaluation or not. For this requirement we added a new region to the page and handle this validation via extension. If a user would select yes for functional evaluation section then a text box would appear where the user needed to specify the minimum value. The rendering of this textbox and further validations that is if functional evaluation is yes then and only then the user is allowed to add this section, required extension.
  • Let us now talk about the various terminologies required to be known when we go ahead to extensions. The first thing is the page. Whatever is rendered or displayed in the browser is called the page. Now in OAF, self-serviced pages have various regions. These regions make up the page. Within every region there are many items, which may be a textbox or a label or any other item. In OAF all the BC4J components plays a vital role in displaying, storing and updating data from the front end. The first is the application module i.e is called the AM. The AM acts as a pool of all connection. The AM handles all the transactions and interacts with the clients. Next is the Entity Object ,which is mapped to the database table or other data source. The entity Object which is known an EO, is a fundamental BC4J component through which all the insert/update/delete interact with the database. A view Object represents a query result. A view Object can be based on any number of Entity Objects. In this webinar we will be going through extending these components. An OA controller can be associated with any region but a controller cannot be associated to any item. A controller may be created for various reasons like, Handle the press of a button Dynamic WHERE clause JSP forwads Rendering UI elements depending on some conditions Handling business logic Personalizations means declaratively changing the user interface, the look and feel, or may be the layout of the page depending on some business logic. To personalize a particular page we can select the “Personalize Page” link, which is shown on the top right of the page. Note that this link may or may not be visible to you, this is because the system admininstrator has not enabled personalizations to your user. On click of this link you will get the hierarchy of all the items in the page and here you can personalize the current page. The next important link is “about this page”. This link is seen at the left bottom of the page. With this link you can view all the items that are present on the page and also you can view all the components associated with the current page. we will talk about this in detail in the upcoming slides.
  • This is an example of extension where we added this new column named scaled weight to the seeded table. Firstly we would like to know is how we do this extension and what are the various things we need to know for this extension. Keeping in mind this example let us understand how we should go forward towards extension. Ebs contains various applications and each application has its short name. Now when we talk in terms of an applications in EBS each application has its own path on the server. About the application path and how we get to know what is the application path, we will talk about this in detail in the up coming slides. So when we start with extensions, it is necessary to know the path and also the page name you dealing with. As discussed earlier application module i.e. an AM acts as a pool of all connections and every page contains its own rootAM. So we should identify which is the AM with our current page. Oaf also holds a concept of AM’s where a particular Region may have its own AM. In the above example we see the results in this table through a VO. Now if we want to add this weight column to the table, we would require to extend this view object. As we know that a page contains various regions. It can be possible that the particular region you are planning to extend has its own controller. So if we require to extend a controller, we should understand which particular controller we need too. In order to extend the functionality of the page we need to retrieve the class files from the server to your local instance. Now the first question that will pop up is “from where do we pick up these class files.?” Here is where the application path comes into picture.
  • We spoke in brief about what are the various prerequisites we need during extensions. So now we will look at how we get to know which are the respective components associated with your page and your region. This is a screen shot of when we click on about this page link for the details of all the components and a more about the hierarchy of the page, As spoken earlier this link provides us the page information and the various business components that were used. On the top we will notice that , it depicts the path of the page. You will notice that the all the pages and components are deployed under oracle/apps folder. After the apps folder the respective application short name folder is present. We know now this page belongs to the application “pon”. Bellow when we expand all, we get the hierarchy of all the items present in the page. Now with respect to the controller, the entire pagelayout contains a controller, which we can view in the controller column. The topmost controller is known as the root Controller. We search for the respective item in the hierarchy, it may be so that the particular region has its own controller. As we have taken an example of adding the Scaled weight column in the table, we search for that item in the hierarchy. It may be so that the region containing the table may have its own controller. The similar is with respect to the AM. The AM also are depicted in a separate column. We will notice that most elements have its own VO and view attribute. This is because during the creation of the page. The elements are provide with the view object and a view attribute if required, We can always traverse to the particular element we need and know the respective VO and view attrribute. This page contains a sections known as “Business components ”
  • As we have taken the example of adding a new column called as scaled weight in the seeded table. This is one good example where we would require extending a view Object. During extension we should always make sure the xml files and the class files are brought from the server to your local development machine. Lets let us now see how we extend a view object.. To extend a vo we right click on the project and say New view Object. First screen shot depicts us how to create a new VO. Now you will be asked to provide the package name and the name of your new vo. Since we are extending the vo, we need to specify the path of the seeded VO .
  • On click of the next button you the above window will appear. On the left hand side you will view all the links which will show the details of the seeded VO. Will discuss some of these links. The first is the Attributes. This link shows all the attributes with respect to the VO. There are two types of attributes. One is a transient attribute and another is called calculated attribute. A calculated attribute is an attribute which is mapped to a sql attribute. Next is the SQL statement. We can always update the sql statement to satisfy our new requirements. This sql statement can updated if and only if the VO is created in expert mode. Java link. This is where we get an option of selecting whether we would like to generate the impl or the rowImpl files. This is about creating your new extended view object.
  • Now this extended VO has to be deployed to the server and should take affect in the application. First we should deploy these xml files and the class files to the server. Secondly we need to substitute the old VO with the new extended vo. This substitution is done by going to project properties and click on the substitution tab. This is a screen shot showing the substitution screen. On the left we need to specify the seeded vo and on the right we specify the new extended VO. When we add this , we will notice a new entry is created in the jpx file of the project. This file will have the new VO substituted by the old VO. Now these substitution has to be deployed to the server, this is done by running the command “jpximport”. Now how do we check whether our substitution was successful or not. 1 : we can check by executing this class jdr_util in the sqldeveloper. Listcustomizations lets you know if your substitution was done successfully. 2: we can go to about this page and check whether the Old VO is now substituted with the your new VO.
  • A controller is mostly extended when we want to handle a event or handle the rendering of an UI element.
  • So far, we have talked about extension. Let us quickly take a look at customizing, which basically means creating new pages and associated bc4j objects. Here you don’t have to extend VOs,EOs,AMs but create new ones.   When you want to write new application(s) which want to use EBS database, there are couple of approaches you can think of Latest EBS 12.1.3 comes with APEX engine which is Oracle’s tool for quickly developing web UIs. Oracle E-Business Suite delivers a wide range of functionality to handle core areas of your business processing needs. However, there are situations where you want to extend your information systems beyond the range of Oracle E-Business Suite. Many times these necessary extensions are meant to handle unique industry conventions, specific customer requirements, or perhaps to offer some other competitive edge. Sometimes these change requests are simple enough, but other times more extensive customizations are needed. In these scenarios, Oracle Application Express, also known as Oracle APEX, provides an easy way to create supplemental applications that are easily integrated with your Oracle E-Business Suite and its data. Your new applications can either be stand-alone or fully integrated. You can use technologies like ADF to use independent applications just using EBS database.

Extensions in OAF Extensions in OAF Presentation Transcript

  • Extensions In Oracle Application Framework A Webinar
  • Agenda
    • Where do we need Extension ?
    • Things you need to know for doing Extension
    • How to Extend a
      • VO
      • AM
      • Controller
    • How Personalization play a role in Extension
    • Deploying your extensions
  • Brief on EBS
    • Installation
    • Configuration
    • Personalization
    • Extension
    • Customization
    • Deployment
  • Where do we need extensions ?
    • System does not meet your Business need
    • Your requirement cannot be satisfied by personalizations
  • Where do we need extensions ?
    • When the UI of the current system needs to be customized according to your needs
    • Extending the logic of the current system according to your business needs
  • What are the different terminologies needed to be known for extension
    • What is a page and a region
    • BC4J Components
      • Application Module (AM)
      • Entity Object (EO)
      • View Object (VO)
    • Controller (CO)
    • Personalizations
    • Analyzing a Page : About the page
  • What are the different terminologies needed to be known for extension
    • Example :
    • What should I do to add a column “Scaled Weight” which is different from the seeded “Weight” Column
      • Knowing your application and the application path
      • Finding the AM your going to deal with
      • And if there is a VO attached to the element, what is it
      • The CO handling the page’s or region’s events
      • Now get these class and XML files from the server
  • What are the different terminologies needed to be known for extension
    • Understand the application path
    • Knowing the Controller with respect to the item
    • Knowing the Root AM and also nested AM’s if available
    • Knowing the VO and the attribute associated with that item
    • Here we can also find all the AM’s, EO’s, VO’s, and CO’s that are used in this page in the section “Business Component References Details”
  • Extending View Object (VO) :
    • Make sure that the class files are present in the class path of your jDeveloper (otherwise you may experience a huge amount of errors on compilation)
    • The above images depicts the creation of a new View Object which will extend the seeded View Object
    Path of the seeded View Object
  • Extending View Object (VO) : Creation or updating attributes Updating SQL Statement List of Seeded and New Custom Attributes Generating Java Classes
  • Extending View Object (VO) :
    • Now for replacing the functionality of the seeded VO with the extended VO we require to,
    • Substitution
    • Jpximport
      • To reflect the substitutions into the MDS we call jpximport
    • Deploying extended VO files to the server
    • To check whether your substitution is successful, use listcustomizations function which is present under jdr_utils
      • Ex : jdr_utils.listcustomizations(’<path of the seeded VO>');
    Select the extended VO Select Seeded VO
  • Extending Controller (CO) :
    • Extend if only your need cannot be satisfied via personalization
    • A controller may be extended to perform some custom functionality or rendering the UI elements to satisfy your business logic and so on….
    • If oracle delivers a patch that modifies the code in original CO, yet your extension will still be upgrade safe, as your custom controller will continue to call current version of CO method via super()
    • Extending a Controller:
    Custom Region added to the seeded page, rendering(displaying) the textbox and performing the functionality depending on the selection
  • Extending Controller (CO) :
    • First knowing the controller you need to extend
      • May be a root controller or the particular region controller
    • Getting the class files from the server to you local machine
    • Create a new java class with respective name and path
    Path of the Controller to extend Making sure to call the super, so the seeded functionality remains intact
  • Extending Controller (CO) :
    • Rebuild and deploy your new class file to the server
    • Now via personalizations we need to reflect the extension
    • Navigate to the particular controller class in the personalization page hierarchy
    • You can view your extension via “About this page” link
    • Restart the middle tier (Bounce), to reflect the changes on the page
    Provide the extended controller path This will reflect your current CO been used
  • Extending Application Module (AM) :
    • Not recommended
    • Remember you cannot extend the root AM
    • Follows the similar steps as done for extension of a VO or a EO
    • 2 use cases
      • Custom VO
      • Adding new business logic
    • Following the previous steps as in Extending a VO or a EO, we would need to substitute the old AM with the extended one.
    • And import this jpx file to the system.
    Path of the seeded Application Module
  • Extending Application Module (AM) :
    • This is a Custom region added to satisfy the current business logic
    • The text written in the textbox is stored into a custom table
    • For this customization I have created a custom VO
    • This custom VO should be added to the AM
    • How will my customization survive an up gradation ?
    • Nested AM
      • Create a new AM, add this customized VO to this new AM
      • At runtime add the new AM to the root AM via the respective Controller
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) { super.processRequest(pageContext, webBean); OAApplicationModule rootAM = pageContext.getApplicationModule(webBean); OAApplicationModule nestedAM = (OAApplicationModule)rootAM.findApplicationModule(&quot;NegAM&quot;);if (nestedAM == null) nestedAM = (OAApplicationModule)rootAM.createApplicationModule(&quot;NegAM&quot;, &quot;xxiwarelogic.oracle.apps.pon.homepages.buying.server.NegAM&quot;);}
  • Extending Application Module (AM) :
    • Adding the VO to the seeded root AM at run time
    • We would need to extend the Controller, where we will add the code so that the VO is attached to the AM at runtime
    • Call of this code would add the custom VO to the seeded AM at run time
    private void processRequest (OAPageContext oapagecontext, OAWebBean oawebbean){ ResponseAMImpl am = getPageAM(oapagecontext, oawebbean); OAViewObject vo = (OAViewObject)am.findViewObject(&quot;xxCustomNonResponsiveVO&quot;); if(vo == null) { vo = (OAViewObject)am.createViewObject(&quot;xxCustomNonResponsiveVO&quot;,&quot;xxifms.oracle.apps.pon.response. creation.server. xxCustomNonResponsiveVO&quot;); } }
  • How Personalization play a role in Extension
    • OAF Personalizations means personalize the user interface (UI) of Oracle Self-Service Web Applications without modifying any underlying code
    • OA Framework extensibility is geared to enable customers to add new functionality and override or extend existing business logic
    • Why use OAF Personalization along with OAF Extension to meet the requirement ?
    • When adding a custom Region
    • Extending a Controller
    Region Path
  • Deploying your extensions
    • Deploying during development
    • Deploying from one instance to another
      • Configurations
      • Databases
      • Import Extended BC4J components and Pages
      • Deploy Java Classes
      • Export all Personalizations to your local machine and import the Personalizations to the destination machine
  • Brief on Customization
    • What is Customization
      • New pages and respective BC4J components
    • Various approaches to Customization
      • APEX ( EBS 12.1.3)
      • ADF (Application Development Framework)
  • Questions & Answers? Questions Answers
  • About iWareLogic:
    • iWare Logic is a company specializing in Oracle Technologies.
    • iWare Logic is an Oracle Gold Partner providing IT Services in areas of Core and Apps DBA, Oracle Business Intelligence, Oracle E-Business Suite, OAF, Siebel and APEX.
    • iWare Logic offers Application Development delivery with focus on application customizations, workflows, integrations, and data conversions.
    • We also provide skilled resources for on-site/off-shore projects for Oracle Enterprise Applications' Implementations and Support.
    • For more information, email us at [email_address]
    • E-mail – [email_address]
    • Website – www.iwarelogic.com