SharePoint - XSL statements in DVWP, that hides column value based on current user

Asked By jc dls on 24-Jun-13 01:30 AM
You cannot vote on your own post

I have this column on a Dataview webpart, i need to check first if the current user is the value of a HiringManager column, if yes, then it will display the value of the Confidential column, if not, it will hide the value of the column. can you help me fix this code. thanks.

<!--Confidential-->
< !--Confidential-->
< TD Class="{$IDAJAIVH}">
<xsl:if test="@HiringManager=[Me]">
<xsl:value-of disable-output-escaping="yes" select="ddwrt:AutoNewLine(string(@Confidential))">
</xsl:value-of>
</xsl:if>
< /TD>