How to set Developer DashBoard programatically.

When Developer dashboard is set on demand then you will find an icon at  top right corner to launch it.

DiscussionBoard Lists in sp2010: Part 1

In SP2010, actually all discussion board lists are created with BaseType = 0 and it falls in to GenericList category. This is a bug (definitely) in SP2010.

  1. This is the reason why you could not get them when you have tried with SPSiteDataQuery and list for BaseType = 3
  2. That’s why web.GetListsOfType(SPBaseType.DiscussionBoard) will not return any list.

(SharePoint Guys pls fix this…)

Using serverTemplate=108 with SPSiteDataQuery will still retrieve items from all Discussion Board list. SPSiteDtaQuery is efficient method for retrieving list items. There are few things to keep in mind while querying Discussion Board [or say any type of list]

  • If you want to retrieve all list names of specific type (not interested in list items) choose linq to SharePoint Option.
  • If you want to retrieve data from selected lists or from all lists in the current site collection choose SPSiteDataQuery.

Hope that helps…

How to set default method per operation for external entity/BCS

As you are reading this post I believe you already know how to create external entity CRUD and specific finder methods and you already have created multiple methods.
1)    Setting default method for external entity created in SPD. Open SPD and edit your target (finder/updater/creator/delete) method/operation.  Check the “Use this operation as the default finder/update  … operation” and save it. This is always checked when you are creating new operation in SharePoint Designer.

2)    Setting default method for external entity created in Visual Studio 2010.
Open the .bdcm file for your BCS project. Set Default =”True” for your target method.
Make sure that you have only one default method per operation.

Already created external list will not adopt this change. You have to create new external list to get this change in action.