SharePoint 2010 101 Code Samples

Found the below code samples in the MSDN SharePoint Developer Center.

Each code sample is part of the SharePoint 2010 101 code samples project. These samples are provided so that you can incorporate them directly in your code. Each code sample consists of a standalone project created in Microsoft Visual Studio 2010.

http://code.msdn.microsoft.com/SharePoint-2010-101-Code-da251182

Prevent Past booking and Limit Advance booking in SharePoint 2010 Calendar

I’m talking about the SharePoint 2010 calendar list validations in this post.

Well, what i mean by ‘Past booking’ is user should not be able to add an event in the past date/time and Limit Advance booking means user should not be able to add an event beyond a limited number of days (eg: 2 days)

Calendar > List Settings > Validation settings > Formula

The below formula will prevent the user from booking for the past date/time.

=[Start Time]>Created

If you don’t want the user to created an event beyond 2 days limit:

=[End Time]<(Created+2)

Now, what if i want to combine both the above validations!! Here it is:

=AND([Start Time]>Created,[End Time]<(Created+2))

With this above formula in place, user won’t be able to create an event in the past date/time neither will he be able to create an event beyond 2 days from the current date/time.

Few more reference links for list/column validation:

http://jacksonc.wordpress.com/2009/12/07/list-validations-in-sharepoint-2010/

http://www.mstechblogs.com/sharepoint/list-level-validation-in-sharepoint-2010/

http://blog.knowledgelake.com/2010/04/ecm-features-that-rock-in-sharepoint-2010-list-validations/

http://mstecharchitect.blogspot.com/2010/01/field-and-list-item-validation-in.html

http://www.chakkaradeep.com/post/SharePoint-2010-List-Improvements-e28093-Column-Validation-and-List-Validation-Settings.aspx

How to make PDF documents searchable in SharePoint 2010?

PDF documents are not searchable by default in SharePoint 2010. Yes, you might see PDF documents in search results. But those are searched based on the pdf document properties (filename, document title, document subject etc,.) and not searched with the “content” within the pdf document.

Solution:
To make the pdf document content also searchable, you need to install PDF iFilter.

Here is an official MS support article on How to make PDF documents searchable: http://support.microsoft.com/kb/2293357

If you are looking for a step-by-step guide: http://nickgrattan.wordpress.com/2010/06/14/adobe-pdf-ifilter-indexing-with-sharepoint%C2%A02010/
Note: Don’t miss the end of the article which points you to an article on automating this process using powershell script.

If you want other options apart from Adobe iFilter Jie has written a great article with comparisons too: http://blogs.msdn.com/b/opal/archive/2009/10/20/index-and-search-pdf-files-in-sharepoint-server-2010.aspx

SharePoint 2010 Capacity Planning in nutshell

Just came across this blog post which talks in very simple descriptive ways on SharePoint 2010 Capacity Planning:
http://www.astaticstate.com/2010/06/sharepoint-2010-capacity-planning.html

Could be handy for SharePoint administrators.

SharePoint 2010 installation pre-requisites download

updated: 10 March, 2011

Microsoft .NET Framework 3.5

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6

Microsoft .NET Framework 3.5 Service Pack 1

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=AB99342F-5D1A-413D-8319-81DA479AB0D7

Windows Identity Foundation

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=EB9C345F-E830-40B8-A5FE-AE7A864C4D76

Microsoft Chart Controls for Microsoft .NET Framework 3.5

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=130F7986-BF49-4FE5-9CA8-910AE6EA442C

Microsoft SharePoint Designer 2010 (64-bit)

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=566D3F55-77A5-4298-BB9C-F55F096B125D

Microsoft SharePoint Designer 2010 (32-bit)

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=D88A1505-849B-4587-B854-A7054EE28D66

SQL Server® 2008 R2 Reporting Services Add-in for Microsoft SharePoint® Technologies 2010

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3bebf9d-d86d-48cd-94e2-0639a846be80

Microsoft SQL Server 2008 Reporting Services Add-in for Microsoft SharePoint Technologies

Note: This is for MOSS 2007 or WSS 3.0
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=200FD7B5-DB7C-4B8C-A7DC-5EFEE6E19005

Official SharePoint website

http://sharepoint.microsoft.com/

View the same site in other international Languages: http://sharepoint.microsoft.com/Pages/worldwide.aspx

Follow

Get every new post delivered to your Inbox.