SPDisplayRelatedInfo - show totals

Feb 22, 2010 at 3:18 PM

A feature suggestion.  Having the ability to choose to show the sum of a column in the related list.  So I could choose a customer name from the dropdown, and in the related info would be a sum of the "amount sold" column, or even show a count of the number of itmes.  Or is there another way to do this that I have not discovered yet?  :)

Feb 22, 2010 at 4:47 PM

One way would be to use the completefunc parameter to call a function that makes the calculations you want It's not necessarily a clean way to do it, but it'd give you free reign over what the calculations are and how they're displayed. I'll have to speak to Marc about this and see what his thoughts are on it. The trick is keeping the new feature fluid enough to be usable by the masses.

Mar 1, 2010 at 8:13 PM


I think Mike's suggestion is the right one: add some code to the completefunc to do whatever calculations you want.  I think it would be difficult to come up with something here that would be of general use and easily understandable.