Announcement

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

    Problems with exportClientData and ListGrid summaries

    I have an application that was developed using SmartGWTPro 2.3. Some of the ListGrids use exportClientData to export to Excel and require the setExportHeader method. This was not working under Pro 2.3. Yesterday and today I've been trying to get this feature working using a SmartGWTEE build and the various recent builds show broken code for ListGrid summaries. If I have a ListGrid summary in the ListGrid and try exportClientData I get the following (in addition to no results on the client):
    15:22:04.884:MUP2:WARN:Log:findByKeys: passed null record
    15:22:04.893:MUP2:WARN:Log:findByKeys: passed null record
    15:22:04.902:MUP2:WARN:Log:Error:
    ''undefined' is null or not an object'
    in http://localhost:8080/eac20/eac/sc/modules/ISC_Grids.js?isc_version=7.0.js
    at line 1448
    ListGrid.getRawValue(_1=>undef, _2=>"acSerial")
    Canvas.getStandaloneFieldValue(_1=>undef, _2=>"acSerial", _3=>false)
    Canvas.getExportFieldValue(_1=>undef, _2=>"acSerial", _3=>0)
    Class.invokeSuper(_1=>null, _2=>"getExportFieldValue", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
    Class.Super(_1=>"getExportFieldValue", _2=>Obj{length:3}, _3=>undef)
    ListGrid.getExportFieldValue(_1=>undef, _2=>"acSerial", _3=>0)
    Canvas.getRecordExportObject(_1=>undef, _2=>Array[14], _3=>undef, _4=>undef, _5=>undef, _6=>undef)
    Canvas.getClientExportDataChunk(_1=>Obj)
    Canvas.getClientExportData(_1=>Obj, _2=>"isc_ListGrid_1.exportClientDataReply(dat..."[50])
    Canvas.exportClientData(_1=>Obj)
    StatefulCanvas.handleActivate(_1=>Obj, _2=>undef)
    StatefulCanvas.handleClick(_1=>Obj, _2=>undef)
    [c]EventHandler.bubbleEvent(_1=>[ImgButton ID:isc_ImgButton_1], _2=>"click", _3=>undef, _4=>undef)
    [c]EventHandler.handleClick(_1=>[ImgButton ID:isc_ImgButton_1], _2=>undef)
    [c]EventHandler.$k5(_1=>Obj{type:error}, _2=>undef)
    [c]EventHandler.handleMouseUp(_1=>Obj{type:error}, _2=>undef)
    [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseUp(), _2=>Obj{type:error})
    anonymous(event=>undef)
    "if (!isc.Browser.isIE && event == null) return;var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);return returnVal;"

    I'm using GWT 2.1.1 and this is the info from the Developer's Console:
    SmartClient Version: SC_SNAPSHOT-2011-04-19/EVAL Deployment (expires 2011.06.18_17.57.55) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
    The build was a nightly build from March 30. This build had fewer problems than the build for April 19 and another April build. Those builds would not display ListGrids that had showGridSummary set to true.

    If I set showGridSummary to false, the export works correctly. The ListGrids use an extension of BasicDataSource. Everything except the export headers was working prior to trying the 2.5 release. I'm sure you can imagine the frustration of upgrading to fix a problem only to have more serioius problems as a result. I'm planning on purchasing my own SmartGWTPro license (the SmartGWTPro 2.3 license belongs to the company I'm contracting for) - are these issues known to be fixed (or not exist) in the latest available Pro release?

    #2
    Using SmartGWT Pro 2.4 has resolved most of the issues with exporting to .csv and using ListGrid summaries. I switched from exportData to exportClientData for some reports in order to save the formatting. The user was particularly annoyed at seeing date time formats where a report only showed the date. Now, using exportClientData with a report that has a grid summary row with currency values, the summary row is still raw data and not formatted. This isn't a huge problem, but it does make my work look unfinished with an apparent lack of attention to detail. Is there a workaround for this? That is, a way to ensure that the grid summaries maintain formatting on export.

    Comment


      #3
      Hi ecadams,

      Just a note that we were able to reproduce the error you reported (thanks for the stack trace) and it's being looked at.

      Comment


        #4
        This issue has now been resolved in our mainline code-base. Please try the latest nightly build and let us know if you continue to see this issue.

        Thanks
        Isomorphic Software

        Comment


          #5
          We are running into the same issue (If setShowGridSummary() is set to true on the ListGrid, it does not export the grid data correctly ).

          From your previous post, it looks like this issue is fixed. I have the power smart gwt license and would like to know the name of the jar file that needs to be updated at our end ?

          Thanks,
          Uma

          Comment


            #6
            Don't try to update individual .jars, use the documented installation procedure each time.

            Comment

            Working...
            X