Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

OA Framework - All Articles
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

In this article, I would like to explain the different levels at which defaulting can take place in OA Framework.
There are instances when you try to default a value into a field in OA Framework page,
but you may notice that defaulting just does not take effect.
Hence it becomes important to understand the defaulting concept/architecture in OA Framework.
In a nutshell, there are at least 8 levels at which defaults can take place into an OA Framework screen.

 

Many people state that “we must never extend a controller”. But I find hard to be convinced by that statement.
There are various examples where Controller extension becomes mandatory. Sure there may be risks in extending
controller, but the truth is that it could be SAFER to extend a controller than extending a
View Object [ in cases where a view object being extended was built by Oracle in Expert Mode].
In this example, you will see yet another example of scenarios where controller extension becomes useful.


Read this link to see how you can keep your controller extensions upgrade safe.
Article that discusses keeping your controller extensions safe
Oracle lets you extend the controller, and that too at all admin-personalizable levels.


Now, lets take a classic business scenario
You wish to override the default value in some field in an OA Framework Page.
However you notice that default value specified in Personalization is not working.


To explain the reason, I would like to explain the scenarios under which this can happen.
Lets see the possible places where you can specify a default value into a field.


First, lets have a look at how data from a table becomes visible in the screen.
There are various layers through which data travels before becoming visible to the end user in screen.


This picture will explain the data flow, assuming the ViewObject of the screen is based on Entity Object.
Image


Above what you see is a very simplistic view of how data travels from a table to screen.

However, in reality, the total list of layers is shown below, which primarily includes the SubLayers within the page.
Following factors influence which value becomes visible on a page
  • How the original page was built
  • What personalizations have been done to the page
  • If anything in processRequest method controller class influences what you see on the page


Hence, the real number of layers, where data can be default, when a new record is created is shown below….
Image


As you can see above, controller has the final say.
After controller, the next preference goes to Personalization.
Also, it is important to note that Defaulting at Entity Object level gets the least priority.


You will also notice that there are 5 possible levels at which defaults can take place, one of which is Personalization.
However, personalizations can be applied at various levels too, hence further increasing the number of layers at which defaults take place.



So, lets take some Q&A
Question:- I wish to default a value into a a field, in all the screens that derive their data from a same <table>.<column>
Answer :- In this case, you need to extend Entity Object.
However please note that, you might have to move your default logic up in the layer, in case Entity Object level defaulting does not take effect.
However, extension of Entity Object is the preferred approach in this case.


Question:- I notice that Oracle’s default kick off from View Object attribute level. I need to overwrite that default with my own default
Answer :- In this case, you can extend that view object. Alternately, you can traverse up the ladder, and do your defaulting in Personalization itself.
Note:- To choose between personalization and VO Extension, first find out if your custom defaulting should work across all the screens
based on this view object. If your custom default should work against merely one screen, then prefer using personalization.


Question:- I have defaulted value into a field using personalization. But it is not taking effect. What should I do, in order to get my custom defaulting logic to work?
Answer:- In this case, you will discover that Oracle’s default logic resides within the Controller against that page.
Hence you will have to extend that Controller, so as to override your custom defaulting logic.
Alternate approach is to find out how Oracle’s default works i,e, if Oracle’s controller uses a ViewObject to fetch
default value, then you can extend that VO itself. However, VO extension will impact all the references to that VO,
hence CO Extension is a safer and much solid approach in this case.

Anil Passi

Comments   

0 #1 Ajay Kunde 2008-03-12 17:49
Hi Anil,

Thank you for sharing the information about OA framework. It helps a lot to learn new things from your site.
Keep writing and share the things.
Regards ,
Ajay Kunde
Quote
0 #2 Chris 2008-03-13 04:13
Hello:

I am a chartered accountant and want to become an oracle apps consultant. I just want to kindly ask where one can start to become an apps consultant. I have no programming background although I coded an accounts receivable program using dBase III (don't laugh now, it was during DOS days) long time ago. However I am internet savvy and above average computer skils. Please advise.

Thanks a million
Quote
0 #3 Chris 2008-03-13 04:19
I forgot to ask. Can one download Oracle e-business suite? I once downloaded the Oracle 10g from oracle website but I cannot find ebusiness suite download. Or is there any downloads for training purposes from Oracle website.
Quote
0 #4 Anil Passi 2008-03-15 10:43
To download EBS, go to delivery.oracle .com

Thanks,
A nil
Quote
0 #5 Rinkesh 2008-03-18 17:23
This link is not opening....what to do...i want to practice OA framework..for that i need apps application database...how to download for windows vista.

thanks
Quote
0 #6 Rajkiran Bingi-1 2008-04-30 14:03
Rinkesh,
The link for downloading whole apps is http://edelivery.oracle.com/.
Select your country as United States, If you select as other countries, you will have to wait till you get the download link from the oracle site.

regards,
Quote
0 #7 vinod123 2010-03-26 16:25
I need a suggestion as to what is the best and easy way to set a default in OA Framework. Can it be done by Forms Personalization ? I need to set a Default of Expenditure Item Date to NULL in "Requisition Checkout - COPY Function". Please let me know.

Thanks,
Kumar
Quote
0 #8 George 2014-12-30 15:47
Anil: you rock dude! I have been in the EBS tech area for 18 years now and it's an ocean so much to discover ! Yr posts are very useful and very much appreciated ! Thank you ! -George
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Related Items

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner