Anil's Blog is Best Viewed on GOOGLE CHROME

Thursday, June 16, 2011

Bypassing Oracle Home Page



A new feature is introduced after ATG RUP7 patch. Although it's a small thing however sometimes it really help us hence thought of sharing to all of us.


The Preferences Page includes the ability to set a default start page other than the E-Business Suite Home Page, based on responsibility, and the ability to set separate session and default language.








Hence when a specific user will login into Oracle Applications then the page will redirect to that specific page which was selected through Preferences Link.

 



Thanks
--Anil

Saturday, May 7, 2011

How to add ViewAttribute in ViewObject (VO) dynamically

We were having a requirement to add a column in an existing table region and client wants to show value in it based upon some calculation with other view attribute value.

At the first sight we thought of extending the ViewObject and adding a transient attribute.But that seems to be very complex process as this ViewObject is based on 5 EntityObjects.

So we thought of some workaround and come to a solution by adding a ViewAttribute in ViewObect dynamically.Here is the approach …

We have extended the Controller and add a ViewAttribute dynamically in the ViewObject and created a MessageStyledText bean through personalization.


public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
    OAApplicationModule am =   (OAApplicationModule)pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("AllocationsVO1");
   if (vo != null)
   {
   vo.addDynamicAttribute("XXSalary"); //Adding ViewAttribute to VO
    }
     vo.reset();
     vo.next();

     //Starting do-while for setting value in all the table row...
     do
     {
      //Doing some calculation...  
      int xxnumber =  Integer.parseInt(vo.getCurrentRow().getAttribute("Empno").toString());      
      double d  = xxnumber*(17.5/100)/2;
      String aString = Double.toString(d);
      
      //Setting the calculated derived value in the newly created VO Attribute 
      vo.getCurrentRow().setAttribute("XXSalary", aString);
      vo.next();
     }
      while (vo.hasNext());
       vo.first();

//Finally adding ViewAttribute and ViewInstance with MessageTextInput bean which we have created through personalization 
  OAMessageTextInputBean mst = (OAMessageTextInputBean)webBean.findChildRecursive("Salary");
    mst.setViewUsageName("AllocationsVO1");
    mst.setViewAttributeName("XXSalary");
    mst.setReadOnly(true);

}

Thanks
--Anil

Sunday, April 24, 2011

Integration of Oracle E-Business Suite and Oracle Application Development Framework (ADF)

This document covers Frequently Asked Questions for the combination of Oracle Application Development Framework (ADF) with Oracle E-Business Suite (EBS).

You can view this document using MOS Note id  Document 1296491.1 


Thanks
--Anil