Patrick\’s Bytes

19, February 2008

SharePoint tips and tricks – 20 Feb 08

Filed under: CAML,Sharepoint — patrickyong @ 5:17 pm

Spent a day with one of my partner to help them look into some SharePoint issues they face. They want to do quite a lot of customization on the CAML part do I manage to dig out some resources for them.

1. Dynamic Query on CAML

CAML inside SharePoint ASPX view pages are static, meaning they are based on fixed numbers of parameters. You can have it dynamic with some coding on the ASPX page. Robert Wheeler got a good post here.

2. Don’t like CAML? What about SharePoint dataview?

As a SharePoint developer, a lot of the time when users asked for a feature, the first thing we might do is fire off Visual Studio (after the requirement la). But little known to developers, SharePoint Designer offers a powerful tool not just for workflow authoring but also creating custom SharePoint view called data view. Ian from Intergen has a nice demo on this.

3. Complex filter on SharePoint view

Back in the SharePoint 2003 days, there is a tutorial on DevX showing developers how to create a custom webpart which acts as dynamic parameter input and with the click on submit the view will be refreshed based on parameter entered in the webpart. It is not working for WSS 3.0 or MOSS 2007 but the idea is worth exploring, I will post again if there is any update on this.

4. SharePont goodies

Mention about Intergen and I remember the website they maintained which has all the goodies from tools and tutorial on SharePoint development.{4F7FE54C-0C1D-458C-84FD-6150B68AFCEB}&SelectedID=32

5. Bloat up your SharePoint site and stress test your SharePoint site

Found from the Intergen side is a useful little utility that automatically populates data in your SharePoint site. you can skip hours or writing scripts and mannually adding data to your site.

6. Managing your list

Another tool I found which do quite a few cool things


  • create LookUp-columns who looks in lists of other web on same server
  • make a column readonly, hidden or undeleteable
  • manage where the column are displayed (e.g.: new or edit mode)


  • attach or remove EventHandler to Lists
  • prevent a list for deletion
  • make a list invisible


  • edit all possible settings (Advanced – Mode)

7. SharePoint integration tips from MS CRM folks

MS CRM is one of the most well integrated product with sharepoint and experted provides tips like creating custom fields which look up other data source or creating folders programmatically based on MS CRM (or any LOB) data.

8. Back to earth… err… back to CAML

People don’t call Karine Bosch the CAML girl for fun, she created tonnes of tools for CAML editing and 2 of the best are here:

CAML Query Builder v2.0 (Winform)

CAML Query Builder Feature (As a SharePoint feature and web based)

9 Like CAML yet? But lazy to learn?

There is a upcoming project which enables LINQ to work on SharePoint. Although the actual usage of LINQ for SharePoint is different CAML, it is worthy to try it out.


1 Comment »

  1. Great links Patrick
    some of it really help me with my current project on sharepoint

    The Dynamic CAML is a killer. feature that we’ve been looking for so long.

    thanx again

    Comment by laiseng — 20, February 2008 @ 4:21 am | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: