on 2020 Apr 03 3:48 PM
Hi guys,
Im using a Odata v4 backend server to my SAPUI5 frontend app, but this server not support batch requests. Is there a way to disable batch requests using SAPUI5 V4 model? When I set the datasource to Odata v4, the requests are done with $batch.
To Odata v2 I can do this to disable.
"models": {
"yourModel": {
"dataSource" : "yourDataSource",
"settings" : {
"useBatch" : false
}
}
}
But I cannot find a way in Odata v4 model.
Thanks! Any help will be welcome!
Request clarification before answering.
Hi Balbino,
You can use Group IDs to control the OData V4 model's use of batch requests. Setting it to $direct will disable the batch requests and send it directly.
More information about OData V4 in SAPUI5 can be found in the SAPUI5 Documentation.
Kind regards,
Dries
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dries,
Worked perfectly .
"api": {
"settings": {
"synchronizationMode" : "None",
"groupId": "$direct"
}
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.