Tag Archives: SharePoint

Set Status Bar Colour

SharePoint Short #1 To set the colour of a SharePoint 2010 status message, it’s important to specify it in lower-case and not start with an upper-case letter. The MSDN page for setStatusPriColor, found here, shows the colour values starting with … Continue reading

Posted in SharePoint Shorts | Tagged , | Leave a comment

Get ListTemplate and Create New List in PowerShell

A PowerShell related post today: To create a list or library in SharePoint, you can do the following: $web = Get-SPWeb "http://serverUrl" $web.Lists.Add("List Title", "List description", "Template Name")$web = Get-SPWeb "http://serverUrl" $web.Lists.Add("List Title", "List description", "Template Name") Now, say you … Continue reading

Posted in SharePoint | Tagged , | 1 Comment

Task locked by Running Workflow and Cannot be Edited

If you’re trying to update a task item that is linked to a running workflow using code similar to public UpdateTaskItem(SPList taskList, int identifier, string newValue) { taskItem = taskList.GetItemById(identifier); // Update task item taskItem["fieldname"] = newValue; taskItem.Update(); }public UpdateTaskItem(SPList … Continue reading

Posted in SharePoint, Workflow | Tagged , , | Leave a comment

Remove property from SPPropertyBag

Have you ever tried to remove a property from a SPWeb object and after applying the update, when you next check for the property it is still there? Logically, you’d think the following code would do this for you: webObject.Properties.Remove("yourkey"); … Continue reading

Posted in SharePoint | Tagged , | Leave a comment

Open with Explorer on Server

If you’re developing with SharePoint using Windows Server 2008 (will work with Windows 7, unless someone’s restricted the Windows Features that are installed) and are unable to open a library via Windows Explorer, follow the simple steps outlined below to … Continue reading

Posted in Configuration, SharePoint | Tagged | Leave a comment