Skip to Content

$count automatically appended to OData request

Dear experts,

I am using a SAPUI5 table (sap.ui.table.Table) in combination wtih OData. When I have look in the network trace of firefox or chrome I see a second OData request next to my. This one is the same like I have bound to the table, but this secound one has an automatically appended /$count.

This is not the problem, the problem is the response form the server which has a size of 10 MB.

I already set the following parameters to the table:

threshold: 5, visibleRowCount: 5, firstVisibleRow: 5

Any ideas how I can deactivate the $count? My be its possible to deny this in the OData service?

I think it could be some default settings of the table control...



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 09, 2014 at 03:42 PM

    Hi Matthias,

    Use method 'setCountSupported' of your oData Model object. Click the below link.

    SAPUI5 SDK - Demo Kit



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 09:24 PM

    Thanks Krishna for your fast and helpful answer!!

    It works and the application is faster than before.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.