Wednesday, December 19, 2007

Creating a WebPart with Custom User Control

The following is a very good article on how to create various options in your WebPart.http://bloggingabout.net/blogs/mglaser/archive/2007/04/19/building-my-own-usercontrol-webpart-part-vi.aspx

Friday, December 14, 2007

Creating Custom Field Control

In this example we are creating a custom field type which concatenates two text fields (first and last name).Create a new usercontrol file (customfieldcontrol.ascx). In this usercontrol, add a SharePoint:RenderingTemplate control, and insert whatever you want for your control template.Secondly, create a new class file (customfieldcontrol.cs), which will take the

Creating Custom Field Controls

Steps involved in creating a SharePoint Custom Field Control 1. Create your field definition in FLDTYPES_xxx.XML file, and add FieldEditorUserControl property to your custom field definition. Define fields for all custom properties of your custom field definition in PropertySchema section. Set Hidden attribute of all Field elements in PropertySchema section to True. Otherwise, fields will be

Wednesday, December 12, 2007

SharePoint 2007: Approval Workflow - using SharePoint Groups are Approvers

Recently, I was setting up an Approval workflow. To make administration of the workflow easier, I created SharePoint Groups (e.g. Workflow Approvers), which I assigned as the Approvers of the workflow.




This makes it easier for the Site

Wednesday, December 5, 2007

SharePoint Solutions Blog: Deploying Web Parts with Solution Packages in WSS v3/MOSS 2007

How to deploy a SharePoint 2007 Web Part as a feature:SharePoint Solutions Blog: Deploying Web Parts with Solution Packages in WSS v3/MOSS 2007

Friday, November 30, 2007

SharePoint: Paging your results in SPGridView

To get SharePoint to handle paging in your webparts which are using GridView (SPGridView) you need to do a few tweaks to your code:Just above your grid.DataBind() you need to insert the following code:// Turn on paging and add event handlergrid.PageSize = 10;grid.AllowPaging = true;grid.PageIndexChanging +=new GridViewPageEventHandler(grid_PageIndexChanging);then add the event handler:void

Wednesday, November 28, 2007

SharePoint - Search Customizations

Warning: we have drifted slightly from our initial aim of using only OOB functionality. We are actually writing code which uses the SharePoint object model. The Object model is too sweet to resist ;) and with small changes you can deliver fabulous results. The following is a post about using the KeyWord Query class to customize sharepoint searchKeywordQuery class:This class offers quite an

Thursday, November 15, 2007

SharePoint 2007: Creating a custom advanced search webpart - Part 2

In the first part of this series of posts, we explained how to create a custom advanced search box by default which limits searches to a particular search scope.In this part we will explain how to create a advanced search customization which uses a dropdown to limit results to a particular set of meta data / categories only.Typical search requirements would be that users can limit their search

Sharepoint 2007: Creating a custom advanced search webpart - Part 1

Following the post about the Creating a custom advanced search box in moss 2007 article, I did a few customisations of my own.So let's give a few examples of what can be done with this new toy:Remember that you need to create a web part page, and add a Content Editor Web Part and a Search Core Results web part (as defined by the linked article).1. Creating a search box limited to a single scope (

Monday, November 12, 2007

Finding the SharePoint assembly: Microsoft.SharePoint.dll

When you are developing and you ned to add a Microsoft.SharePoint reference, you need to make sure that you know where the Microsoft.SharePoint.dll is. This and other dlls are found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\ISAPI

Thursday, November 8, 2007

Creating your own Advanced Search webpart in sharepoint 2007

Tom Clarkson is da man!In the linked post, he gives a great example on how you can create your own custom advanced search box. The great thing about this is that not only can you add your own custom properties as shown in the post prior to this, but you can solve the question we asked in that same post, i.e. the question of actually having dropdowns to narrow down the search options to the

Adding properties to the Advanced search webpart in SharePoint 2007

Jonathon's Blog: Searching Custom Column Values in MOSS 2007Very detailed steps on creating custom properties in the advanced search. Lots of people here asking whether it would be possible to have a dropdown list with the choices available, such that the search options of the users are limited.This is something I am highly interested in, so I'd be interested if someone posts a solution to this.

Wednesday, November 7, 2007

Official Google Blog: It's not about the spam

Official Google Blog: It's not about the spamEver wondered how Gmail catches nearly all its Spam?

Thursday, November 1, 2007

SharePoint WorkFlow Link Dump

Workflow and ASPX formshttp://blogs.msdn.com/sharepoint/archive/2006/12/19/what-about-workflow-and-aspx-forms.aspxSharePoint 2007 Workflows - understanding what you can do with the various workflow types available in SharePointhttp://blogs.interknowlogy.com/rodneyguzman/archive/2007/03/20/12405.aspx

Wednesday, October 31, 2007

First steps to authoring Visual Studio Workflows for SharePoint

The following 4 posts from Sahil Malik I believe give you a few good sessions on authoring workflow with Visual Studio.1. Setting up your environment for writing VS2005 workflows.2. Writing an ultra basic workflow, deploying it, and slicing dicing how it worked.3. Making that workflow more complex, adding if/else, and a bunch of activities that sort of make it more interesting.4. Adding user

Adding Workflow Activities to the Visual Studio ToolBox

So you've thought you've setup all the environment to develop SharePoint Workflows using Visual Studio. However, when you create a SharePoint Sequential Workflow Library, the toolbox for SharePoint is empty whilst you know there should be something there.To add those activities to your workflow project. In the workflow designer page, right click on the Toolbox pane and Choose Add Tab and create

Using a Workflow to copy list items from one website to another

We currently have a requirement to implement staged environment. On a particular web application we want to be able to submit certain documents /forms semi-anonymously (thus exposing thus being able to expose this site to the Internet, although it won't be completely anonymous), with items from this webapp then being copied into an "internal" web application, which is used to allow internal users

Wednesday, October 24, 2007

InfoPath and Forms Server Resources

While researching a particular project we are working on concerning deployment of a number of InfoPath developed forms on Forms Server I came across a Technet WebCast which uses the XmlFormView control in ASP.NET to host InfoPath forms.This is something which is extremely cool, because you can have a simple aspx page which presents a minimal view just of your form (rendered via Forms Server),

Tuesday, October 23, 2007

Free SharePoint 2007 eBook

The following ebook is a very good resource for any new sharepoint developers, both as a good introduction and to explain new features in 2007 / WSS 3.0http://download.microsoft.com/download/0/2/f/02f0f661-88e1-43c2-b523-88d2e9e6802f/7%20Development%20Projects%20with%20the%202007%20Microsoft%20Office%20System%20and%20Windows%20SharePoint%20Services%202007.pdf

Friday, October 12, 2007

More branding links

CSS Branding - the way to do it...http://www.cleverworkarounds.com/2007/10/08/sharepoint-branding-how-css-works-with-master-pages-part-1/http://www.cleverworkarounds.com/2007/10/11/sharepoint-branding-how-css-works-with-master-pages-part-2/

Thursday, October 11, 2007

Breadcrumb links not working?

Personally I find the breadcrumb a very useful navigation tool, and it usually makes it quite clear to an end point user where the user is currently in terms of navigation (especially when you just want to go one level up).Seems like some of the default master pages which come with SharePoint have the bread crumb links off by default (e.g. BlueBand.master). There is a very simple solution for

Alerts and other emails taking too long to arrive?

On a SharePoint development environment or for demo purposes you don't want to wait 5 minutes (or whatever the default is) to receive alerts and other SharePoint emails. To make sure that these arrive every minute, you need to update the property of the immediate jobs alert timer.This is done by running the following command:stsadm -o setproperty -propertyname job-immediate-alerts -url http://

Wednesday, October 10, 2007

Customizing the My Site template / master page

Came across the following article from Steve Peschka about customizing my sites:http://blogs.msdn.com/sharepoint/archive/2007/03/22/customizing-moss-2007-my-sites-within-the-enterprise.aspxNot sure if this will allow you to apply master pages from the portal e.g. BlueBand.master or other master pages to the My Site.If anyone knows how to do this, please do drop me a line.In the meantime, I have

Friday, October 5, 2007

Presence Information / Online Status won't show unless ...

...you have MSN Messenger installed on the machine where you are accessing SharePoint.Other settings which you might need to look at:1. You have setup Person Name Smart Tag and Presence Settings in Web Application General Settings in Central Administration2. Site being accessed is in Trusted Site list

Thursday, October 4, 2007

Changing Service Accounts in MOSS / WSS

The following articles is quick overview of service accounts available, what they are used for, and how to change each of them to have a best practices configuration.http://weblogs.asp.net/erobillard/archive/2007/07/06/how-to-change-service-accounts-and-their-passwords-in-moss-and-wss-3-0.aspx

Tuesday, September 11, 2007

SharePoint 2007: Just in case you were contemplating any Sharepoint 2007 item limitations

We were investigating recently massive document libraries and their performance and it seems like limitations do exist, though if you plan correctly you should never reach these limits.http://bobmixon.com/BLOG/articles/MOSS_2007_limitations.aspxAlso a very good planning MS document with recommendations for planning enterprise content storage:http://technet2.microsoft.com/Office/en-us/library/

Wednesday, September 5, 2007

Fantastic 40 - Application Template install problems

I've been trying to get the Fantastic 40 templates to install for a few demos, and have encoutnered the following error:Feature '' is not installed in this farm, and can not be added to this scope.In my over excitement to get things working straight away, I ignored the most basic of needs of installing Site Admin templates in the Fantastic 40, i.e. I did not install the Application Core Teamplate

Friday, August 31, 2007

Infopath 2007 Web enabled forms - Limitations

If you've used Infopath, you know that the greatest limitation that there was with Infopath 2003 was that you HAD to have Infopath installed.With Sharepoint 2007 this is history. Web-enabled forms are doable (though you need to have SharePoint Enterprise).Obvisouly a zero footprint client can never have the thick client functionality. This is like comparing OWA to Outlook. Both are relevant in

Friday, August 24, 2007

Out of the office? Take SharePoint with you!

We have recently been investigating a great tool for SharePoint. This is the Colligo Contributor for SharePoint. It is a client side install, which allows any user to download whole SharePoint (or parts of ) sites locally, having a (thick client) interface which is virtually identical to the Sharepoint UI.This will enable users to take any SharePoint sites / libraries they are currently working

Thursday, July 5, 2007

Google within the office? The end of SharePoint Search?

Official Google Blog: 9,000 and countingWhat implications would this have on SharePoint Search? One of the strong selling features of SharePoint IMHO is the indexing of all data within the company. We call it the "internal google". Having the actual Google indexing and search technology available within the company is surely a challenge to any search and indexing enterprise software.What would

Wednesday, July 4, 2007

SharePoint 2007: Programmatically add an item/event to a SharePoint 2007 calendar using .NET code

Useful when adding calendar or other events to SharePoint lists via the Lists web service.http://enterprise-solutions.swits.net/infopath2007/article.php?t=programmatically-add-item-sharepoint-calendar-infopath&c=infopath2007Things of note:Lists Web ServiceYou can update items programatically using the Lists webservice: http://Server_Name/Site_Name/_vti_bin/Lists.asmxBatch XML

Monday, July 2, 2007

Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions

Ok, maybe this blog was about using SharePoint Designer and avoiding coding, but in some cases you have to code. In that case as a developer you should try to make your life as simple as possible.Back when I was developing webparts in 2003, deploying a webpart was a long(ish) procedure of signing assemblies and copying to the GAC and a lot of of other steps.Fast forward to SPS 2007 and I've come

Tuesday, June 12, 2007

Camping

Took a few days off, packed up the land rover with bare necessities (some tins of food, half a sack of potatoes, a few bottles of water, the dogs, and the girlfriend - not necessarily in that order :) ), and went off to Selmun. This is a small picturesque bay which is not very accessible unless you have a 4*4, and is usually quite quiet. Especially during weekdays, or when there are no long

SharePoint 2007: Blank Master Page

<%-- Identifies this page as a .master page written in C# and registers tag prefixes, namespaces, assemblies, and controls. --%><%@ Master language="C#" %><%@ Import Namespace="Microsoft.SharePoint" %><%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="

Friday, June 8, 2007

SharePoint 2007 - Tweaking the Data View with XSL

Following the Data View Basic Printing Page a small tip to show the use XSL in a Data View. What we will di is change status items e.g. High / Medium / Low into images in a Data View. These is nice to beautify your DataViewsFind the xsl:value for the column containing your status field. < xsl:value-of select="@Status"/> and change it to an xsl:choose<

Wednesday, June 6, 2007

SharePoint 2007 - Basic Printing page - listing of master / detail lists

Data Views are something which is quite standard in terms of SharePoint Designer, however, it gives you lots of flexibility, and I thought I'd bring this to the attention of those who still have not used it.DataViews can satisfy a request which we get often is the ability to print information in SharePoint. The normal pages usually contain too many non-content items that simply make a printout of

Friday, May 18, 2007

SharePoint 2007: Useful Customization Links

Enabling Drop-Down Menus in Team Siteshttp://sharingpoint.blogspot.com/2007/02/wss-v3-drop-down-menus-in-team-sites.htmlLink to access the master pages library (to upload your customized master page)http://yoursite/subsite/_catalogs/masterpage/Forms/AllItems.aspxCalling SharePoint Web Services from JavaScripthttp://blog.glenc.net/2007/04/20/calling-sharepoint-web-services-from-javascript/

Thursday, May 17, 2007

SharePoint 2007: Solving the List GUID Export Problem

In a previous post I blogged about the fact that when creating a custom DataSource using SharePoint Designer, the SelectParameters by default reference the ListId and then specifically the GUID. This creates a problem when exporting your customised page, since the ListId you reference will be lost and thus your DataSource will be practically useless.Its seems that other people have been

SharePoint 2007: Advanced Search Customisations (Link Dump)

These articles all say more or less the same thing, however some may be missing some steps, or may offer more details than others.Note that although most of articles mention MOSS, I've found that this works with Windows SharePoint Services 3.0 too.Ishai from SPSTips: How to Add Properties to advanced search in MOSS 2007http://www.sharepoint-tips.com/2006/07/

SharePoint 2007: Calendar Web Part Limitations (and their workarounds)

Although the Calendar Web Part has improved since the previous version, there are still quite a few limitations in its implementation. After a few days of playing around mostly with Calendar webparts I have found the following problems. Thanks to comments in this post, we now also have workarounds for these problems.

Friday, March 30, 2007

Adsense: Insert Google Adsense Into Blogger XML Post Body

I've been searching for a way of brining up AdSense just after the body of my post. Searched high and low and most of the ways I found were not working. Finally I got it to work thanks to this post.So if you've been managing to change the template with the AdSense code with no errors, but still get a javascript error when you view the blog, follow this post.

Tuesday, March 27, 2007

SharePoint 2007: List Migration / Export List for re-importing to another site

The stsadm.exe works mostly well for complete sites + subsites. However, if you want to export just lists, stsadm will not allow you to export. Therefore to migrate i.e. export and import a SharePoint list you need to do the following (painful) procedure. Create a template from the List you want to export (and include the content in the template), download a copy of the .stp template file created

Wednesday, March 7, 2007

SharePoint 2007: Tips and Tricks

SharePoint TODAY / ME field and calculated fields...Nicely explained by Mark Kruger MVP: Using [Today] in a Calculated Formula

SharePoint 2007: MVPs Blog

Found the following post by Yazan whilst looking for something. I've been using netvibes recently as an aggregate for all the SharePoint blogs I read, and the OPML creates a menu with all the great SharePoint blogs out there!Cheers Yazan! (Or who created the OPML :)

Thursday, March 1, 2007

VMNET.exe VM Antivirus Malware!

Just had a small problem with a small piece of nasty malware, which wasn't caught by my anti-virus software.If you are having a problem of Windows XP hanging just after choosing the username to login with, look for a file named vmnet.exe, if you do have it, it is the one which is causing you the headache. It was caught by Windows Malicious Software Removal tool, however it could not remove it.Be

Wednesday, February 21, 2007

SharePoint 2007: Issues / problems found (and ideally their solutions)

This post will contain problems I have found during the implementation of SharePoint, and hopefully eventually, a solution / workaround.Permissions - Creating a hybird between unique and inherited permissions.Let's say you have a parent site which has a Site Owners group. You want that members of the group Site Owners to have full rights to all child sites. So what you do is create a child site,

Saturday, February 17, 2007

Favourites icon and Favicon Maker

With the advent of IE7, the favourite icon on your website is much more important than it used to be... whereas before you would rarely see a favourite icon, with IE7 it is now visible immediately on each tab that you open.To create a favicon in your website there are various ways of doing this:Easiest: create a 16 * 16 pixel ICON image, name it favicon.ico and put it in the root of your

Monday, February 12, 2007

Google Tools I Love

Since my first discovery of Google quite a few years back, I've had a serious love affair with the search engine.I have quite a few philosophical ideas about the company, but its late, I've had a long day and I don't really feel like being very philosophical. Therefore, just a few links to the tools I love best from Google.Google Search - the power of the search should never be underestimated ...

SharePoint 2007: Permissions, permissions, permissions.

Update: Joel Olsen has a great post about permissions:http://blogs.msdn.com/joelo/archive/2007/06/29/sharepoint-groups-permissions-site-security-and-depreciated-site-groups.aspxSharePoint 2007 permissions functionality has increased so much (granularity / SharePoint groups / permission inheritance), that it is quite easy to get confused when trying to setup your permissions. As usual, Ton

Friday, February 2, 2007

SharePoint 2007: Content Deployment - Moving your content from Server to Server

The last cool feature that seems (up to now) to work like a charm in 2007 is Content Deployment. Basically, you can use content deployment to migrate your build from development to production. If you search for content deployment, I'm sure you'll find the nice MSDN blog which states how wonderful the content deployment is ... well, it is!Ton Stegemen has a good blog about this: http://

Thursday, February 1, 2007

SharePoint 2007: Web Capture Web Part

If you have experience with SharePoint 2003, you are most probably in love with the Web Capture Web Part.To install this Web Part on WSS 3.0 you need to fiddle around a little. You can't just download the Office Web Parts and Component from MS, because it will complain that you need WSS 2.0 installed to be able to install the file...Thanks to this post on Shane Young's blog, you can get the Web

Saturday, January 27, 2007

Joomla: Flash Photo Gallery - Expose

Recently in one of my Joomla sites (HE), I needed to implement a timeline, with photos for several periods. I needed a component which features a slideshow, with a slider, and which can be organized by categories / albums. If it could support video, it would be even better! And ideally, photos cannot be ripped off ;)Thank god for Expose! All the above rolled into one flash photo gallery, you can

Tuesday, January 16, 2007

SharePoint 2007: Creating several site collections

Enable Self Service Site Creation in the Central Administration (Steps Below)Log into the Central Administration Site. (Note that this is a unique site collection as well, and if you have it located on a funny port number, it is usually a good idea to add it to your My Links).Click Application Management Click Self-service site management Select the correct Web application (that step is easy to

SharePoint 2007: Favourite Links

SharePoint Design - Master Pages and default pageshttp://sharingpoint.blogspot.com/2006/06/extreme-sharepoint-design-_115108192207171602.htmlSharePoint 2007 SiteGroups - part 1 - the basicshttp://www.sharepointblogs.com/tonstegeman/archive/2006/10/14/13889.aspxBlogs I found useful:http://www.sharepointblogs.comhttp://www.sharepointblogs.com/helloitsliam/http://www.sharepointblogs.com/vandest/http

Monday, January 15, 2007

SharePoint 2007: Customising the site directory

Customizing the site directory in SharePoint 2007.Let's see what cool links we'll find to do this:http://glenc.wordpress.com/2006/07/23/customizing-the-site-directory-in-moss-2007/Above post is extermely interesting ...If you go to the Settings of the Sites list, you will find quite a few interesting play things especially in the views.Categories - this looks like the categories which are used to

SharePoint 2007: Windows Authentication and Internet Explorer Enhanced Security Configuration

Steps to remove the login screen from SharePoint 2007Enable Windows Authentication (NTLM)Add the SharePoint site to your IntranetIf you still get the login screen, this might be because you have Internet Explorer Enhanced Security switched. You need to disable it to remove the login screen. To disable it, go to Add / Remove control panel applet, go to Add / Remove Windows Components, find the

Thursday, January 11, 2007

SharePoint 2007: Installation Requirements (2007 Server Farm)

Software RequirementsWindows 2003 Server (SP1) with IIS SQL Server 2005 (SP1) .NET Framework 3.0 If the installation of SharePoint stops you asking for Windows Workflow foundation, download and install .NET Framework 3.0 and you should be able to proceed. Pre-installation SetupCreate a Windows User Account which SharePoint will be using to access the SQL Server. If the SQL Server will be hosted