Open JanyaMahesh opened 2 months ago
What exactly is your requirement?
You can implement such a "Save" button just fine, see https://openui5.hana.ondemand.com/topic/74142a38e3d4467c8d6a70b28764048f But there should be no need to access "the response of the batch call". At least, it is not provided via submitBatch()
, but the results could be obtained from the corresponding bindings or controls.
Sounds like you are trying to create those PATCH calls from controller code, not via a two-way binding. Why are you trying to do that? Where do you store the user input in between? In some JSON model? Why? How does that benefit from metadata, automatic type detection, value help etc.?
I strongly recommend to use two-way data binding (v4.ODataModel's default) and an API submit group, see https://openui5.hana.ondemand.com/topic/74142a38e3d4467c8d6a70b28764048f The results could be obtained from the corresponding bindings or controls.
OpenUI5 version: 1.126.0
Scenario: User is provided with a table , and user can modify multiple rows, and click on 'save'. On 'save', we are trying to do a batch update of the multiple rows modified. We have tried submitBatch() method, but it seems that the response of the batch call cannot be fetched in submitBatch() call.
We even referred to this issue : https://github.com/SAP/openui5/issues/3888
Is there any method that supports this requirement?