欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

Java实现的可编辑搜索/订制搜索代码控制器,订制搜索代码, // In the c

来源: javaer 分享于  点击 47772 次 点评:185

Java实现的可编辑搜索/订制搜索代码控制器,订制搜索代码, // In the c


 // In the controller  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)  {    super.processFormRequest(webBean);      ForumsAMImpl am1 = (ForumsAMImpl)pageContext.getApplicationModule(webBean);      if(pageContext.getParameter("submit") != null)      {          pageContext.writeDiagnostics("Anil", "Calling Execute Method ", 1);          am1.ExecuteQuery(pageContext, webBean);      }}  OAapplicationModule am = (*OAapplicationModule* )oapagecontext.getApplicationModule(oawebbean); //displaying oracle.apps.icx.por.req.server.RequisitionAMImploapagecontext.writeDiagnostics(this,"The Root AM is : " + am.toString(),6); // Returning NullOAApplicationModule lovAM = (OAApplicationModule)am.findApplicationModule("RequisitionLovAM"); OAViewObjectImpl vo = (OAViewObjectImpl)lovAM.findViewObject("ReqSupplierVO"); String seededQuery = vo.getQuery();oapagecontext.writeDiagnostics(this,"Seeded Query for ReqSupplierVO is "+ seededQuery,6);// here i m writing my new query.String customQuery = "new_query" // setting my custom query.vo.setQuery(customQuery); oapagecontext.writeDiagnostics(this,"Custom Query for the ReqSupplierVO is "+ vo.getQuery(),6);
相关栏目:

用户点评