public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean);
/* The below code line is used to initialize the application module */
OAApplicationModule am=(OAApplicationModule)pageContext.getApplicationModule(webBean);
/* The below code line is used to initialize VO*/
OAViewObject vo=(OAViewObject)am.findViewObject("DataDisplayVO1");
/* DataDisplayVO1 is the instance name in AM which is the original name of the VO */
if(pageContext.getParameter("Go")!=null)
{
vo.setWhereClause(null);
vo.setWhereClause("1=1");
vo.executeQuery();
}
/*To clear the data form the table region */
if(pageContext.getParameter("Clear")!=null)
{
vo.setWhereClause(null);
vo.setWhereClause("1=2");
vo.executeQuery();
}
}
No comments:
Post a Comment