Reset OAF page with reset button

Scenario: Reset the OAF page to delete the all the user entered values in the page

  • Call the setRedirectURL method to redirect same page again

      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {

         super.processFormRequest(pageContext, webBean);

         if(pageContext.getParameter("reset") != null)

         {

         pageContext.setRedirectURL("OA.jsp?page=/xx/oracle/apps/xx/CustmomerUI/webui/CustomerSearchPG&retainAM=N&banner=home", false, OAWebBeanConstants.ADD_BREAD_CRUMB_NO) ;

     }

}

*/

No comments:

Post a Comment