• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql

OAF Miscellaneous

Types of Pages in OA Framework

October 27, 2012 by techhoneyadmin

Well this is a question that can be asked in any of the interviews and the answer that you can give for this question will be that there are two types of pages in OAF.

1. Seeded Pages
2. Custom Pages

Seeded Pages: All the OAF pages that come with the Oracle Application e-business suite are called seeded pages, these pages perform a particular business operation and hence come with the required business logic implemented in them.

Also seeded pages can be modified and the process of modification can be called as
a. Personalization
b. Customization

The process of changing a seeded page is called personalization when we are personalizing the page e.g. we are changing the label of a text box from “Employee Name” to “Name of Employee” or when we add a new item to the seeded page e.g. we are adding a new OAMessageTextInputBean to the seeded page. Personalization has got its own limitations e.g. we can add an item to the seeded page but we cannot and any business logic to the newly added item.

The process of changing a seeded page is called customization when we are changing the underlying business logic of the OA Framework page. For doing customization on a seeded page one has to be very careful. By doing customization we can add any of the required business logic to a seeded OA Framework page. To do customization we need to take the controller file attached with the OAF page (this file will be present in .class format in server) then we need to decompile the file and make necessary changes. Also remember that all the customizations done of a seeded OAF page will vanish once a patch or upgrade has been applied to the oracle apps instance. In order to save the customization work I suggest that you should create a copy of the original controller file with some name (say xxTrialPGCO) and then place the new file in the server. Once you put the new controller compiled file in the server, using personalization change the controller of the page from original controller file to xxTrialPGCO and save the personalization to a flat file.

Custom Pages: All the pages that are developed from scratch are called custom pages or bolt on pages. A page or a group of pages that perform a complete business operation is commonly called a Bolt-On Component or Custom Component. In order to create a custom page the developer should have clearly understood the MD50 and even the MD70 documents.

That’s all for this post.
Take Care

Filed Under: OAF Miscellaneous Tagged With: oa framework page types, oaf page types, pages in oa framework, pages in oaf, types of pages in oa framework, types of pages in oaf

Testing OA Framework Applications

October 27, 2012 by techhoneyadmin

It’s always better to test the work that we have done before we submit the same to our senior level in our organization.
The oracle apps framework supports developer to test the application that he/she has created, there are a number of modes in which a developer can test his/her work.

The various number of test modes that OAF offers are
1. Developer test mode
2. Back Button test mode
3. Passivation test mode
4. Connection test mode

Before we start testing our work we should make sure that the FND:Diagnostics profile value is set to “YES” for our development environment so that we have the access to the error stack directly in our page whenever any unexpected error occurs. If the value for the FND:Diagnostics profile is set to “NO” then a generic error message will be displayed on the OAF page with no access to the error stack. While running the OA Framework pages in JDeveloper, enabling the Developer Test Mode, ensures that the developer will see a detailed error message if an exception is met.

Now, let’s discuss Developer test mode in detail.

1. Developer Test Mode: The developer test mode will check the code compliance with numerous coding standards.

Enabling the Developer Test Mode: Enabling of the Developer Test Mode can be done in 3 ways

a.Set the cookie value in test.jsp file e.g. setting the OADeveloperTestMode to 1 will ensure that the Developer Test Mode is on and the developer will be able to see the detailed error messages for unexpected exceptions. Whereas the 0 value for the OADeveloperTestMode ensures that the OADeveloperTestMode is turned off.

b.Set the FND:Developer Mode (FND_DEVELOPER_MODE) profile option mode to “YES”.

c.For Jdeveloper just shuttle the OADeveloperTestMode option from the list of Avaliable Options to Selected Options in the run options page in Project Settings.

To check if the OADeveloperTestMode is turned on or not you can call OAPageContext.isDeveloperTestMode, this returns 1 if the mode is on else 0.

I will discuss other test modes in next posts.
Till then
Keep Learning

Filed Under: OAF Miscellaneous Tagged With: test modes in oa framework, test modes in oaf, test oa framework page, test oaf page, testing modes in oa framework, testing modes in oaf, testing oa framework page, testing OAF page

How to Disable Submit Button in OA Framework?

October 27, 2012 by techhoneyadmin

Submit button is a very important component of every OAF page and there often arises a situation where an OA Framework technical personnel need to disable (not hide) OA Framework Submit Button dynamically.

We will learn today how to disable OA Framework Submit Button at runtime

Before we begin I assume that you have an OAF page (xxTrialPG) and a controller (xxTrialCO). Also I assume that you have created a submit button bean OASubmitButtonBean(xxTrialSubmitButton)

 

Let’s take this in steps for easy understanding.

Step 1: Import the OASubmitButtonBean bean in your controller xxTrialCO

import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean

 

Step 2: Create a handle or reference of the OASubmitButtonBean bean in controller

OASubmitButtonBean xxTrialSubmitButtonHandle = (OASubmitButtonBean) webBean.findChildRecursive(“xxTrialSubmitButton”);

 

Step 3: Now using the xxTrialSubmitButtonHandle handle created in step 2 we can disable the xxTrialSubmitButton

xxTrialSubmitButtonHandle.setDisabled(true);

 

And it’s done.
Thanks for Reading.

Filed Under: Items, OAF Miscellaneous Tagged With: Disable Submit Button, Disable Submit Button dynamically, How to Disable Submit Button, how to Disable Submit Button at runtime, how to Disable Submit Button dynamically in OAF, OA Framework Disable Submit Button, OAF Disable Submit Button, OASubmitButtonBean

How to handle the click of Submit Button?

October 27, 2012 by techhoneyadmin

Submit button is a very important component of every OAF page and there often arises a situation where an OA Framework technical personnel need to handle the click of an OA Framework Submit Button dynamically.

We will learn today how to handle the click of Submit Button using OA framework code.

Before we begin I assume that you have an OAF page (xxTrialPG) and a controller (xxTrialCO). Also I assume that you have created a submit button bean OASubmitButtonBean(xxTrialSubmitButton)

 

Let’s take this in steps for easy understanding.

Step 1: Import the OASubmitButtonBean bean in your controller xxTrialCO

import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean

 

Note: The below code has to be written in the ProcessFormRequest method of the controller

Step 2: Create a handle or reference of the OASubmitButtonBean bean in controller

OASubmitButtonBean xxTrialSubmitButtonHandle = (OASubmitButtonBean) webBean.findChildRecursive(“xxTrialSubmitButton”);

 

Step 3: Now using the xxTrialSubmitButtonHandle handle created in step 2 we can capture the click of xxTrialSubmitButton

if(pageContext.getParameter(xxTrialSubmitButtonHandle!= null)

{
// perform required steps
}

 

And that’s it.
Thanks for Reading.

Filed Under: Items, OAF Miscellaneous Tagged With: button click event oaf page, Click of Submit Button, Click of Submit Button dynamically, How to capture Click of Submit Button, how to capture Click of Submit Button at runtime, how to capture Click of Submit Button dynamically in OAF, OA Framework Click of Submit Button, oaf check button press, OAF Click of Submit Button, OASubmitButtonBean

How to handle null value in OA Framework?

October 27, 2012 by techhoneyadmin

Well we may say that null means no value, but then on the other hand, each and every technical personnel needs to handle null value in their code, irrespective of the language that is used for coding purpose, and OAF is no exception.
So, how do we check a null value in OA framework? Well that’s very easy; just have a look at the following code.
Before we begin I assume that you have an OAF page (xxTrialPG) and a controller (xxTrialCO). Also I assume that you have created a string xxTrialString on which we will have the null value validation.

if(xxTrialString==null)
{
// your business logic goes here
}

Or you can also write

if(xxTrialString!==null)
{
// your business logic goes here
}


And it is handled.. so simple isn’t it.
Thanks for Reading.

Filed Under: OAF Miscellaneous Tagged With: checking for null in OAF, How to check null in oaf, How to check null value in oa framework, How to check null value in oaf

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Go to Next Page »

Copyright © 2025 · Parallax Pro on Genesis Framework · WordPress · Log in