SharePoint Use Cases

06 Apr, 2010

Search AutoComplete for SharePoint 2010 lists

Posted by: Toni Frankola In: SharePoint|SharePoint 2010  Bookmark and Share

Posts in the "Introduction to SharePoint 2010 SandBox Solutions" series

In my previous post I explained how to create an interactive search for SharePoint 2007 lists. It’s time to take things to the next level, so let me introduce Search AutoComplete for SharePoint 2010 list (download). It gives you the same functionality (search as you type) as the previous version but it is created as SandBox solution (check my post Introduction to SharePoint 2010 SandBox Solutions for Site Collection Owners for details).

This solution is free and can be downloaded as WSP or with full source code. The solution uses following technologies: JQuery, JQueryUI and SharePoint 2010 Client OM.

Installation

Search AutoComplete for SharePoint Lists is a SandBox solution and can be deployed to any farm environment. If Sandbox solutions are disallowed for your site collection, contact your farm administrator.

  • Download and unpack solution package
  • Go to your Site Collection > Site Actions > Site Settings
  • Browse Galleries > Solutions
  • Go to Solutions ribbon tab and click Upload Solution
  • Upload the WSP package you downloaded and Activate it
  • Open a SharePoint web page and Insert a web part
    (from Custom > Search AutoComplete for Lists)

Configuration

Web part needs to be configured to properly search a list on your web site.

  • Choose Edit Web Part from the web part context menu
    Edit Web Part
  • Expand Search section in the Web Part Toolpane
    Web Part Properties
  • Type the name list name in the List Name field (e.g. Contacts)
  • Type the names of list columns you want to display in Display Fields Field (e.g. [Title])
    • Surround column names with square brackets (e.g. “[FirstName] [Title], [WorkPhone”) <- internal name for LastName is Title :)
    • Use internal field names

The benefit of a SandBox solution

Solution like this one could be deployed via Content Editor web part, but in such case users will have to manually customize a script to work on their site. When deployed as Sandbox solution, its properties will be exposed as web part properties, and users do not need to modify the code. Further more you can use .NET to run additional stuff on the server side.

What’s next?

In next posts in this series:

  • How to deploy Search AutoComplete for SharePoint lists without Sandbox
  • How to enforce Sandbox Solution web part properties
  • How to use Search AutoComplete for Central Admin commands

Stay tuned!



Documentation Toolkit for SharePoint

Comments

1 | Tweets that mention Search AutoComplete for SharePoint 2010 lists | SharePoint Use Cases -- Topsy.com

April 6th, 2010 at 10:31 am

Avatar

[...] This post was mentioned on Twitter by Toni Frankola, Michal Pisarek. Michal Pisarek said: RT @ToniFrankola: Announcing Search AutoComplete for #SharePoint 2010 lists http://bit.ly/d1s2Dc [PIC> http://twitpic.com/1dnpj8 #sp2010 [...]

2 | Tweets that mention Search AutoComplete for SharePoint 2010 lists | SharePoint Use Cases -- Topsy.com

April 6th, 2010 at 7:30 pm

Avatar

[...] This post was mentioned on Twitter by SharePoint Dev Wiki. SharePoint Dev Wiki said: #SharePoint #Link Search AutoComplete for SharePoint 2010 lists | SharePoint Use Cases http://ow.ly/1701fR [...]

3 | uberVU - social comments

April 7th, 2010 at 3:19 am

Avatar

Social comments and analytics for this post…

This post was mentioned on Twitter by ToniFrankola: [Blog] Announcing Search AutoComplete for #SharePoint 2010 lists http://bit.ly/d1s2Dc [PIC> http://twitpic.com/1dnpj8 #sp2010…

4 | Benefits of Windows Reseller Hosting For Web Designers | Article Directory Store

April 7th, 2010 at 5:47 pm

Avatar

[...] Search AutoComplete for SharePoint 2010 lists | SharePoint Use Cases [...]

5 | Search AutoComplete for SharePoint 2010 Central Administration | SharePoint Use Cases

April 12th, 2010 at 5:44 am

Avatar

[...] Solutions" seriesIntroduction to SharePoint 2010 SandBox Solutions for Site Collection OwnersSearch AutoComplete for SharePoint 2010 listsSearch AutoComplete for SharePoint 2010 Central [...]

8 | Sandboxed Solutions and SharePoint 2010 - Fear and Loathing

July 9th, 2010 at 1:08 pm

Avatar

[...] Search AutoComplete for SharePoint 2010 Lists [...]

Comment Form


About

Real-life use case and opinions about collaboration, CRM and web technologies and stuff by Toni Frankola. More...

Toni Frankola - SharePoint MVP Profile

All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Page optimized by WP Minify WordPress Plugin