Dear Friends,
i have created a Project list/task in Data View. i would like to give "Filter" option to users, so they can filter as per "Assigned To" Field.
in page, the code was:
<!-- Default Code Start from here-->
<option>
<xsl:attribute name="value">
<xsl:value-of select="ddwrt:ConnEncode(normalize-space($value))" />
</xsl:attribute>
<xsl:if test="$dvt_filterfield=$name and $dvt_filterval=normalize-space($value) and $dvt_filterval!=''">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="string-length($output) > 40">
<xsl:value-of select="substring($output, 1, 40)" /> ...
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$output" />
</xsl:otherwise>
</xsl:choose>
</option>
<!-- Default Code end here -->
i updated the like
<xsl:value-of select="substring($output, 1, 40)" /> ...
with
<xsl:value-of select="$output" disable-output-escaping="yes" />
now, its showing username in drop down menu of filter. but its showing multiple username (if any user has 3 task "Assigned To" then its showing that user name 3 times.)
i would like to have distinct the username just like another filter value.
please let me know the Solution,
Thanks
_Bhupesh