I'm having a query like select a, b, c from d; and I am using server side. I can make search work etc, but what I also want to do is display somewhere on my page the select count(distinct b) from d; but taking into account the filters that I've set for server side, but not using the pagination of the query.
So basically, I want to fire off a second query that takes in the first query that I've been using for the table, and then get out the number of distinct results for some column. I think I'll be able to parse the generated query; what I need is a way to get to the query as it is sent to the server.
Any ideas?
Thanks!