cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Count Aggregate function in XSODATA..???

Former Member
0 Kudos

Hi Experts,

Is there any way to use COUNT aggregate function in  XSODATA,..???

like SUM,MIN,MAX, and AVG..????

If yes, please share a link or sample code for how to use COUNT function in XSODATA..

Thanks & Regards,

Bharath

Accepted Solutions (0)

Answers (1)

Answers (1)

Raghu9t2
Participant
0 Kudos

Hi Bharath,

          we can use count,Average etc aggregation in the definition of the xsodata

eg:

sample.xsodata

service{

"path_to_the_View" as "Entity Name"

with ("COLUMN1","COLUMN2","COLUMN3")

key generate local "ID"

aggregates always(SUM of "COLUMN3")

}

i guess this will give you some idea for your problem....if not please respond

Regards

Raghu M

Former Member
0 Kudos

Hi Raghu,

Thanks for your reply, yes, am getting output for SUM,MIN,MAX and AVG.!

but when i use the COUNT function displaying some error, here is my code for COUNT aggregation, please see my code and reply me,

Thanks & Regards,

Bharath