cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 with ASP.Net OData API v2

former_member648202
Discoverer
0 Kudos

Hi and greeting all masters,

Need help upon my first integration between SAPUI5 application with ASP.Net OData API.

I've develop ASP.Net API using latest version, but have downgrade it to version 2 to make sure it work with SAPUI5. The data source defined in manifest have been recognize perfectly.

During binding into table, SAPUI5 have request my odata api $batch frequently and not stop. I've take sample from SAPUI5 demo kit which using Nothwind svc as odata datasource.

Photos to describe whats is the problem

Can you master-master help me on this issue and possibility what have cause it

Thanks you very much for your kind helps

View Entire Topic
abdel_dadouche
Active Contributor
0 Kudos

Hi,

Can you check your model settings?

There should be a "useBatch" property set to false if you want to prevent that call.

Referring to : https://answers.sap.com/questions/152808/how-to-stop-batch-call-is-odata-v2-version-in-sap-.html

Regards

former_member648202
Discoverer
0 Kudos

Hi Abdel,

I've try that. useBatch = false, but then the request changes to skip=0&take=0 request. Still same behavior, which is keep requesting from the OData server.

Now, i've change the way to grabs the data by using ajax request within the controller. I thinks, this problem is reside in our OData api. Because, by using Northwind services, same request working fine, which is just on call of request. By using our own OData api, the sap keep requesting the api.

Anyway, thanks Abdel for your response

abdel_dadouche
Active Contributor
0 Kudos

You are very welcome, but now I want to know what's the difference between your OData service and NorthWind.

Which OData version are you using for both NorthWind and your OData service?

0 Kudos

Hi kiemieuk:

Could you find a solution? I have the same problem.