Aug 21, 2019

Throw Bundled Exception | OAF Page



  ArrayList bundle=new ArrayList();     //first we have to initialize the Array List

             
  if(empname.contains("@"))
                {
                bundle.add(new OABundleeption("Special character not allowed",OABundleeption.ERROR));
                }
  if("".equalsIgnoreCase(pageContext.getParameter("StartDate").trim()))
                {
                bundle.add(new OABundleeption("Start date shold not be null",OABundleeption.ERROR));
                }
  if(!bundle.isEmpty())
                {
                OABundleeption.raiseBundledOABundleeption(bundle);
                }
                }

No comments:

Post a Comment

Useful Workflow Commands

  WFLOAD apps/columbus789 0 Y DOWNLOAD APEXP_FINDEV.wft APEXP Locations: $PO_TOP/patch/115/import/US/porpocha.wft $PO_TOP/patch/115/import/U...