Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    AutoFetchData with Criteria??

    Can we use cubegrid.setAutoFetchData(true) along with sending a criteria?

    If I use, cubegrid.setAutoFetchData(true) and after setting the DataSource and facets, facetvalues to the cube, if I use cubegrid.fetchData(criteria), this is being ignored.

    When I tried to dispaly my DSRequest.getCriteria(), it has the cube's facets. I tried setting cubegrid.setCriteria(criteria), even then I am unable to get the field in criteria on to server side.
    Last edited by Koripella; 20 Sep 2011, 06:10.

    #2
    hi Koripella,

    try it with setInitialCriteria().
    Regards,
    Timo

    Comment


      #3
      Firstly, thanks that you replied.

      setInitialCriteria seems to be the right method, but even if I use this, there is no change in my results. I can see only the facets as my Criteria on the server side.

      The following is the code snippet

      cube.setAutoFechData(true);

      Criteria criteria = new Criteria();
      criteria.setAttribute("businessDate", businessDate.getValueAsDate());
      cube.setInitialCriteria(criteria);

      where businessDate is a DateItem field. Do you have any suggestions?

      Comment

      Working...
      X