Provisioning a SharePoint 2010 List Instance Causes Exception in a Site Scoped Feature


Provisioning a list using the ListInstance element causes an exception, if the element is included in a Site scoped feature and the RootWebOnly attribute is set to TRUE. Setting RootWebOnly to FALSE, or removing the attribute, works as expected. If the ListInstance element, as shown above, is included in a Web scoped feature, it works … Continue reading Provisioning a SharePoint 2010 List Instance Causes Exception in a Site Scoped Feature

SharePoint: EncodedAbsUrl and the Full URL of an SPListItem.


You want to get the full URL of an SPListItem, but the SPListItem.Url property returns only the server relative URL. You could concatenate together the SPListItem.Web.Url and SPListItem.Url property values, alternatively you can use the ows_EncodedAbsUrl metadata value; The exact form of this metadata value seems to vary according to how it’s used, such as … Continue reading SharePoint: EncodedAbsUrl and the Full URL of an SPListItem.

SharePoint: Data Connection List Template is not Available


You’re trying to create a Data Connection Library in a SharePoint site and you find that the template isn’t available. Note that the Data Connection list template is only available in MOSS 2007. The Data Connection list template feature (feature id: 00BFEA71-DBD7-4F72-B8CB-DA7AC0440130) isn’t actiavted against all site definitions, and if you are using a custom … Continue reading SharePoint: Data Connection List Template is not Available

Setting List Properties using Reflection


I’m working on a feature which allows you make configuration changes to List instances on feature activation. The exact configuration is provided to the feature via feature properties and I wanted to be able to set property values on the SPList instance dynamically using reflection. Here’s the code which does that;