Updating existing lookup fields in SharePoint

Posted by Eric Bartels

Creating lookup-fields only via XML-Definition is not possible. You need the ID of the Web hosting the list and the ID of the list hosting the data the lookup field is connected to. This information can only be retrieved when both entities are created… Object model?! When looking into the SPFieldLookup-class you find the properties [...]

With great power comes – PublishingWeb.DefaultPage

Posted by Eric Bartels

or at least the power of “Use Remote Interfaces – Use SOAP, Web DAV, or SharePoint Designer interfaces to access the Web site”. In a SharePoint project I’m working on it was necessary to get the default page of a publishing web in case where it differs from default.aspx.   In the environment the project [...]

Do not use DateTimeField when displaying the date of your field

Posted by Eric Bartels

I have a “DateTime-field” inside a list which contains both date and time. In order to allow the user to edit this information inside the publishing page I used the Microsoft.SharePoint.WebControls.DateTimeField. If you only want to display that field-value you can simply use the ControlMode-property and set it to Display. If you want to display [...]

Site-Definitions within SharePoint are useless!

Posted by Eric Bartels

Last week I nearly fell of my chair I was sitting on. I found a kb article filed under http://support.microsoft.com/kb/898631/en-us. This articles describes what is supported and what is not supported regarding site definitions within SharePoint. We do not support modifying a custom site definition or a custom area definition after you create a new [...]

How to make accidentally “hidden” pages in meeting workspaces visible

Posted by Eric Bartels

A customer of  mine recently had a problem with pages (theses pages appear as tabs) inside a meeting workspace. Only the author of the page was able to see the page. No other user (even me as Site-Collection-Admin) was not able to see or access the page. It comes to my mind that the page [...]