Introduction When in a (localized) variations site, certain “list templates” do not show when trying to create a new list. The “list template” is only available in the master variation with the locale set to English. Including list templates in your SharePoint (Visual Studio) projects can be straight forward. On a list do a “save [...]
Archive for the ‘Development’ Category
Update vs Systemupdate vs UpdateOverwriteVersion
Posted in Development, SharePoint, Uncategorized, Workflows, tagged differences, Event handler, Modified by, systemupdate, triggering events, update, UpdateOverwriteVersion, version, workflows on September 6, 2011 | Leave a Comment »
When creating event receivers or workflows it might be interesting to look at the differences between the following SPListItem methods. The differences might be subtle but it can make a huge difference when you have extra event receivers or workflows attached to your SharePoint list or items. Update() Updates the item in the database. Updates [...]
The ‘Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine
Posted in Development, SharePoint, Uncategorized, tagged 64bit, Excel, JET, Office integration, OleDb, SharePoint, SP2010, x64 on August 24, 2011 | Leave a Comment »
We often get Excel files with content to import into SharePoint. Most of the time I fire up Visual Studio and write a small console application to import the Excel data. However with SharePoint 2010 I got the error “The ‘Microsoft.Jet.OLEDB.4.0′ provider is not registered on the local machine”. The idea When I need to [...]
NLog configuration file to log like Log4Net.
Posted in Development, SharePoint, Tips, Tools on July 21, 2011 | Leave a Comment »
Here is a NLog config file that generates a similar log file layout as with the (default) Log4Net settings. This NLog configuration also includes the date in the log file name to mimic the Log4Net ‘rollingFileAppender’ behavior. file: NLog.config
Custom master page error : “You must specify a value for this required field”
Posted in Branding, Layout, look and feel, Development, SharePoint on July 20, 2011 | Leave a Comment »
When using a custom master page and editing a page in SharePoint 2010 I received a dialog box the following error: “You must specify a value for this required field”. This error is caused when you set the contentplaceholder ‘PlaceHolderPageTitleInTitleArea’ to: Visible=”False”. After removing the Visible=False attribute from the contentplaceholder the error disappeared. As a [...]
Format xslt date
Posted in Branding, Layout, look and feel, Development, SharePoint, Uncategorized on June 21, 2011 | Leave a Comment »
To format data in SharePoint I often use xslt. The default formatting of dates however is pretty useless <xsl:value-of select=”@YourDateParam”/> Results in : 2009-03-23 00:00:00 You can also use a predefined locale like this: <xsl:value-of select=”ddwrt:FormatDate(@YourDateParam, 1033, 15)”/> Results in : Thursay, August 24, 2011 09:00:00 PM If your required date time format [...]
Google Maps in SharePoint 2010 using standard functionality.
Posted in Branding, Layout, look and feel, Development, SharePoint, Uncategorized, Web parts and solutions, tagged Content editor, Display HTML assets, free, Google Maps, Google maps web part, insert map, OOB, Out of box, SharePoint 2010, standard functionlaity, webpart on May 4, 2011 | 2 Comments »
Introduction. In SharePoint 2010 you can use Google Maps without having to download extra webparts or third party tools. In this article I will explain how you can insert “Google Maps” maps in your SharePoint 2011 site with only using standard out of the box SharePoint 2010 features. It’s a generic solution which can also [...]
Logging in SharePoint. Log4Net versus NLog
Posted in Development, IIS, SharePoint, Tools, Uncategorized, tagged config file, config location, Log4Net, logging SharePoint, NLog, owstimer on April 27, 2011 | Leave a Comment »
Introduction Sometimes I prefer logging to a simple log file instead of using the Event Log, Tracing or the SharePoint Logs. The ability to turn on and off these logs without having to update a dll or web.config is a great advantage in SharePoint as well. I was a fan of Log4net project but the [...]
Dispose SPWeb objects while iterating to parent
Posted in Development, SharePoint, Uncategorized, Web parts and solutions, tagged SharePoint, Dispose, while, iterate to parentweb, loop to parent, SPWeb on March 21, 2011 | 1 Comment »
While programming in SharePoint, did you ever needed to work your way back to the parent website? Probably the easiest, but not the recommended, way to do this is: The problem with this approach is that you are not disposing your SPWeb and SPSite objects. You should correctly dispose you SharePoint objects to avoid memory [...]