Archive for February, 2010

Filtered Data View for my items and items of groups that I am a member

I found that I could create a view that filtered items for myself ([Me]) and for the groups that I was in, but not both through the View editor.   By editing the group view in SharePoint Designer, I updated the CAML query to filter both groups and items “assigned to me” and it worked just dandy:

<GroupBy Collapse=”FALSE” GroupLimit=”30″>
<FieldRef Name=”AssignedTo”/>
<FieldRef Name=”AssignedTo”/>
<FieldRef Name=”Status”/>
<Membership Type=”CurrentUserGroups”/>
<FieldRef Name=”AssignedTo”/>
<FieldRef Name=”AssignedTo”/>
<Value Type=”Integer”>
<UserID Type=”Integer”/>

Leave a comment