XSLT in SharePoint Designer 2007 RRS feed

  • Question

  • Using SharePoint 2007 and Designer I made custom list which includes a filter for a custom view so my clients can only edit certain columns and not others.  This code allows SP to identify my users by their membership group so they can only see line items applicable to them.  The below code WORKS when editting directly in the filter:

    <Where><Membership Type="CurrentUserGroups"><FieldRef Name="AssignedTo"/></membership></where>

    I need to add a functionality to allow a certain user group role, let's call them Approvers, to show entries for items that have a status of anything except 'Submitted'.

    So essentially I need to merge my code that works with some new code.  I can't make a simple calculated statement because it will cancel out my code that works above, so I'm trying to hard code both commands directly and it does NOT work. Any suggestions?

    &lt;Where&gt;&lt;And&gt;&lt;Neq&gt;&lt;FieldRef Name=&quot;Approvers&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Submitted&lt;/Value&gt;&lt;/Neq&gt;&lt;Membership Type=&quot;CurrentUserGroups&quot;&gt;&lt;FieldRef Name=&quot;AssignedTo&quot;/&gt;&lt;/Membership&gt;lt;/And&gt;&lt;/Where&gt;

    Tuesday, August 19, 2014 5:36 PM