“Created” equals “Current user” not working as it should?
When using Data view in SharePoint Designer and trying to make conditional formatting on something that current logged in user has created, I followed the usual way. Selected the elemtn, clicked Conditional Formatting and set the filter to "Created" — "equal to" — "Current user" like shown in the figure below:
Surprise – even if I was logged in like me, I couldn’t see the formatting on items I’ve created. The feature works with filter (not XSLT).
The problem is the presence information and link that SharePoint uses to store the author. The following worked for me.
1. Switch to code where you have the conditional formatting. Find string like something below:
<xsl:if test="normalize-space(@Author) = $UserID">
and change it to following:
<xsl:if test="substring-before(substring-after(string(@Author),’">’),’</A>’) = $UserID">
(note the change marked with bold)
and the thing should display items which you like logged in user have created.



You can also just change the Comparison operator to ‘Contains’
Boris, off-topic for this post, but post your conference details that were earlier here to this Microsoft forum.
http://social.technet.microsoft.com/Forums/en-US/sharepointcommunity/threads/
Mike
True, Ian
. I was just being uber-secure
hi,
for me its showing Type miismatch error in the place "
my string is like
<xsl:if test="substring-before(substring-after(string(@Author),’">’),’</A>’) = $UserID">
if i used > means its returns the value after >
but its saying error if i used "
plz………help me
thanks in advance
Thanks a lot. I was wondering how can I call the template in xsl:for-each for the author n then count the rows and show a no records!! message.
hi, i also have the problem with this conditional formatting, in my page not appears an item that current user id are created…. how i work?