Subject is SharePoint 2010
I have created multiple views using XSLT and Date View Web Parts (DWVP). Both views have strengths and weaknesses. One of the concepts I have been trying to learn for years is XPath and XSL tags. One of the best references for this is Marc D. Andersons, " Unlocking the Mysteries of the SharePoint Data View Web Part XSL tags". This book ( series of articles ) was written for SharePoint 2007 DVWPs but still is very revelant when using DVWPs in SharePopint 2010.
This is the Problem. I had one view created as a DVWP and the Project leader wanted a simple count of the items on the view. This is somethig very easy to do wiith the XSLT List view but not as easy in a DVWP. This is how I did it.
I opened the View in SP Designer. I selected the DVWP and made sure that the entire table was highlighted. Under Data View tools select the design tab. In the Show/Hide area I clicked on header, Column Summary Row, Footer. This placed my count I wanted but some stuff I did not want under my number columns, each one of them recieved a sum:NAN that I did not want. So I just selected the row and deleted them. It left the count at the bottom of the list and all was well.
So my question is as follows: Could have done that using an XPath expression?
count (coulmn name)
Thanks
Chris Niels Sieler
Recent Comments