Hi,
I am trying to get the batch uploader to work as shown in the EE showcase.
However, albeit I set the
, the first time the form is shown SmartGWT instantly tries to call the IDA DS (which is not appropriately configured as I did not need it so far) resulting in the following error:
RPC request from the Dev console is
If afterwards a file is selected and the upload button pressed the error reads
The RPC tab in the dev console in this case shows
So does it mean it is impossible to use the BatchUploader with datasources other than the built-in ones?
If not, what am I doing wrong here?
Related question: Is it possible to embed the batch upload form in a ToolStrip or change its layout (upload and submit button arrangement)?
SmartGWT with SmartClient Version: SNAPSHOT_v8.3d_2012-08-27/PowerEdition Deployment (built 2012-08-27)
FF 14,01
Thanks
I am trying to get the batch uploader to work as shown in the EE showcase.
However, albeit I set the
Code:
batchUploader.setUploadDataSource(MyCustomRPCDataSource.getInstance());
Code:
17:40:46.292:XRP0:WARN:RPCManager:Transport error - HTTP code: 404 for URL: http://localhost:8080/myApplication/sc/IDACall, response: {operationId: "batchUpload_loadSchema", clientContext: undef, context: Obj, transactionNum: 2, httpResponseCode: 404, httpResponseText: "<html><head><title>Apache Tomcat/7.0.27 ..."[1123], xmlHttpRequest: [object XMLHttpRequest], transport: "xmlHttpRequest", status: -90, clientOnly: undef, httpHeaders: Obj, isStructured: true, callbackArgs: null, results: Obj, data: "Transport error - HTTP code: 404 for URL..."[120]}
Code:
{ "actionURL":"http://localhost:8080/myApplication/sc/IDACall", "showPrompt":true, "prompt":"loading datasource 'batchUpload'", "transport":"xmlHttpRequest", "promptStyle":"cursor", "callback":"isc.DS.$37y(rpcResponse,data,rpcRequest)", "data":{ "appID":"builtinApplication", "operation":"batchUpload_loadSchema", "values":{ } } }
Code:
17:38:43.214:MUP6:WARN:Log:TypeError: isc.DataSource.getDataSource(this.dataSource) is null Stack from error.stack: unnamed() @ myApplication/sc/modules/ISC_DataBinding.js:1813 unnamed() @ myApplication/sc/modules/ISC_DataBinding.js:1803 unnamed(isc_BatchUploader_uploa) @ myApplication/sc/modules/ISC_DataBinding.js:3958 unnamed(anonymou) @ myApplication/sc/modules/ISC_Core.js:62 unnamed(isc_StatefulCanvas_handleActivat) @ myApplication/sc/modules/ISC_Foundation.js:337 unnamed(isc_StatefulCanvas_handleClic) @ myApplication/sc/modules/ISC_Foundation.js:339 unnamed(isc_c_EventHandler_bubbleEven) @ myApplication/sc/modules/ISC_Core.js:1795 unnamed(isc_c_EventHandler_handleClic) @ myApplication/sc/modules/ISC_Core.js:1623 unnamed(isc_c_EventHandler__handleMouseU) @ myApplication/sc/modules/ISC_Core.js:1609 unnamed(isc_c_EventHandler_handleMouseU) @ myApplication/sc/modules/ISC_Core.js:1600 unnamed(isc_c_EventHandler_dispatc) @ myApplication/sc/modules/ISC_Core.js:1857 unnamed(anonymou) @ myApplication/sc/modules/ISC_Core.js:62 unnamed() @
Code:
{ "actionURL":"http://localhost:8080/myApplication/sc/IDACall", "showPrompt":false, "transport":"xmlHttpRequest", "promptStyle":"cursor", "data":{ "appID":"isc_builtin", "className":"com.isomorphic.tools.BuiltinRPC", "methodName":"setAttributes", "arguments":[ "session", [ { "name":"dsName", "type":"hidden", "value":"waypointDS" }, { "name":"delimiter", "type":"hidden", "value":"," }, { "name":"quoteString", "type":"hidden", "value":"\"" } ], null ], "is_ISC_RPC_DMI":true } }
If not, what am I doing wrong here?
Related question: Is it possible to embed the batch upload form in a ToolStrip or change its layout (upload and submit button arrangement)?
SmartGWT with SmartClient Version: SNAPSHOT_v8.3d_2012-08-27/PowerEdition Deployment (built 2012-08-27)
FF 14,01
Thanks
Comment