Ram Prasad Meenavalli
 

SharePoint 2007 & 2010 Articles

  • Managed Checked Out Files In most of the site templates provided by Sharepoint Server we have a default 'Pages' library, which is used for holding the content pages for the site. Sometimes while creating pages, we get an error saying 'The page name already exists' or 'its checked out for editing by another user'. This article gives a detailed explanation about this error message and how we can manage the checked out files.  Read Article

  • SharePoint 2010 Notifications and Status SharePoint Server 2010 comes with a flashy UI with components like ribbon tool bar, Notifications, Status message, Quick Launch etc., As a developer we should be able to customize all these components. This article explains how we can create custom 'Notifications' and 'Status' messages using the ECMAScript of SPS 2010.  Read Article

  • Applying Conditional Formatting to ListView WebPart This article explains how we can apply Conditinal Formatting on ListView WebPart using SharePoint Designer 2010. It has an example on how to apply different backgrounds to items in the 'Pages' library based on their 'Approval Status'.  Read Article

  • Developer Dashboard in SharePoint 2010 The Developer Dashboard is a new feature of SharePoint 2010 that is designed to give details and reports about the operations going on behind the scenes when a page is loaded. It breaks the statistics into various components and gives detailed information.  Read Article

  • Caml Query to include timestamp in DateTime comparisions The Collaborative Application Markup Language (CAML) query is a XML based language used for filtering and/or sorting data from a list within a SharePoint portal. While preparing the query, we use the comparision operators like EQ, NEQ, GT, LEQ etc., for comparing dates. By default, these operators will not include the timestamp while doing the comparision. Using the 'IncludeTimeValue' attribute of the VALUE element, we can do a comparision that includes the timestamp. Read this article to learn how to do this.  Read Article

  • Using SharePoint 2010 Modal Dialogs Modal Dialogs are one of the new features provided by SharePoint 2010. Modal dialogs display over the page and can fetch data from anywhere in the site. It's the dialog framework provided by the JavaScript client object model. Using the SP.UI namespace of the client object model, we can create custom modal dialogs.  Read Article

  • Creating Accessible Modal dialogs in SharePoint 2010 The modal dialogs created using the traditional approach are not accessible ie., users and search engines which do not use javascript cannot access the content of the URL (which is to be opened in the modal dialog). This article gives a detialed explanation on how to create a accessible modal dialog, the dialog works as expected when JavaScript is enabled and opens as a simple link when JavaScript is disabled.  Read Article

  • Setting Custom Page Not Found Page for SharePoint 2007 Detailed steps on how to create a custom Page Not Found page and code snippets to set the custom page as Page Not Found Page for a Web Application.  Read Article

  • Setting Custom Page Not Found Page for SharePoint 2010 This article describes how to create a custom Page Not Found Page and set it for a SharePoint 2010 Web Application using PowerShell commands.  Read Article

  • Mapping Custom Error Pages for a SharePoint 2010 site For various scenarios, a SharePoint site displays error pages with some corelation ID and other information which the end users doesn't like to see. Our customer may want to show some friendly error message instead of the OOB message. This aricle describes how to map custom error pages for a SharePoint 2010 portal  Read Article

  • Applying Different Colors for Status Messages By default SharePoint provides four colors (Red, Yellow, Blue and Green) for setting as background colors for Status Messages. This article describes how to set different colors (other than the default ones) to Status Messages.  Read Article

  • Quering Managed Meta Data Fields in SharePoint 2010 Querying Managed Meta Data fields using the actual keyword in the CAML query returns unwanted results. This article describes how to use the WssIds of MMS fields while querying.  Read Article

  • Upgrade-SPSolution : Installs newly added features after solution upgrade. This is a custom cmdlet from SharePoint Developer's Hub, which updates the solution and then installs any newly added feature/s to the farm.  Read Article

  • Retrieve Items or Documents from a particular folder of a Sharepoint List or Document Library We can retrieve the items from a particular folder of a sharepoint list or document library using the SPQuery.Query property. This article shows the code snippet for retrieving items from a specific folder of a list.  Read Article

  • Common mistake made while using CAML query in Object Model While using CAML queries from Object Model to filter items from a list, starting and ending of the Query element shouldn't be added to the SPQuery object. Otherwise the items won't be returned from the list.  Read Article

  • Opening WebPart Maintenance Page WebPart Maintenance Page is often used for removing webparts from a WebPart page. We usually open the edit properties form of a page to navigate to the WebPart maintenance page. This article shows how to open WebPart Maintenance page by just appending a query string to the page URL.  Read Article

  • Saving Site as Template in MOSS2007/SPS2010 In MOSS 2007/SPS2010, we dont have a option to save the Site as Template. This article shows an easy method to save the Sites/Sub-Sites as templates within SharePoint.  Read Article

  • Open Tool Pane link in Custom Web Parts A demo web part which explains how to show the Open Tool Pane link when the properties of the custom web part are not assigned with proper values.   Read Article

  • Referencing JS files using CustomAction element in SharePoint 2010 How to use a CustomAction element in a feature to reference JS files on a SharePoint 2010 site. Two new attributes were introduced for CustomAction, using which we add JS file references to a SharePoint site easliy. This article explains the syntax and implementation details.  Read Article

  • Exploring the URL properties of SPSite and SPWeb This article gives a quick reference with values of ServerRelativeUrl and Url properties of SPSite and SPweb for different sites.  Read Article