cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot wrap request from UploadCollection into the batch and changeset

04-07-2020 4:50 PM
483 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

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)
});

0 Likes

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