We are using:
SmartClient Version: v10.0p_2015-09-01/LGPL Development Only (built 2015-09-01)
Browser: Chrome Version 44.0.2403.157 m (but we have had the same result in IE11 and Firefox)
Basic data:
We have a DynamicForm with a RestDataSource attached as the master. In the dynamicForm we have added a MultiFileItem field pointing to the detail datasource that contains only an id as primary key, a binary field and a foreign key pointing to the master datasource that is attached to the DynamicForm.
Steps:
Add a new register in the table. Pick up some files to be uploaded and submit the form.
What happens:
We receive the call in the REST web service and completes successful as can be seen in the RPC tab of the developer console. Later on we receive a call to the transformRequest of the detail datasource and when leaving this method happens two different things:
1) We receive the following message in the developer console:
11:56:44.651:XRP4:WARN:Log:TypeError: Cannot read property 'transactionNum' of undefined
Stack from error.stack:
MultiFilePicker.saveData(<no args: exited>) on [MultiFilePicker ID:isc_MultiFileItem_1_picker] @ ISC_Forms.js:2258:210
MultiFileItem.formSaved(<no args: exited>) on [MultiFileItem ID:isc_MultiFileItem_1 name:attachment] @ ISC_Forms.js:2243:1834
DynamicForm.formSavedComplete(<no args: exited>) on [DynamicForm ID:isc_DynamicForm_0] @ ISC_DataBinding.js:2260:317
DynamicForm.$49z(<no args: exited>) on [DynamicForm ID:isc_DynamicForm_0] @ ISC_DataBinding.js:2260:55
RestDataSource.eval(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ [no file]:3:19
[c]Class.fireCallback(_1=>"isc.Comm.performXmlTransactionReply(1, x..."[54], _2=>"xmlHttpRequest", _3=>Array[1], _4=>[object Window], _5=>true) @ ISC_Core.js:268:49
[a]RestDataSource.fireCallback(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_Core.js:336:302
RestDataSource.fireResponseCallbacks(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_DataBinding.js:705:13
RestDataSource.completeResponseProcessing(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_DataBinding.js:702:6
RestDataSource.handleJSONReply(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_DataBinding.js:593:6
2) We receive the request to the servlet that handles the file upload (we receive one call per file) but this call has an encoding text/xml despite the fact that the dynamicForm was configured with an encondign Multipart, so we cannot recover the file being uploaded and the rest of the process cannot complete.
Any ideas where the problem can be located.
Thank you very much.
SmartClient Version: v10.0p_2015-09-01/LGPL Development Only (built 2015-09-01)
Browser: Chrome Version 44.0.2403.157 m (but we have had the same result in IE11 and Firefox)
Basic data:
We have a DynamicForm with a RestDataSource attached as the master. In the dynamicForm we have added a MultiFileItem field pointing to the detail datasource that contains only an id as primary key, a binary field and a foreign key pointing to the master datasource that is attached to the DynamicForm.
Steps:
Add a new register in the table. Pick up some files to be uploaded and submit the form.
What happens:
We receive the call in the REST web service and completes successful as can be seen in the RPC tab of the developer console. Later on we receive a call to the transformRequest of the detail datasource and when leaving this method happens two different things:
1) We receive the following message in the developer console:
11:56:44.651:XRP4:WARN:Log:TypeError: Cannot read property 'transactionNum' of undefined
Stack from error.stack:
MultiFilePicker.saveData(<no args: exited>) on [MultiFilePicker ID:isc_MultiFileItem_1_picker] @ ISC_Forms.js:2258:210
MultiFileItem.formSaved(<no args: exited>) on [MultiFileItem ID:isc_MultiFileItem_1 name:attachment] @ ISC_Forms.js:2243:1834
DynamicForm.formSavedComplete(<no args: exited>) on [DynamicForm ID:isc_DynamicForm_0] @ ISC_DataBinding.js:2260:317
DynamicForm.$49z(<no args: exited>) on [DynamicForm ID:isc_DynamicForm_0] @ ISC_DataBinding.js:2260:55
RestDataSource.eval(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ [no file]:3:19
[c]Class.fireCallback(_1=>"isc.Comm.performXmlTransactionReply(1, x..."[54], _2=>"xmlHttpRequest", _3=>Array[1], _4=>[object Window], _5=>true) @ ISC_Core.js:268:49
[a]RestDataSource.fireCallback(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_Core.js:336:302
RestDataSource.fireResponseCallbacks(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_DataBinding.js:705:13
RestDataSource.completeResponseProcessing(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_DataBinding.js:702:6
RestDataSource.handleJSONReply(<no args: exited>) on [RestDataSource ID:RESTDailyLogBookDS] @ ISC_DataBinding.js:593:6
2) We receive the request to the servlet that handles the file upload (we receive one call per file) but this call has an encoding text/xml despite the fact that the dynamicForm was configured with an encondign Multipart, so we cannot recover the file being uploaded and the rest of the process cannot complete.
Any ideas where the problem can be located.
Thank you very much.
Comment