cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui.model.odata.ODataModel batch

former_member193202
Participant
0 Kudos

we are using this model sap.ui.model.odata.ODataModel with batch-processing everything works fine.

but we would like to use this model

sap.ui.model.odata.v2

i see there are some events for the batch-handling but no createBatchOperation and submitBatch

who can ths be done with this model???

thx a lot

oliver

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

Hi Oliver,

You can find more information in the API reference:

https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.odata.v2.html

When you look in the experimental API's you'll see the following:

sap.ui.model.odata.v2.ODataModel#attachAnnotationsLoaded The API is NOT stable yet. Use at your own risk.

sap.ui.model.odata.v2.ODataModel#detachAnnotationsLoaded The API is NOT stable yet. Use at your own risk.

sap.ui.model.odata.v2.ODataModel#getServiceAnnotations This feature has not been tested due to the lack of OData testing infrastructure. The API is NOT stable yet. Use at your own risk.


In the beta version of openui5 you already have more functions that you could use:

https://openui5beta.hana.ondemand.com/#docs/api/symbols/sap.ui.model.odata.v2.ODataModel.html


Kind regards,

Wouter

former_member193202
Participant
0 Kudos

Hi Wouter,

ok i see but iÄm looking for the batch-processing not for the annotations and in open ui5 i can also find nothing about SubmitBatch etc.

regards oliver

WouterLemaire
Active Contributor
0 Kudos

Check the part of batch processing

https://openui5.hana.ondemand.com/docs/guide/6c47b2b39db9404582994070ec3d57a2.html

Kind regards,

Wouter

former_member193202
Participant
0 Kudos

thanx a lot !

former_member193202
Participant
0 Kudos

so i tested this, but one question.

do you know if it is in v2 still possible to build manual batch requests or is there only the automatic handling is supported (which works but not so ideal for some of our implementations)

kind regards

oliver

WouterLemaire
Active Contributor
0 Kudos

Good question. I'm not sure... Why is it not ideal for some of your implementations? You could manipulate the model before submitting your changes...

Kind regards,

Wouter

former_member193202
Participant
0 Kudos

I did not test a lot but what i guess is:

on screen i have a lot of tables and also to edit them.

i would not only need changes i need always the complete table - ok i could change, but backend is designed to always get the all data.

so now i read the whole table content and use manual batch with the old oDataModel, i use the old one only for batch and the v2 for all the other things

and for sure just field manipulating would be ok to do on the model data....

maybe for next app we will build backend as it could also work with delta-data.

thanks a lot

regards oliver