cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot wrap request from UploadCollection into the batch and changeset

0 Likes
437

Hello, everyone.
I am working on create dialog. In this dialog I also have attachments.
For saving we use changesets. But I cannot understand how to put request from UploadCollection in the batch, especially in the changeset.
Request with file is separated from batch request.

Some of my code:

oModel.create("/SomeObjectCollection", oObjectData, { // create change for different object
			groupId: "createSomething",
			changeSetId: "createChangesetID"
});
oUploadCollection.upload(); // Create upload request.
oModel.submitChanges({
	groupId: "createSomething",
	success: function (oData) {
	    // Other code here
	}.bind(this),
	error: function (oError) {
	     // Other code here
	}.bind(this)
});

Accepted Solutions (0)

Answers (1)

Answers (1)

cuong_luc
Explorer
0 Likes

Hi freshhead,

I'm trying the same thing but also stuck, did you find any solution for this and maybe you can share?

Thanks & Regards,

Cuong Luc