Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

On a MOSS 2007 Team Site, I used the Web UI to add a View, and used the Web UI to filter it in order to fetch the items where Title equals ACME\Joe.

<Query><OrderBy><FieldRef Name="ID"/></OrderBy><Where><Eq><FieldRef Name="Title"/><Value Type="Text">Acme\Joe</Value></Eq></Where></Query>

I opened this View in Designer and pasted some of the CAML that was generated above.

Is there a way to modify the XML so that the fixed "ACME\Joe" is replaced by the username or userid of the currently logged in user, whatever is easier to get? I can ensure the username, userid, or anything, for that matter, populates the Title field.

My goal is to have a view that returns the items created by the currently logged in user.

Thanks!!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, you will need to use [Me] keyword. Please check following article for further reference:

http://vspug.com/mirjam/2009/07/16/creating-a-custom-view-that-filters-on-the-current-user-or-me/

share|improve this answer
    
Perfect; Just tested. Many thanks!! –  user815460 Aug 20 '11 at 2:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.