3 Replies Latest reply: Dec 24, 2012 4:05 AM by codigoadf RSS

    Re initialize fragment

    974835
      Hi,

      I have a bounded task flow with 2 fragment views.
      In the first view I have a button that on click navigates to the second view (fragment).
      I would like to re initialize the second view (fragment) each time.
      how could I implement it?

      Thanks
        • 1. Re: Re initialize fragment
          codigoadf
          Hi,
          What do you mean with re initialize the second view...re execute the query? clean the search?
          • 2. Re: Re initialize fragment
            974835
            This view includes af:query and af:table with the results of the query.
            I would like them to be clean each time I navigate to the view.
            as for now it keeps the last results.
            • 3. Re: Re initialize fragment
              codigoadf
              Hi,
              reset a VC and executequery in the button for return or exit of view2
                      // this code is in a ViewImpl context
                      ViewCriteria _vcriteria = getViewCriteria("yourViewCriteria");
                      resetCriteria(_vcriteria);
                      executeQuery();
              you can make this method in the viewImpl and public through client interface. Then you can use this method as method call between view1 and view2