August 2010 - SharePoint Tips

  • Use Source and DefaultItemOpen Parameters in Forms to Control Redirection and Mode

    Anjali Sharma -Expert in Residence SharePoint uses the ‘Source’ query string parameter to redirect the user to a page after the form is submitted. Whether using custom features that leverage SharePoint forms or using InfoPath forms, specify the URL after the ‘&Source=’ parameter in the query string. This URL should be the page that the user will be redirected to upon form submission. For InfoPath forms, setting the ‘DefaultItemOpen’...
  • Employing SQL Server Aliases in Your SharePoint Farm to Decouple SharePoint Servers from Their Associated SQL Servers

    Sean McDonough -Expert in Residence SharePoint depends on its connections to one or more SQL Server instances for the overwhelming majority of its content and configuration data. The loss of a SQL Server can spell disaster for SharePoint, particularly if the lost SQL Server can’t be restored and a new SQL Server instance (with a new name) must be used. The use of SQL Server names and/or addresses in difficult-to-alter SharePoint database connection...
  • Methods and Properties on SharePoint Objects

    Niklas Goude -Expert in Residence Commands run in Windows PowerShell return objects containing both methods and properties. You can find out which methods and properties that are available on objects in SharePoint 2010 using the Get-Member cmdlet: Get-SPWeb http: // SP | Get-Member Notice how we use a pipeline to send the object returned from Get-SPWeb to the Get-Member cmdlet. The list returned from the Get-Member cmdlet shows all the methods and...
  • Design Site and Document Libraries Based on Permissions and Data Isolation

    Anjali Sharma -Expert in Residence As a best practice when deciding whether to have content as a site or as a page, consider the following: When a group of users has data they don’t want shared, use a site. When a group of users has features such as a blog or KPIs unique to them, use a site. When you have multiple groups with different permissions that have similar feature needs, such as a project site in a company that has many projects, use...
  • Getting Help about SharePoint 2010 cmdlets

    Niklas Goude -Expert in Residence The Get-Help cmdlet in Windows PowerShell is used to retrieve help regarding commands and concepts in PowerShell. Since SharePoint 2010 includes over 500 new cmdlets, Get-Help is the cmdlet you want to use when finding out more about the SharePoint 2010 cmdlets. If you want to get help about a specific cmdlet you can type: Get-Help Get-SPSite Without additional parameters, Get-Help provides only a quick overview....
  • Allow Users to Submit Site Suggestions

    Anjali Sharma -Expert in Residence The usability and features of a site can be drastically improved when users provide feedback. A simple ‘Site Suggestion’ feature that utilizes a SharePoint Task List can help. Provide a global link on the site from the Master Page that lets users submit brief feedback or provide areas of improvement. Create a SharePoint Task List to collect this information. The user feedback form can be derived from...
  • Finding the SharePoint 2010 cmdlets

    Niklas Goude -Expert in Residence SharePoint 2010 offers over 500 cmdlets that you can use to automate the SharePoint 2010 environment. But how do you find the cmdlets available? Get-Command is the answer and the cmdlet offers a couple of really nice features you can use to gather information regarding the SharePoint 2010 cmdlets. To find all SharePoint 2010 cmdlets available use the –noun parameter: Get-Command –Noun SP * To find specific...
  • Use Dashboards to Quickly Communicate Key Company Metrics

    Anjali Sharma -Expert in Residence For an Intranet, determining key company metrics and showing them graphically can help keep staff focused on the same goals. SharePoint provides a Key Performance Indicator (KPI) web part which is set up by default in a site created using the Reports template. This web part is also available in other site templates such as Team / Collaboration. Setup a KPI list and a data source such as Excel, a SharePoint list or...
  • You cannot use SharePoint Foundation 2010 objects with .NET 4

    Michael Foertsch -Expert in Residence The SharePoint Foundation 2010 object model is not accessible using the .NET Framework 4 (or later). Calling any object or method in the object model using any framework version other than .NET 3.5 will throw the following exception: System.PlatformNotSupportedException Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime. Of course, you can always access the SharePoint...
  • Checking in Documents through Powershell

    Niklas Goude -Expert in Residence Have you ever wanted to modify a document that someone forgot to check in? Or maybe a user forgot to check in his documents before going on a 2 year vacation. Using Windows PowerShell, you can check for documents that are checked out and perform an action if a document is checked out. In this example we’ll simply check in the document but it’s possible to send a mail to the user instead and ask him/her...
  • Use Grouping when Creating Customize List Views

    Anjali Sharma -Expert in Residence For any List in SharePoint, there are several custom views that can be created from the User Interface. Customizing these views can be done with a click of a button and completely changes the default, out-of-the-box list views that are visible on the web pages. Some specific settings include Grouping and Styling. A simple ‘Group By’ setting will automatically create a collapsed view of the list which...
  • Never use SPList Items!

    Michael Foertsch -Expert in Residence Never use SPList.Items. Even though this may seem to be an obvious way to get the list item collection to enumerate over, performance of your application will suffer immensely, because accessing this collection will run a query to return every list item in the list. Instead, use SPQuery and a CAML query to filter the collection to a more manageable size. ReTweet this Tip!
  • Adding Announcements Through Powershell

    Niklas Goude -Expert in Residence SharePoint 2010 offers over 500 new cmdlets that we can use to automate the SharePoint 2010 environment through Windows PowerShell. The cmdlets go as deep as SPWeb, everything beyond SPWeb requires additional scripting, such as adding fields, views and items. Here’s an example showing how to add an item to the Announcements list in SharePoint 2010: $spWeb = Get-SPWeb -identity http: // SP $spList = $spWeb ....
  • Set Up Documents from Document Libraries to Open as a Web Page

    Anjali Sharma -Expert in Residence Set up frequently opened documents or non-editable documents such as PDFs to be opened as a Web Page instead of a client application. In doing so, the document opens much faster as the browser does not have to search for the client application and eliminates the check-in prompt. This option also helps when clients do not have Microsoft Office installed. This feature can be set in the ‘Advanced Settings’...
  • Always run SPDisposeCheck!

    Michael Foertsch -Expert in Residence Always run SPDisposeCheck ( http://code.msdn.microsoft.com/SPDisposeCheck ) on all code that uses the WSS/SP object model to check for undisposed objects that can cause memory leaks. ReTweet this Tip!
1 2 Next >
Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.