Execute VO - View Object in Process Request in OAF



We need to use process request method in controller file to display search results whenever page is opened.


   public void processRequest(OAPageContext pageContext, OAWebBean webBean)

  {

    super.processRequest(pageContext, webBean);

      OAApplicationModule customerTrxAM = pageContext.getApplicationModule(webBean);

      OAViewObject customerTrxvo = (OAViewObject)customerTrxAM.findViewObject("CustomerTrxsVO1");

        customerTrxvo.reset();

        customerTrxvo.clearCache();

        customerTrxvo.setMaxFetchSize(-1);

        customerTrxvo.executeQuery(); 

  }

*/

No comments:

Post a Comment