10/29/2009

Cincinnati SharePoint User Group Meeting (November 2009)

We have a new URL! http://www.CincinnatiSPUG.org
(this still works:  http://cincyspug.securespsites.com )

 

6:00 PM 11/5/09 at MAX Technical Training

Topic: SharePoint 2010 (what else could it be, just after the big announcements!)

 

We have door prizes!  We have a number of SharePoint books and other goodies to give away!
We will also have some discount codes just for people who attend from several major book publishers.

10/26/2009

SharePoint: SharePoint 2010 Posters (Technical diagrams) Available

14 free posters for SharePoint 14!  34-by-44-inch posters.

http://technet.microsoft.com/en-us/library/cc263199(office.14).aspx

 

Services in SharePoint 2010 Products
Describes and illustrates the services architecture, including and common ways to deploy services in your overall solution design.

Cross-farm Services in SharePoint 2010 Products
Illustrates how to deploy services across farms to provide centralized administration of services.

Topologies for SharePoint Server 2010
Describes common ways to build and scale farm topologies, including planning which servers to start services on.

Hosting Environments in SharePoint 2010 Products
Summarizes the support for hosting environments and illustrates common hosting architectures.

Search Technologies for SharePoint 2010 Products
Compares and contrasts the search technologies that work with SharePoint Products 2010:SharePoint Foundation 2010,Search Server 2010 Express,Search Server 2010,SharePoint Server 2010,FAST Search Server 2010 for SharePoint

Search Environment Planning for Microsoft SharePoint Server 2010
Walks through primary architecture design decisions for search environments.

Search Architectures for Microsoft SharePoint Server 2010
Details the physical and logical architecture components that make up a search system and illustrates common search architectures.

Design Search Architectures for Microsoft SharePoint Server 2010
Walks through the initial design steps to determine a basic design for a SharePoint Server 2010 search architecture.

Business Connectivity Services Model
This model poster describes the architecture of Microsoft Business Connectivity Services in SharePoint Server 2010 and provides information about how to create solutions that are based on the service.

Microsoft SharePoint Server 2010 Upgrade Planning
This model covers planning for an upgrade from Microsoft Office SharePoint Server 2007 to SharePoint Server 2010.

Microsoft SharePoint Server 2010 Upgrade Approaches
This model helps you understand the in-place, database attach, and hybrid approaches to upgrading from Office SharePoint Server 2007 to SharePoint Server 2010.

Microsoft SharePoint Server 2010 — Test Your Upgrade Process
This model explains the methodology for testing the upgrade process before upgrading from Office SharePoint Server 2007 to SharePoint Server 2010.

Microsoft SharePoint Server 2010 — Services Upgrade
This model covers upgrading services from Office SharePoint Server 2007 to SharePoint Server 2010.

Choose a tool for business intelligence in SharePoint Server 2010
Discusses the tools available for business intelligence

10/19/2009

SharePoint: Setting a People Picker field using the API

 

Funny how the obvious does not always work… For example, you want to create a new task in code and assign it to some one. You might try to set the Assigned To field to the user's name:

      SPItem itm6 = lst.Items.Add();
      itm6["Title"] = "test2";
      itm6["Assigned To"] = @"MAXSP2007\samc";               //fails!
      itm6.Update();

“Assigned To” is a “People Picker” field and only accepts data in certain ways, any but the obvious. If you read this field you will see a value like:  “8#;MAXSP2007\samc”, and using that value will work…

What the "People Picker” field wants is the ID of the user, the “8”.  The rest appears to be ignored. So, here’s several ways to get there:


itm1["Assigned To"] = web.AllUsers[@"MAXSP2007\samc"]; //works
- itm2["Assigned To"] = 8; //works
- itm3["Assigned To"] = web.AllUsers[@"MAXSP2007\samc"]; //works - SPMember member = web.AllUsers[@"MAXSP2007\samc"]; itm4["Assigned To"] = member.ID; //works - SPMember member = web.AllUsers[@"MAXSP2007\samc"]; itm5["Assigned To"] = member; //works

 

.

 

 

 

9/25/2009

SharePoint: Hiding the Search Box

Sometimes a site or site page has only one purpose, and you don’t want the distraction of the search controls. The search controls are easy to hide and can be hidden at various levels…

 

To hide the search control on just one page:

  • Add a Content Editor Web Part (CEWP)
  • Edit the web part and click the Source Editor button
  • Paste the following:
   <style>
     #SRSB {display:none}
   </style>

 

To hide the search control on all pages:

  • Use SharePoint Designer to edit your master page and put the above style tag just after the SharePoint style controls
   <SharePoint:CssLink runat="server"/>
<SharePoint:Theme runat="server"/>
<style> #SRSB {display:none} </style>

To let the site owners hide or show by using a feature:

The search box is actually an ASP.Net Web User Control (.ASCX) that can be replaced by using a SharePoint “feature”. If you want nothing displayed you can just create a one line .Net Web User Control (using Notepad if you like):
<%@ Control Language="VB" ClassName="yourclassname" %>
Here's an article with enough info to get you started on building the feature (just leave out the Google stuff):
http://techtrainingnotes.blogspot.com/2009/07/sharepoint-custom-search-boxes-google.html

.

8/31/2009

Cincinnati SharePoint User Group Meeting

http://cincyspug.securespsites.com  6:00 PM 9/3/09 at MAX Technical Training

SharePoint -- Externalizing Content BLOBs to a NAS, SAN CAS or to the Cloud 
        Brian Battah, Senior Architect at BlueThread Technologies, will
provide an overview of the performance, security and scalability
benefits of SharePoint BLOB storage. He will also discuss how
BlueThread’s StoragePoint solution can be leveraged to externalize
SharePoint content to different endpoints including Windows Azure BLOB
Storage, EMC Atmos Online, and Amazon S3 Cloud storage.

 

We have a door prize!  WIN A DELL - INSPIRON MINI NETBOOK WITH INTEL® ATOM™ PROCESSOR

8/30/2009

SharePoint: Code Snippets in SharePoint Designer!

Visual Studio has a large number of “canned” blocks of code that can be quickly added to a project using a shortcut key. These are call Snippets. Turns out that SharePoint Designer has them too. But only a few…

Inserting a Snippet:

Click in the code window where you want the Snippet and press Ctrl-Enter (or click Edit, IntelliSense, List Code Snippets):

    image

 

Creating your own Snippets:

You can create your own Snippets either by using a shortcut or by going to Tools and Page Editor Options.

Shortcut:

  1. Select existing text you would like to use for a Snippet
  2. Right-click and select Create Code Snippet

Or go to Tools, Page Editor Options:

    image

 

.

8/26/2009

SharePoint: Change the “No Items” message in a discussion web part

 

Yet another Content Editor Web Part (CEWP) trick…

But you can also add it to the master page!

 

When you create a new team site or add a new discussion list to a site the discussion web part displays a "no items" message. If you would like to change this message all you need is a little JavaScript added to the web part page or to the master page. If you would rather hide this web part anytime there are no discussions then see the previous customization: "Hide a web part with zero rows".

Before:

      image

After:

    image

 

Steps:

Add a Content Editor Web Part to the page with the discussion web part and using the Source Editor button (2007) paste the following JavaScript.  For 2010 or 2007 create a text file in a library with this JavaScript and link to it from the Content Editor Web Part.

<script  type="text/javascript">

function ChangeDiscussionMessage()
{

  var a = document.getElementsByTagName("TD");
  for ( var i=0; i<a.length; i++ )
  {
    if (a[i].className=="ms-vb")
    {
      if (a[i].innerHTML.indexOf("There are no items to show in this view")>-1 &&
          a[i].innerHTML.indexOf("discussion board")>-1)
      {
         a[i].innerHTML = "There are no active discussions";
      }
    }
  }
}

_spBodyOnLoadFunctionNames.push("ChangeDiscussionMessage"); 

</script>
 

.

 

 

.

8/15/2009

SharePoint: Tricks for web part customizers

 

Trick 1: Deleting a bad web part

If you have just added a web part to a page and you get the dreaded error page as a result, add ?Contents=1 to the page’s URL.

    http://……./default.aspx?Contents=1

You can now delete the offending web part.

 

Trick 2: Getting to web parts when there is no “Edit Page” in Site Actions

Add &ToolPaneView=2 to then end of the URL. This example will let you see the web parts on a list’s NewForm page.

   http://……./NewForm.aspx?……..&ToolPaneView=2

 

.

SharePoint: Shortcut keys!

 

Did you know that SharePoint has shortcut keys? Most Windows applications have a standard set of well known shortcut keys. While most web applications do not, SharePoint has a large number of shortcut keys, and a few like the OK and Cancel shortcuts can save you a lot of scrolling up and down the page after each edit..

 

Here are a few samples:

Alt-1 + Enter    Goto Home page (same as clicking Home tab)
Alt-6 + Enter    Help
Alt-l + Enter     Welcome menu
Alt-o                  OK or Create
Alt-c                  Cancel
Alt-s                 Search - move cursor to Search text box

 

For a complete list see:

http://office.microsoft.com/en-us/help/HA101733621033.aspx 

 

 

.

8/09/2009

SharePoint: Missing Content Query Web Part (CQWP)

Many blog articles offer the Content Query Web Part as a solution to a lot of custom web part query problems. But, most users cannot find it as it is only displayed by default in Publishing template sites.

 

To enable the CWQP:

First of all, the CWQP is a MOSS web part and is not available in WSS. WSS users can use SharePoint Designer and the DataView web part to do similar rollups.

You get access to the CWQP you will need to turn on "Office SharePoint Server Publishing Infrastructure" in Site Actions, Site Settings, Site Collection Features (last column). You will then find the CWQP in the Default section of the web parts popup.

 

Enabling "Office SharePoint Server Publishing Infrastructure" will also add:

  • additional lists and libraries: Site Collection Documents, Site Collection Images, Style Library, Content and Structure Reports, Reusable Content, Workflow Tasks
  • new items in Site Actions, Site Settings:
         Removes: Quick Launch, Top Link Bar
         Adds: Navigation, Searchable Columns, Content and Structure, Content and Structure Logs, Variations, Variation lables, Variation logs, Translatable columns
  • new items in Site Actions, Create: Adds: Publishing Site, Publishing Site with Workflow
  • new Web Parts:
       Content Query Web Part
       Summary Link Web Part
       Table of Contents Web Part

One side effect of the above is a big change in the way you edit the Top Link Bar (tabs) and Quick Launch. Both are now maintained in a single option call Navigation, and are called “global navigation” (tabs) and “current navigation” (Quick Launch). There is a bonus though… you can now create dropdowns from the tabs!

 

.

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.