Home » SharepointRSS

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

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,

 

 

1 Answer Found

 

Answer 1

Hi Pman,

 

Thanks to share your problem.

 

Do you mean that you have added  two columns  so you want to refresh the total  number of the columns?

 

If yes, I think the following links would properly give you a hand:

 

http://vspug.com/mkruger/2007/06/26/free-sharepoint-dataview-tips/

 

http://ptgmedia.pearsoncmg.com/images/9780672330001/downloads/0672330008_Online_Content_Part_I.pdf.

 

Best Regards!

Leo

 

 

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter