Free SharePoint WebPart – Simple, Generic Rollup WebPart

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:

  1. A URL
  2. A List Name
  3. A View Name
  4. Amount Up To Query
  5. 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:

10-22-2009 11-54-48 AM

After, the Solution will be available in the Solution store for deployment:

10-22-2009 11-53-40 AM

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. 

10-22-2009 11-58-16 AM


Once Activated, you will find the WebPart available under the ARB Security Solutions group heading in the WebPart gallery:

10-22-2009 12-00-33 PM

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!)

10-22-2009 12-00-09 PM

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:

10-22-2009 12-03-36 PM

  1. The URL to start the rollup at. If you leave this blank then it will use the current context as the starting point.
  2. The list name you want to query for, like “Tasks”, “Discussions”, etc.
  3. The levels up you want the rollup to go.
  4. The levels down you want the rollup to go
  5. 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.

10-22-2009 12-08-37 PM

 And that’s it! The WebPart is free, but as always comments about use / backlinks are appreciated.


Link Will Be Back Up Shortly

Let me know if you have problems in the comments :)