2 Replies Latest reply: Mar 12, 2014 6:09 AM by 941b82a3-0df7-4618-b9fa-b85491f4d0bc RSS

    Filtering ResultsList query

    941b82a3-0df7-4618-b9fa-b85491f4d0bc

      I want to filter by a certain dimension the request I pass to my ResultsList, but I can't filter the whole request.

      It is my understanding that the best way to do that would be to do a custom Handler, extending from ResultsListHandler and overriding the preprocess method, but I can't get it to work.

       

      My code looks like this:

       

      public class AdviceResultsListHandler extends ResultsListHandler {

       

          @Override

          public void preprocess(ContentItem pContentItem)

      throws CartridgeHandlerException{

       

      ResultsListConfig config = getCartridgeConfig(pContentItem);

      createMdexRequest(config, getNavigationState().putParameter("N", "4294778544"));

      super.preprocess(pContentItem);

          }

      }

       

      Any help would be greatly appreciated.