SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set up a calendar on SharePoint. A calendar item has a people picker to hold who the item is for. I have created groups for each project and have added people to the relevant group. I am trying to create views for each of these groups which will show only items where the person is part of that group.

On the view filter, I don't really want to add a 'Where person = 'first person' or person = 'second person' etc as if people come and go this could get too much to do so ideally the filter needs to be created dynamically from the group.

I have thought of two possible ways:

  1. On the View aspx, is there a way to dynamically create the element using JQuery? I could get the group name from this element and then get the list of users from the group and build up the string. From what I can see though by the time JQuery kicks in it would be using the generated aspx file, not the original file and so that element will not be there.

  2. Do something similar to or But I'm not too sure how to use this? I'm quite new to SharePoint development (I've been doing c# awhile though) but it looks like it is doing what I need to.

Thanks for your help

share|improve this question
I don't know if I correctly understand what you want to do, but have you tried this? – Aljoscha Husp Dec 14 '12 at 9:35
That's not what I want unfortunately. The filter I want has nothing to do with who is currently looking. It should show all items assigned to people within a specified group – ADringer Dec 14 '12 at 9:38
Why don't you just filter by groupname then? I'm pretty sure this is possible. – Aljoscha Husp Dec 14 '12 at 10:28
The group name is not on the item, only the person. The person could be in multiple groups (and each group would require it's own view) so it's not feasible to add a group column to the item – ADringer Dec 14 '12 at 10:43
Oh okay... well. If I got it correctly now ;-) then I'd suggest to make a new column which holds groups and allows multiple selections. Then you could add the groups by hand, or just with a simple workflow which reads the groups of the current user and writes them to the column.I'm sure there are better ways but this would be easy. – Aljoscha Husp Dec 14 '12 at 11:11

We can apply the membership filter using sharepoint designer. Check this

share|improve this answer

In SharePoint you cannot group/Search on some columns which are save as multi columns. Please find this additional information in this Post :

share|improve this answer

Your Answer


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.