Display sum of column rather than count in searchPanes
Display sum of column rather than count in searchPanes
corentoulf
Posts: 2Questions: 1Answers: 0
in SearchPanes
Hello,
I'd like to display the sum of a certain column index rather than the count of rows that matches the current filter in the searchPanes.viewTotal
In the case below, I would like to show the sum of quantities (63 + 33) rather than 2.
How should I process ?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
It was designed to count the number of items, not to sum those items, so you'll need to change the SearchPanes code if you want to do that - it's open-source so fine to do so.
Colin
Ok, I'll do it my side.
Would be nice to have a kind of
rowGroup.startRender
for searchPanes tooThank you for your quick response !
I lied - it is possible to do - see example here . For the position field, it's replaced the item count with the sum of the age column for that position. Is that what you're after?
Colin