Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: XSODATA IS NOT WORKING  WITH 'COUNT' AGGREGATE

$
0
0

Hi Gokul,

 

I think I didn't get it right now, what the target of your question is?

 

If you want to have the sum over all NUMBER_OF_ENROLLMENTS then aggregation function sum can be used in the OData service description.

 

If you want to have the number of aggregated result lines (independent of the number in NUMBER_OF_ENROLLMENTS) you can also use aggregation sum in the OData service description. But the number of line you can determine with the additional URI parameter "$inlinecount=allpages". Than the response will contain a counter result for the number of "lines". I would recommend to add also the parameter "$top=1" to avoid unnecessary data transfer (-> "... .xsodata/bydynamicrace?$inlinecount=allpages&$top=1").

 

Regards, Florian


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>