cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating batch operation

former_member187272
Participant
0 Kudos

Hi experts,

I am getting an error in my fiori application as

Uncaught TypeError: oModel.createBatchOperation is not a function,

Can you suggest a solution for this

Thanks,

Shahid

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member185414
Active Contributor
0 Kudos

Hello Shahid,

Assuming you are using OData V1 Model. Please refer the API Documentation and example. In case you are not able to fix, please provide specific error as suggested by Mike.

BR.

Former Member
0 Kudos

Hi Shahid,

Are you instantiating your oDataModel Correctly?

Please read:

Instantiating an OData Model - SAPUI5: UI Development Toolkit for HTML5 - SAP Library

For Example:

var oModel = new sap.ui.model.odata.v2.ODataModel("http://services.odata.org/Northwind/Northwind.svc/");

var oModel = new sap.ui.model.odata.v2.ODataModel({serviceUrl: "http://services.odata.org/Northwind/Northwind.svc"});

Best Regards

,Gonzalo.

agentry_src
Active Contributor
0 Kudos

Hi Shahid,

I would suggest that you might want to add a few details of your situation.  Things like which Fiori app, what version of SAPUI5, your system architecture, what you have tried so far, the log files or more complete error message, etc.  Unless this is a very easy item to troubleshoot, many folks will skip responding as a result.

has a broad overview of how to get the best responses by posting well up front.

Regards, Mike (Moderator)

SAP Technology RIG