Skip to main content

Posts

Showing posts from September, 2011

New Features and Enhancements in SharePoint 2010

Microsoft has launched SharePoint Server 2010 which includes a lot of enhancements, fixes, and news features as compared to SharePoint Server 2007. 1. New User Interface including Ribbon User Interface is changed a lot in SharePoint 2010 and now you will be able to do more with few clicks. There are a lot of changes in the User Interface like, "Site Actions" menu is moved to left side of the page, some new options has been added in the "Site Actions" menu, the overall look and feel of the site is different as compared to SharePoint 2007, asynchronous user interface using AJAX and SilverLight which leads to minimal postbacks and improved performance of the site. But the biggest change in the User Interface of SharePoint 2010 is the addition of Ribbon UI. Microsoft has earlier introduced the Ribbon UI with Office 2007. Now the same Ribbon UI is available in the SharePoint 2010 which brings t...

Top 10 Resources to get you started SharePoint 2010

This post contains links to download evaluation software, guides, demo virtual machines and lots more, for both Developers and IT Professionals. 1. Check out the Office 2010 & SharePoint 2010 Launch Keynote and on-demand sessions , and the SharePoint 2010 Product Site on Microsoft.com 2. Download the SharePoint 2010 Overview Evaluation Guide , the SharePoint 2010 Professional Developer Evaluation Guide and the SharePoint 2010 IT Professionals Evaluation Guide to quickly ramp up on platform updates and additions. 3. Check out the learning plans for IT Professionals , Developers and End Users and get started on your SharePoint 2010 learning plan. 4. Download the pre-configured Hyper-V SharePoint 2010 Evaluation and Demo Virtual Machine (~1.8GB) along with the SharePoint 2010 Walkthrough Guide for a chance to get hands on with SharePoint 2010 with zero set up and configuration. 5. Download 180 day trial versions of;  SharePoint Server 2010 , FAST Search Serve...

Hiding SharePoint List and Library Menus

You can hide the sharepoint list and library action menus by javascript. You will find and hide the Explorer View menu: <script language= "JavaScript" > var doc = document.getElementsByTagName( 'ie:menuitem' ); for ( var i = 0; i < doc.length; i++) { itm = doc[i]; if (itm.id.match( 'OpenInExplorer' )!= null ) { itm.hidden= true ; } } </script> The trick here is to find the menu tags on the page. What we are looking for is this: <ie:menuitem id="zz23_OpenInExplorer" ... hidden= ... /> The JavaScript starts by finding all tags named "ie:menuitem" and then looping through those to find the one we need. The hidden attribute is pretty obvious, so we set it to false. For just one library: Where do you put this JavaScript? For just one library use SharePoint Designer add this to the bottom of the allitems.aspx for that library. The best place is just bef...

Prevent Recursive Event Handler

One of the problems I had with list event handlers was event recursion. I wrote an event handler to handle updating items. I wanted to check some values, and then set a value in a field based on a set of rules. The problem was- when I set the value of the field and updated the item, the ItemUpdated and ItemUpdating events fired up again, and again my code updated the item and so on and so on. I also wanted to avoid having the list item change version number following my code-update. that update was supposed to be part of the version that the user just created by updating. Otherwise, every user update of the list item would bump the version number twice! Similarly, I didn't want the code to show that an administrator changed the item. I wanted it to look as if the user did the change to that field. So after some research, here is my solution:   item[fieldnamehere] = fieldvaluehere; this.DisableEventFiriing(); item.SystemUpdate(false); this.EnableEventFiring(); ...

Create Custom Permission level in SharePoint

I am writing the complete steps to create custom permission level in SharePoint 2010/2007. In my listed example, I am creating a custom permission level having all contribute writes rather then delete. It means the user having this permission can have all contribute rights but not able to delete data, user can Add, View or update the data in SharePoint Lists/libraries. 1-      On the Site Actions menu, click Site Settings . 2-      On the Site Settings page, under Users and Permissions, click Advanced permissions 3-      On the Settings menu, click Permission Levels 4-      Click Contribute 5-      Click Copy Permission Level button from bottom of page 6-      On Next Page, give appropriate Name and Description (e.g. Contribute without delete) 7-      Click Create Button at the bottom of current page. 8-      The new...