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?
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?
Comment