Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch update in ODATA V4 #4113

Open
JanyaMahesh opened this issue Aug 23, 2024 · 2 comments
Open

Batch update in ODATA V4 #4113

JanyaMahesh opened this issue Aug 23, 2024 · 2 comments

Comments

@JanyaMahesh
Copy link

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 : #3888

Is there any method that supports this requirement?

@ThomasChadzelek
Copy link
Member

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.

@ThomasChadzelek
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants