3 Replies Latest reply: Aug 16, 2013 5:30 PM by Timo Hahn RSS

    Viewcriteria question

    mhbbb

      I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G

      In my pages I use JSF & Facelet

       

      Hi In my application module I have a method that query some view object view criteria like this:

       

              ViewObjectImpl someVW = getRefPathwayReqNameViewQ1();

       

       

              VariableValueManager someVVM = someVW.ensureVariableManager();

       

       

              someVVM.clearVariables();

       

       

              someVVM.setVariableValue("refoid", refOid);

       

       

              ViewCriteria someVC = someVW.getViewCriteria("searchById");

       

       

              someVW.applyViewCriteria(someVC);

       

       

              someVW.executeQuery();

       

      My question :

      is Viewcriteria API  enough clever to clear current viewcriteria if I use this view object and try to query with another viewcriteria?

      or every time I need to remove view criteria  using removeApplyviewcriteria?

       

      Thanks