The client I am presently at has a comparatively large internal .NET shop since they are a .NET SaaS firm, and a lot of the traditional .NET developers are starting to migrate over to SharePoint for an internal product basis. So we figured the best way to train was to pick a pretty generic WebPart requirement, everyone builds their own, see who does what how, integrate the best approaches from the different projects, and see what the final product looks like.
Thus was born the Simple Rollup WebPart. It is named as such because it is literally the most generic WebPart that I have ever seen. And the requirement that was given was to make the World’s most generic WebPart. So this was successful!
In the spirt of being super generic, it is also really easy to use with a nominal amount of properties requiring configuration. Namely, there is:
- A URL
- A List Name
- A View Name
- Amount Up To Query
- Amount Down To Query
Noticably, the approach being used is much faster than traditional SharePoint rollups I have seen in the past, way past what the CQWP (Content Query WebPart) performs at.
Ok, so now to the screenshot-tastic demonstration of how the WebPart works. The WebPart is written in a Feature controlled format, following the same approach as nearly every other WebPart available on this site. So, firstly add the SharePoint Solution to the Solution store by running the installation .bat file:
After, the Solution will be available in the Solution store for deployment:
Once the solution is deployed, you have to active the Rollup Feature to populate the WebPart description file into the gallery so that you can add it to the page. Navigate to the Site Collection Features, and Active The Rollup WebPart Feature.
Once Activated, you will find the WebPart available under the ARB Security Solutions group heading in the WebPart gallery:
Add it to the page, and you will be presented with the notification that no items have been found (because you haven’t configured the Rollup properties yet!)
Following, configure the properties for the WebPart. I have two Task lists on the primary and a subsite, so I am going to use that for testing. The properties are explained below:
- The URL to start the rollup at. If you leave this blank then it will use the current context as the starting point.
- The list name you want to query for, like “Tasks”, “Discussions”, etc.
- The levels up you want the rollup to go.
- The levels down you want the rollup to go
- The SharePoint view you want to target in the rollup, this allows you to target the data display to particular users since you have use the inherit view replacement variables, like [Me] and [Today].
Following, you will be presented with the columns and values based on those available in the configured view. The grouping is provided in order to split up the values by the site they are gathered from.
And that’s it! The WebPart is free, but as always comments about use / backlinks are appreciated.
DOWNLOAD SIMPLE ROLLUP INSTALLATION PACKAGE
Link Will Be Back Up Shortly
Let me know if you have problems in the comments :)