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:
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.
Do something similar to http://stackoverflow.com/questions/325007/get-users-by-group-in-sharepoint or http://stackoverflow.com/questions/1399629/how-to-filter-list-items-by-user-group-column-in-sharepoint?. 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