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.
Oddly enough, the SPList object doesn’t have a URL property which gives you the server relative URL of the List. So, here’s a code snippet to retrieve it.
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
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;
I’m working on a feature which creates List instances, the feature has a receiver which makes configuration changes to the created Lists. When activating the feature for the first time (when the list instance is created) the receiver executes and an SPException is thrown when the code calls the SPList.Update method. The information in the … Continue reading SharePoint: Calling SPList.Update Causes “Save Conflict” SPException
Todd Baginski’s SharePoint 2003 and MOSS 2007 Blog » Adding a Document Library Feature to a Site Definition in WSS V3 / MOSS 2007.