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:
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();
}
}
Comment