Starting a SharePoint workflow from code (Event Receiver)

Author: <font color="#3c3c3c" size="1">Tobias Zimmergren</font> (tobias at zimmergren dot net) URL: http://www.zimmergren.net In one of my current projects I was facing the issue of triggering a workflow – but didn’t want the entire workflow to kick off unless absolutely necessary. Instead of the traditional approach where you hook up your workflow to trigger on new items or items being changed, I want to make a check to see if anything really had changed and then check a few other variables before even starting the workflow…

Read More

Custom list definitions with custom forms – changing master page

As many of you might have experienced when you create your own custom list definition, you can also create your custom forms (DispForm.aspx for example). In my case, I want the DispForm.aspx to use another master page than it originally does, and so I thought I’d just change the following line of my DispForm.aspx: From: <%@ Page language="C#" MasterPageFile="~masterurl/default.master" ... %\> To: <%@ Page language="C#" MasterPageFile="/_layouts/zTest/test.master" ... %\> Problem Doing this will most likely cause you to receive the following known…

Read More

How To: Custom Web Part Properties (ToolPart)

I’ve been getting a few requests from people who basically want to know how you can modify the Web Part Properties window – and foremost add your own logic and controls there. Prerequisites SharePoint 101 basic knowledge Knowledge about how you build and deploy Web Parts in SharePoint (Really, you can just download the entire project in the end of this article and skip the pre-reqs.) Intro I will walk you through how you can add your own custom controls in the Web Part property pane, instead of relying on the standard controls. Sometimes you’re just required to have…

Read More

How to: Get up and running with .NET 3.5 in your SharePoint environment

Since I’ve been a bit on the lazy side when it comes to the blog (due to multiple reasons..), I’m thinking about writing up an article-series where I’ll talk about .NET 3.5 and what it has to offer when used in conjunction with SharePoint. Any input is welcome, of course :) Introduction In this article I will try to get you up and running with the .NET 3.5 framework in your SharePoint environment, just like I’ve previously described how you can get AJAX and Silverlight 2.0 up and running: MOSS 2007: Add support for…

Read More

SharePoint Forum and SharePoint Forum Web Part

UPDATE: Please read the latest news about the Discussion Forum Web Part here: [http://www.zimmergren.net/archive/2009/09/01/tozit-sharepoint-discussion-forum-solution-for-wss-3-0-and-moss-2007-released-today.aspx](/archive/2009/09/01/tozit-sharepoint-discussion-forum-solution-for-wss-3-0-and-moss-2007-released-today.aspx "http://www.zimmergren.net/archive/2009/09/01/tozit-sharepoint-discussion-forum-solution-for-wss-3-0-and-moss-2007-released-today.aspx") Enjoy! A lot of people have been bugging me about the Discussion Forum WebPart I’ve created for SharePoint (WSS 3.0 and MOSS 2007 alike, of course). Therefore, I decided to give you some update as to what’s going on. First of all… The main reason for me being a little more passive with the blog the…

Read More

MOSS 2007: Creating a custom AJAX UserControl that will query the SharePoint Search Query Object Model to perform searches

Author: Tobias Zimmergren Url: http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net If you’ve read my last two blogposts you already know how to configure ASP.NET 2.0 AJAX for your SharePoint Server and how do deploy a UserControl that uses AJAX functionality on you SharePoint Server. You can find my previous articles here: MOSS 2007- Add support for AJAX in your SharePoint installation MOSS 2007 – Using AJAX UserControls in SharePoint This blogpost shows a simple implementation of a UserControl that uses the Object Model to query the search service using a keyword and then using…

Read More

MOSS 2007: Using AJAX UserControls in SharePoint

This post shows you how you can use the AJAX functionality in SharePoint by using UserControls. What we need to be able to follow the steps in this articleHave installed ASP.NET 2.0 AJAX 1.0 Extensions (Download here)Configured web.config to enable AJAX support (See my previous post here)Have the SmartPart installed and deployed (See the SmartPart project site for more information, installation & deployment instructions etc)In the following sections I will describe how you an use the SmartPart by Jan Tielens to host your custom usercontrols in SharePoint. The SmartPart is widely used by…

Read More

Zimmergren MOSS 2007 Tip #2: Retrieve stuff by code

This is by no means meant to be anything other than a small tip on how to interact with the object model. If you need more information on how to interact and code with the object model, drop me a comment. But for now this is just to show you guys out there who havn’t done any coding with SharePoint, that it’s actually a piece of cake! Start off by creating a new Visual Studio 2005 Windows Forms application. Add the following namespaces: (Administration-namespace might not be needed depending what you want to do further from this point)…

Read More

Close You've successfully subscribed to Tobias Zimmergren's thoughts on tech.
Close Great! You've successfully signed up.
Close Welcome back! You've successfully signed in.
Close Success! Your account is fully activated, you now have access to all content.