Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Select and Count on List XSLT

$
0
0
Hi -

I am trying to get a count of rows in my list with certain attributes to display in a table.  The issue is that if the IMPACT column contains a space in the value, it does not count the entry.  If there is no space in the value for IMPACT column, it works.  Could you please assist?

<xsl:variable name="RM2A" select="count($Rows[@Impact = '5-Very High'][@Probability = 'Likely'])"/> <!-- Does not work, I believe due to the space between Very and High -->
       
<xsl:variable name="RM2B" select="count($Rows[@Impact = '4-High'][@Probability = 'Likely'])"/> <!-- WORKS -->



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>