Showing posts from August 4, 2011

SharePoint 2010 Chart Web Part

Let’s face it.  Nowadays, management absolutely loves BI.  Especially when there are lots of pretty charts and graphs.  The thing is I’m not a BI guy.  Cubes scare me to death.  Luckily, there is the new snazzy Chart Web Part in SharePoint 2010 that gives you some BI like capabilities.  It doesn’t allow you to drill down and pivot and do all that fancy stuff, but it does let you make some nice graphs and charts that any ordinary developer can do.
To get started, first you need an Enterprise version of SharePoint 2010.  Unfortunately, I used the key that was later determined to be the wrong one which led me to reinstall SharePoint with a new key.  If you don’t have any Enterprise options available, then you will be reinstalling.  Assuming, you do have an Enterprise key, you then need to activate the SharePoint Server Enterprise Site Collection Features.

This adds the chart web part (among other things).  Then edit any page and add a Chart Web Part.  You can find it under Miscellaneous…

Running Timed Jobs within SharePoint

Programming a Timed Job
The Job installed in the aforementioned paragraph does not actually work because there is no "logic" to execute. To create a new Job, it is necessary to program a new class library and add it to the Global Assembly Cache (GAC) to make the logic accessible to SharePoint. The first step is to create a new "Class Library" Visual Studio 2005 project with a suitable name, then add a reference to Windows SharePoint Services (Microsoft.SharePoint.dll) and "using" directives to Microsoft.SharePoint and Microsoft.SharePoint.Administration. The Class needs to inherit from "SPJobDefinition" and to have at least one constructor to initialize the new objects. The definition of the empty class reads: using System; using System.IO; using Microsoft.SharePoint; using Microsoft.SharePoint.Administration; namespace CountDocs { public class CountDocsJob : SPJobDefinition { public CountDocsJob() { } //public Count…

Creating a timer job in SharePoint 2007

For the project I’m working for the moment i needed a document library with contracts. The contracts have an end date and an email alert needed to be send when this end date was received. After exploring the possibility to used a work flow created in SharePoint Designer, i abounded the idea and set looked at creating a timer job. This timer job needed to run once a day, check the contracts end date and send alerts when needed. Handy links where: Creating Custom SharePoint Timer Jobs – Andrew ConnelRunning timed jobs within sharepointBut the most useful link I found was by Alexander Brütt (blog by Tobias Hertkorn). Onthis page you can download a fully functioning Visual Studio Template to create a SharePoint timer job and to get a deployable .wsp file after building the project.There’s even a *.bat file to deploy the solution. Nice! I’ve created this *.bat file to easily uninstall the feature and solution when testing: stsadm -o deactivatefeature -name customTimerjob -url http://DEVMOSS/

Configuring Claims-Based Authentication in SharePoint Server 2010

I thought it would be helpful to share my step-by-step procedures for manually configuring claims-based authentication in SharePoint Server 2010 using an "ASP.NET database" and corresponding membership and role providers.
Note that the following TechNet article provides some of the steps for configuring claims-based authentication in SharePoint Server 2010 (using the LDAP provider instead of the ASP.NET SQL providers):
Configure forms-based authentication for a claims-based Web application (SharePoint Server 2010) I had originally intended this post to simply serve as a precursor to my next post, but during the process of writing this post, I realized that there are many pieces lacking from the TechNet article. For example, if you use the current PowerShell script provided in the above TechNet article, you end up with a Web application that doesn't support Search (because it does not enable both Windows authenticatio…

SharePoint 2010: Howto configure Business Data Connectivity access rights

You may encounter “Access denied by Business Data Connectivity” error when trying to access External List. The reason is because External List requires External Content type ; and External Content type is using Business Data Connectivity services proxy to access external Data Source. With the same principle of BDC in MOSS 2007 – users are required to have BDC Object permission before they can use it.  There are several set of permission available for the BDC object: - Edit                                  
- Execute                            
- Selectable in Clients
- Set Permissions How to configure the BDC access rights? 1. Open Central Administration page, and click on Manage service application. 2. Click on Business Data Connectivity Service 3. Open the context menu of the External Content type (ie. External CT in this example). Click on Set permissions. 4. Add account (Group, or User) and assign the permissions.