none
How to display/calculate total of a custom column in dataview webpart's grouping header

    Question

  • Hi,

    I've created a dataview from a MOSS2007 form library. In the dataview, I've enabled grouping by a specific column and also was able to show the total (sum) of couple of columns like this, in the group heading:

    <xsl:value-of select=”sum($nodeset/@Total_x0020_Cost)” />

    So far, it's working fine. I've added couple more columns to this dataview. There's a piece of javascript code that is executed for each row. These 2 columns gets their value from this javascript. Now, is there anyway, I can get the total/sum of these columns in the group heading.

    Have you done something like this? Please advise.

    Thanks,

     


    Pman
    http://www.pmansLab.com/
    Monday, October 18, 2010 9:24 PM

Answers