Error: New instances of this workflow template are currently disallowed.

Sometimes we may get this error whenever we re-install the workflow after doing some changes. It may come once you un-install the workflow and install it again. Now how to allow new instances for workflow? To resolve this problem we need to set the workflow association to “Allow” and the new instances of the workflow…


Customize the QuickLaunch menu and show it on top of the site as TopNavigation menu

Once I got an interesting question from our internal discussions about whether we can show the QuickLaunch menu on top of the site as how TopNavigation menu bar look like. The requirement is given below. The left navigation menu (<SharePoint:AspMenu id=”QuickLaunchMenu” DataSourceId=”QuickLaunchSiteMap” /> ) has been implemented in the default.master (for teamsites) and you can…


How to create a webpart with chrome type

If we want to customize the layout a webpart – say don’t want the border and title, or only need border or only need title etc, we will do it through UI by setting the Chrome type of the corresponding webpart. Here I just want to know how we can set this one by default…


How to find out the storage space allocation details a site through code.

SharePoint has a cool and great facility called Quota templates. In order to get this facility in UI, you have to do the following. Refer: Enable the site collection quotas in the central administration site – under application management. Once you click on the “site collection quotas and locks” you will be redirecting to…


Work-around to render the custom field in list view

Once I got a request from one of colleagues to create custom button field which will kick off a workflow for the list item which it get associated. Then, I had created a custom field which inherited from SPFieldText and rendered an button control and in the click event I have implemented the code…


Integration of Oracle Access Manager with SharePoint webapplications

Recently I had worked with an interesting case in which customer was using Oracle Access Manager  (OAM) for providing the security in their application. They were using a Java application in which they were used LDAP membership provider. There was a SharePoint webapplication which was configured to use FBA and use the same LDAP membership provider….


Pull the information about all the subsites under a root site collection

Here I am giving a sample code which will iterate all the subsites of a root site collection and display some information. 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: using Microsoft.SharePoint; 5:  6: namespace SubSiteReport 7: { 8: class Program 9: { 10: static void Main(string[] args) 11: { 12: Console.WriteLine("Enter your…


Best Practices: SharePoint Object Model for Performance Tuning

I am writing this post because of being inspired by couple of performance related cases that I had worked with my customers also one of triages that I had attended and it was taken by our Escalation Engineer Nishand. He did a very good job by finding out the inside edge of SharePoint APIs and…


Feature Activation Dependency with Hidden Features !

A Feature activation dependency expresses a requirement in the relationship between two Features. You can express activation dependencies either for Features of the same scope or for Features across different scopes. Please check this link for getting more information about the Activation Dependency. More . Here we are going to talk about the Feature Activation…


Programmatically rename a file inside a SharePoint document library

We can’t rename a file using file property SPFile.Name, it will say “Property or indexer ‘Microsoft.SharePoint.SPFile.Name’ cannot be assigned to — it is read only.”, then how we can rename a file ?   Yes, the “name” and “display name” are read-only fields, so you will get an error at the time of compilation. But…