Note that there are some explanatory texts on larger screens.

plurals
  1. POSharepoint 2007/2010 hiding list or library items (i.e. rows)
    primarykey
    data
    text
    <p>I wanted to know if there's a way to hide list or library row items based on the content of a specific column. </p> <p><strong>Here is a use case scenario:</strong> </p> <p>I have a list or library of any kind, I have a column called <em>Permissions</em>, within that column I can specify one of two group name types as strings, e.g "Owners" or "Visitors". Afterword, I have conditions that go through each individual row item in the list or library and base the visibility of that row item on the string content of the <em>Permissions</em> column.</p> <p><strong>Row Visibility Logic Pseudo:</strong></p> <pre><code>If( current_row.Permissions_Col.Content == LoggedInUser.Group_Name) Show this row Else Hide this row </code></pre> <p>Is it possible do accomplish this either through the Sharepoint web interface or programmitcally in Sharepoint Designer or Visual Studio?? Insight is appreciated.</p> <p>UPDATE:</p> <p>Thanks all for the feedback, just to clarify the motivation for this is our document structure and security/permissions layer is very dynamic, so we can't create a static hierarchy in SharePoint. Instead we want to have one single library pool of resources which are filtered on the fly based on the Group membership of the currently logged in user. We want to treat the <em>Permissions</em> column content as metadata to describe who can view this row's data. </p> <p>My apologies, but another requirement I neglected to mention is that when the logged-in user tries to upload a file or create a new element (i.e. List, Library, Folder, Form, etc.) in SharePoint, permissions get set automatically for the user's group and for "Owners". The only exceptions to this condition would be "Owners". So the pseudo is something like this:</p> <p><strong>File Upload / Item Creation Logic:</strong></p> <pre><code>If( (creatingElement OR uploadingFile) AND LoggedInUser.Group_Name != "Owners") { SET Permissions_Col.Content to LoggedInUser.Group_Name; SET read permissions for LoggedInUser.Group_Name and full control for "Owners"; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload