Announcement

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

    Cube Grid Not Responding if response time is more than 4 Min.

    I am use Smartgwt 3.0 Version.

    The Browser i am using is IE 8.



    dataSource.fetchData(criteria, new DSCallback() {
    @Override
    public void execute(DSResponse response,Object rawData,DSRequest request) {
    if(window!=null){
    window.destroy();
    }
    advancedCube = new CubeGrid();
    advancedCube.setAutoFetchData(true);
    if(SC.hasDrawing()) {
    advancedCube.setEnableCharting(true);
    }
    advancedCube.setValueProperty("value");
    advancedCube.setWidth100();
    advancedCube.setHeight100();
    advancedCube.setRowFacets("property1","property2","property3","property4");
    advancedCube.setColumnFacets("property5");
    advancedCube.setEmptyCellValue("0");
    advancedCube.setHideEmptyFacetValues(true);
    advancedCube.setData(response.getData());
    advancedCube.setCanHover(false);
    advancedCube.setShowCellContextMenus(true);
    advancedCube.setHoverHeight(20);
    advancedCube.setHoverWidth(150);
    advancedCube.setValueTitle("Count");
    advancedCube.setCanCollapseFacets(true);
    advancedCube.setCanMinimizeFacets(true);
    advancedCube.setAutoSelectValues(AutoSelectionModel.BOTH);
    advancedCube.setRowHeaderGridMode(true);
    advancedCube.setCanMoveFacets(true);
    }}, userRequest);

    #2
    In general, most browsers will abort the connection if the server takes more than 4 minutes to respond. A safer limit is two minutes, because intervening HTTP proxies and firewalls will sometimes sever connections that remain open this long. This is a fundamental web limitation and not something specific to SmartGWT.

    If you server is too slow for this, you should either poll the server to check for data being available, or use the SmartGWT Messaging module to deliver a real-time notification that data is available, then create the CubeGrid only once data is available.

    Comment

    Working...
    X