You are on page 1of 1

-------------------------------configuration name(dependent on application name) -------------------------public void processRequest(OAPageContext pageContext, OAWebBean webBean) { super.processRequest(pageContext, webBean); OAApplicationModule am =pageContext.getApplicationModule(webBean); if(pageContext.getSessionValue("lovsourceparam")!

=null) { String appName =pageContext.getSessionValue("lovsourceparam").toString() ; System.out.println("Application Name in CO is : "+appName ); pageContext.removeSessionValue("lovsourceparam"); Serializable[] param ={appName}; am.invokeMethod("initQuery",param); } else throw new OAException("find validate date"); } ------------------------------AM-------------------------------------------------------------------------public void initQuery(String appName) { System.out.println("Am in where condition"); XXHMconfigurationnameLOVVOImpl vo=getXXHMconfigurationnameLOVVO1(); vo.setWhereClause("APPLICATION_NAME='"+appName+"'"); }

You might also like