rss

Sharepointology

Sharepointology is the study and handling of Microsoft Office SharePoint Server

SharePoint Best Practices Conference Notes (London 2009) – Day 1

Posted 19Apr09 by Erwin in General having no comments »

Keynote. (Joel Oleson)

10 Steps to a successful SharePoint deployment

  • SharePoint = a killer bunny, looks cute, but it can bite you in the…
  • Governance: consistent management, cohesive policies, processes and decision-rights for a given area of responsibility.
  • Executive sponsor with vision and budget.
  • SharePoint team: Site Collection admin, SP Designer or Business analyst, Content Administrator, SP Infrastructure admin, SP Developer [Admin <> Devs].

Read the rest of this entry »

RSSIf you like this post then please consider subscribing to my full feed RSS. You can also subscribe by Email and have new posts sent directly to your inbox.

Microsoft SharePoint Designer 2007 is now FREE

Posted 02Apr09 by Erwin in Development, Setup having no comments »

sharepoint-designerThe rumor that, starting from 01 April 2009, Microsoft SharePoint Designer was going to be available as a free download has been going around for a couple weeks.

Today Microsoft makes this official with an update on their SharePoint Designer page.

For end users, Microsoft SharePoint Designer opens the door to more advanced customizations, but take care because you can ruin your site in a matter of minutes with SPD.

Microsoft also wrote an open letter to their customers about the change in licensing. You can find some quick answers on common questions about the change.

If you have already made an investment in Office SharePoint Designer and Software Assurance take a look at this blog post.

How To Create Alerts Programmatically

Posted 18Feb09 by Erwin in Development having 10 comments »

alert
This following piece of code will show you how to programmatically create a SharePoint alert:

First I will show you the code snippet to create the Alert, after that I will explain the code step by step.

SPAlert newAlert = user.Alerts.Add();
newAlert.Title = list.Title;
newAlert.AlertType = SPAlertType.List;
newAlert.List = list;
//newAlert.EventType = SPEventType.Add; <= doesn’t work
//use the following codes to set the "eventtypeindex" property
//all =0, added = 1, modify = 2, deleted = 3, web discussions = 4
newAlert.Properties["eventtypeindex"] = "1";
newAlert.AlertFrequency = SPAlertFrequency.Immediate;
//passing false to Update method will refrain from sending the alert confirmation mail
newAlert.Update(false);

Step by step:

The first thing to create the alert is to use the Add method of the Alerts property of the SPUser class, in our example “user” is an instance of a SPUser class.

SPUser user = mySite.Users["domain\user"];
SPAlert newAlert = user.Alerts.Add();

If you want to set an alert for a list, you have to set the AlertType property to SPAlertType.List and set the List property to an instance of the SPList class.

newAlert.AlertType = SPAlertType.List;
newAlert.List = list;

If you want to set an alert for a list item, you have to set the AlertType property to SPAlertType.Item and set the Item property to an instance of the SPListItem class.

newAlert.AlertType = SPAlertType.Item;
newAlert.Item = item;

cautionThe next property you want to set is the EventType property, this didn’t work out the way I wanted it too. I was having a problem with setting the EventType on an SPAlert to SPEventType.Add.

My code wouldn’t throw an error but neither would it set the EventType to SPEventType.Add, in stead it would stay at SPEventType.All.

I fixed this by using the following codes to set the “eventtypeindex” property of the SPAlert:

  • all = 0
  • added = 1
  • modify = 2
  • deleted = 3
  • web discussions = 4
//newAlert.EventType = SPEventType.Add;
newAlert.Properties["eventtypeindex"] = "1";

The last properties to set is the AlertFrequency.

newAlert.AlertFrequency = SPAlertFrequency.Immediate;

If you AlertFrequency is different than Immediate you will have to set the AlertTime property, the AlertTime property defines the next time the alert will be sent.

newAlert.AlertFrequency = SPAlertFrequency.Daily;
newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month,
 DateTime.Today.Day, 8, 0, 0);

Last but not least you will have to call the Update method of the instance of SPAlert. You can pass a bool parameter which tells the update if it needs to send an alert confirmation mail or not.

newAlert.Update(false);

Application Lifecycle Management Resource Center for SharePoint

Posted 03Feb09 by Erwin in Development having no comments »

msdn-logoMicrosoft just opened up the Application Lifecycle Management Resource Center for SharePoint Server site on MSDN. You can find guidance, best practices, articles, white papers, and documentation about Application Lifecycle Management (ALM) for custom applications built by using Microsoft Office SharePoint Server 2007 on this site.

Following are a few things talked about on the site:

  • Team Development
  • Source Code Control
  • Automated Builds
  • Continuous Integration
  • Build Testing
  • Unit Testing and Test Driven Development
  • Solution Versioning

Application Lifecycle Management is the marriage of business management to software engineering made possible by tools that facilitate and integrate requirements management, architecture, coding, testing, tracking, and release management.

Expand and Collapse All Feature v1.0 Released

Posted 01Feb09 by Erwin in Development having 1 comment »

codeplex

Paul Grenier of EndUserSharePoint.com has written a jQuery script that allows a user to expand all grouped by instances with one click, as a response to a question I asked on the Stump The Panel forum. I loved the script so much I decided to package it for easier use and distribution and put it on my SharePointology project on Codeplex.com.

It is a feature called SPOCollapseAndExpandAll, it is a jQuery feature that adds a + and – to the menu bar of the document/list libraries to Expand/Collapse all grouped by’s with one click. days.

Before expanding:

SPOExpandAndCollapseAll

After expanding:

spoexpandandcollapseall02

Download SPOExpandAndCollapseAll v1.0.

Prerequisites

This webpart needs jQuery to be added to your SharePoint pages.

About

My name is Erwin Bastiaensen and I am a Software Architect from Belgium, with a huge interest in technology. Lately I have been involved in some Java projects and implementing, interfacing and extending a Sharepoint portal.

You can contact me at sharepointology[@]gmail.com.

View Erwin Bastiaensen's profile on LinkedIn