Announcement

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

    CubeGrid: tree facet cannot be expanded if setHideEmptyFacetValues is true

    The version of smartGwt: smartgwtpower-3.1d-2012-11-19(nightly build)+analytics module
    The browser is firefox

    In the cubeGrid, if I set hideEmptyFacetValues to true, after I collapse a tree facet, it cannot be expanded again. This problem disappears if hideEmptyFacetValues is set to false.

    I create a simple test case whose data is copied from the exemple "Basic CubeGrid" in the Showcase:

    Code:
    public class BasicCubeSample implements EntryPoint {  
      
        public void onModuleLoad() {  
            Canvas topCanvas=null;  
            if(SC.hasAnalytics()) {  
                CubeGrid cubeGrid = new CubeGrid();  
               
                //Use the data from the exemple "Basic CubeGrid" in the Showcase
                cubeGrid.setData(ProductRevenueData.getData());  
      
                cubeGrid.setWidth100();  
                cubeGrid.setHeight100();  
                cubeGrid.setShowCellContextMenus(true);  
    
                //Here set HideEmptyFacetValues to true
                cubeGrid.setHideEmptyFacetValues(true);  
                cubeGrid.setHideEmptyAxis(Axis.ROW);
             
     
                //Define the column facet
                Facet month = new Facet("month","month");
                month.setValues(new FacetValue("January","January"), new FacetValue("February","February"), new FacetValue("March","March"));
                
                //Define the row facet which is a tree, suppose that "Pens" is the summary node, and "Chairs", "Monitors" as its details nodes
                Facet product = new Facet("product","product");
                product.setIsTree(true);
                product.setValues(new FacetValue("Pens","Pens"), new FacetValue("Chairs","Chairs","Pens"),new FacetValue("Monitors","Monitors","Pens"));
    
                cubeGrid.setFacets(product, month);
    
                cubeGrid.setColumnFacets("month");
                cubeGrid.setRowFacets("product");
                
                topCanvas = cubeGrid;  
            } else {  
                HTMLFlow htmlFlow = new HTMLFlow("<div class='explorerCheckErrorMessage'><p>This example is disabled in this SDK because it requires the optional " +  
                "<a href=\"http://www.smartclient.com/product/index.jsp\" target=\"_blank\">Analytics module</a>.</p>" +  
                "<p>Click <a href=\"http://www.smartclient.com/smartgwtee/showcase/#cube-basic\" target=\"\">here</a> to see this example on smartclient.com</p></div>");  
                htmlFlow.setWidth100();  
                topCanvas = htmlFlow;  
            }  
            topCanvas.draw();  
        }  
      
    }

    #2
    Is there any news? I am always blocked by this bug.

    Comment


      #3
      I tried to add canMoveFacets:true in the online example: http://www.smartclient.com/#analytics today.Under my browser iceweasel (firefox) 16.0.2, the collapse/expand function still doesn't work correctly.
      However under chorme, there is no such problem.
      So the bug is linked to the browser. I hope that the smartgwt team can repondre soon, my project is always blocked by this problem.

      Comment


        #4
        I am sorry, I made a mistake, actually I mean "I tried to add <b>hideEmptyFacetValues</b>:true in the online example: http://www.smartclient.com/#analytics today."

        Comment

        Working...
        X