Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Batchupload - Javascript error

$
0
0
Hello,

We are facing a Javscript error when uploading using the batch upload. The error is in the generated ISC_DataBinding.js file and the version we are using is 4.1-p20140328

The error thrown is
Code:

Uncaught JavaScript exception [TypeError: this.cleanup is not a function]
and is in the following part of the javascript

Code:

isc.A.commit=function isc_BatchUploader_commit(){var _1=this.grid.data,_2=isc.DataSource.getDataSource(this.grid.dataSource),_3=this;if(!_2){isc.say("No uploadDataSource provided");return}
isc.rpc.startQueue();for(var i=0;i<_1.length;i++){_2.addData(this.grid.getEditedRecord(i),null,isc.addProperties({actionURL:this.dataURL},this.requestProperties))}
isc.rpc.sendQueue(function(){if(this.showCommitConfirmation){isc.say(_3.commitConfirmationMessage,function(){_3.cleanup()})}else{this.cleanup()}})}

The reference to "this" is not available in the scope and it should be "_3.showCommitConfirmation" and "_3.cleanup()" instead of referring to "this"

Viewing all articles
Browse latest Browse all 4756

Trending Articles