Thursday, 18 May 2017

Clear And Cancel Buttons

Handling on Clear Button:
Code for CO

Take the Item style to button and Action type fire action and event clear

if("clear".equals(pageContext.getParameter(EVENT_PARAM))){

OAMessageLovInputBean OAitem=(OAMessageLovInputBean)webBean.findChildRecursive("ItemName");

 OAitem.setValue(pageContext,null);
             
OAMessageTextInputBean omtb = (OAMessageTextInputBean)webBean.findChildRecursive("Quantaty");

omtb.setValue(pageContext,null);
             
 }
  
Cancel button:

Code for Co:

 using url and passing parameter to get main page

  if ("Cancel".equals(pageContext.getParameter(EVENT_PARAM))){
         HashMap map = new HashMap();
         String pProcessId = pageContext.getParameter("PrcId");
         map.put("rcId", ProcessId);
         pageContext.setForwardURL("OA.jsp? page=/xxxx/oracle/apps/fnd/test/webui/namePG",
                                                  null,
                                                  OAWebBeanConstants.KEEP_MENU_CONTEXT,
                                                  null,
                                                  map,
                                                  false,
                                                  OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                                                  OAWebBeanConstants.IGNORE_MESSAGES); 
                     }


No comments:

Post a Comment

27-03-2019

                                                                  Apex Project Creation 1. Create new project and select desktop applicat...