How can I narrow down my SharePoint 2007 View's filter results based on the Group By property? - sharepoint

I have a list within SharePoint 2007 and I've created a View that filters based on time ([Today]-30). I also have the View set to Group By a People or Group column. The end result is a View that displays all entries in the past 30 days grouped by individual.
So, what I'd like to do is only include those individuals that have 2 or more entries to display within the view. Is there a way to do this?
Thanks,
Brian

Views built through the UI are based on CAML queries, which only allow filters to be applied to items. As you can see from the schema, filters cannot be applied to group bys.
http://msdn.microsoft.com/en-us/library/ms415157.aspx
Your options are:
Filter it with some combination of sharepoint designer and jquery. This filtering would be done after the results are retrieved from the database, so it wont be ideal.
Write a custom web part.

Related

Sharepoint list view - set permissions so only certain users can access certain views

so I have a sharepoint list that contains all the data (We will call it MasterList), and it has an a dropdown column where different departments can be selected (example Sales, HR, Accounting etc etc). I created a view, which only shows data where HR is selected in this dropdown. Now is it possible to set permissions where a user can only see the HR view, and not the Master list. Basically I only want people from HR to see the HR view, and people from Accounting to only see the Accounting view, and then Admin can see all the views including the master list. Is this possible? Is there a better way to go about this? thanks!
I don't think there is a way to restrict PowerApps users to a certain Sharepoint List View. Depending on your org's size, you could investigate the Office 365 Users connector in PowerApps. This would allow you to filter the Sharepoint by Department or Job Title.
Example: Assumes the Sharepoint list has a column named dept
OnStart of the app:
// Set a variable for the user's department
Set(varUserDept, Office365Users.UserProfileV2(User().Email).department);
// Create a collection from the sharepoint list, filtered by department
ClearCollect(colData,
Filter(SHAREPOINT_LIST,
dept = varUserDept
)
)
That being said, if the URL of the Sharepoint list "leaks" users will be able to access the data. See this forum post for strategies for addressing this issue.

Sharepoint views group order

This one should be so simple, I just can't figure it out!
I need to creat a Sharepoint 2010 list view grouped by the number of times a value appears in the list. I can group by the field name and it displays how many times that value appers, I want to order the groups by that count. Any ideas/suggestions?
I don't think list view can do that. Check out data view.
See this similar question:
http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationlegacy/thread/e3173f1f-d4b1-4baf-af0c-91d96c73ca72/
And this one on data views:
http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-data-view-HA010094804.aspx

Sharepoint People View - add column with groups

I want to customize the People View by adding a column with the group information. It seems I cannot do this from the List Settings as a Group collumn does not exist. So I guess I need to do some sort of custom development here.
What is recommended, Should I create a webpart and populate a grid manually from scracth. Or Is there an easy way to costumize the current list?
I just created a webpart and populated the grid manually using the Sharepoint Object Model API.

Setting up a Data View Conditional Format for MOSS 2007 that targets a specific group

I need to figure out a solution to allow only a specific group of users with permission to view a List Item in Editform.aspx. I created a custom form which would allow me to apply conditional formatting for a specific table row. I had used the advance formatting XPATH expression "ddwrt:IfHasRights(16)" which worked with any group that had contribute rights or below, but I also need to exclude other groups like tier 1 - 3, Site Builder, Designer, etc or above "Approval" status. The purpose is to only allow a very selected group of individuals (I created a group called "Approvers") to see the hidden table row.
The current working on MOSS 2007 standard version.
Thanks for any suggestions!
Jason
You can use JQuery and SPServices to examine the group a logged in user belongs to, see my post here which explains the principle. In that case, it hides an element if a user belongs to a particular group.

Multiple copies of a Sharepoint list view

We have a Sharepoint website with a different page for each of our products and another page displaying a list of all our product release dates. You can change the view in this list so that only the release dates of a particular product are shown.
Is is possible to have a list view showing release dates of one product show up on the page dedicated to that product? We would like to have each product page show its own release dates, but if someone updates the master list, each individual product list should be updated as well.
You would want to use the dataview webpart to view a "master" list. You will be able to define a different filter for each webpart. With XSLT you are also able to completely customise the output of the HTML, but I prefer to use only one to avoid all the work.
A simple way to make the master list available on the product pages is to syncronize the content of the master list into a hidden list on the product pages, you could use a Event Receiver for this. This solution will require some custom code but it is pretty simple.

Resources