Partial Page Rendering

Partial Page Rendering

--========================================================

Partial_Page_Rendering

VO:- PPR_PAGE_VO
AM :- PPR_PAGE_AM

Page:- PPR_PAGE_PG
CO :- PPR_PAGE_CO

--=====================================================
Transient  Attributes :-
1
Name = RowKey
Type = Number
Updateable = Always
Key Attribute = (Checked)
 2
Name = Item2Render
Type = Boolean
Updateable = Always

Column 1 :-
FIREPratialAction :- Item1_Change

Column 2:- SPEL Syntax:- rendered property = ${oa.PPR_PAGE_VO1.Item2Render}

--=======================  CO ==========================


import oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;


  public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
      PPR_PAGE_AMImpl am = (PPR_PAGE_AMImpl)pageContext.getApplicationModule(webBean);
       
       am.invokeMethod("PageLoad_PPR_Action");
  }

 
--===========================  AM  ---=============================

import oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;

    public void PageLoad_PPR_Action()
    {
     OAViewObject vo = (OAViewObject)findViewObject("PPR_PAGE_VO1");
Number val = 1;
     if (vo != null)
     {
      if (vo.getFetchedRowCount() == 0)
      {
       vo.setMaxFetchSize(0);
       vo.executeQuery();
       vo.insertRow(vo.createRow());
       OARow row = (OARow)vo.first();
         
       row.setAttribute("RowKey", val);
       row.setAttribute("Item2Render", Boolean.FALSE); 
      }
     }
    } 

--===========================   CO  - PFR  ======================================
import oracle.apps.fnd.framework.OARow;
import oracle.apps.fnd.framework.OAViewObject;

   public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
   {
    super.processFormRequest(pageContext, webBean);
       
    PPR_PAGE_AMImpl am = (PPR_PAGE_AMImpl)pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("PPR_PAGE_VO1");   
    OARow row = (OARow)vo.getCurrentRow();
   
    if ("Change_Rendered_Property".equals(pageContext.getParameter(EVENT_PARAM)))
    {
     if (pageContext.getParameter("item1").equals(""))
     {
      row.setAttribute("Item2Render", Boolean.FALSE);
     }
     else
     {
      row.setAttribute("Item2Render", Boolean.TRUE);
     }
    }
   }


Comments

Popular posts from this blog

E-Text Report In Fusion | Types of E-Text reports

Supplier API's

How to pass default Parameter in cursor