Author Archives: Bernado

Unknown's avatar

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.

“Object reference not set to an instance of an object” when calling SPFarm.Local

If you are getting “Object reference not set to an instance of an object” when calling SPFarm.Local in a stand-alone app (e.g. console app), and you are developing against SharePoint 2010, then check that your project is set to target … Continue reading

Posted in SharePoint 2010 | Leave a comment

Developing SharePoint workflows for MOSS 2007 x64 in Visual Studio 2010

There are a couple of postings about this on the web, but none seem to be complete. These are the steps I took to get this to work: Ensure WSS 3.0 SDK is installed. Remember to restart VS 2010 after … Continue reading

Posted in SharePoint, Workflow | Leave a comment

List attribute of Lookup field schema – Using URL versus GUID

There has been a lot of research about the List attribute of the XML schema of Lookup fields. In this post I will summarise their findings and add my 2cents about the pros and cons of each approach. Some recommended … Continue reading

Posted in Lookup Columns, SharePoint, SharePoint 2010, Uncategorized | Leave a comment

How to create cross-web Lookup fields through XML schema

By “cross-web” Lookup fields, I mean a Lookup fields that refers to a source list that is in a different subweb than where it is currently being used. So ListA has a Lookup field that points to ListB. ListB however … Continue reading

Posted in Lookup Columns, SharePoint, SharePoint 2010 | 4 Comments

Strategy for maintaining isolation and source code manageability for Framework libraries in SharePoint

Wow what a long post title! Let me explain.. Overview SharePoint apps on the same server shares a common GAC. How do we reuse Framework libraries across these apps, yet: Keep the Framework runtime code isolated for each client system to: Reduce risk and … Continue reading

Posted in Practices, SharePoint | Leave a comment

Jazzing up your list in SharePoint 2010

In SP2010, out-of-the-box list views use the XsltListViewWebPart and this gives you a lot more flexibility in customising the look and feel of your list, for example you can apply Conditional Formatting to your list using SharePoint Designer. In this … Continue reading

Posted in SharePoint, SharePoint Designer, XsltListViewWebPart | Leave a comment

Cannot make a cache safe URL for “1033/sp.js”, file not found

I was playing around with writing WebParts and using the SharePoint Javascript Client Object Model (COM – I wish people would standardise this acronym soon!). I added a ScriptLink to SP.js but got this error: Cannot make a cache safe … Continue reading

Posted in Client Object Model, SharePoint | Leave a comment

Getting class name of variables in SharePoint’s Javascript client object model

Have you suffered from the pain of debugging SharePoint Client Object Model (COM) in Javascript? If you haven’t.. I think you soon will. The SP COM introduces lots of classes in Javascript. Although you can add some basic intellisense for … Continue reading

Posted in Client Object Model, SharePoint | Leave a comment

Content type visibility in document libraries

In a document library, once you have enabled content type management and added content types to the library, these content types are visible for the users in 3 places: on the New toolbar menu, when uploading a document when editing … Continue reading

Posted in Content Types, SharePoint | 2 Comments

How to export permission list for a group in SharePoint

When viewing a group in SharePoint, you can view a list of all permissions of that group across the site collection by going to Settings\View Group Permissions. Here is what that would look like: Today a colleague wanted to export … Continue reading

Posted in SharePoint | 4 Comments