Raghu's SharePoint Corner: November 2008

My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://www.sharepointcolumn.com
and update your bookmarks.

November 14, 2008

Visual Studio 2010 Add Ins For Sharepoint

Recently the GM of Visual Studio announced and demonstrated what are the features and tools that will be included in Visual Studio 2010 for sharepoint.

It was clear that Microsoft is reducind dev effort for sharepoint projects at an random pace.
Here is the brief summary of the tools that will be included in Visual Studio 2010

  • Server Explorer for SharePoint viewing Lists and other artifacts in SharePoint directly inside of Visual Studio

  • Windows SharePoint Services Project (WSP file) Import to create a new solution

  • Added a new web part project item and showed the Visual web part designer which loads a user control as a web part for SharePoint

  • Showed adding an event receiver for SharePoint and using the wizard to choose the event receiver and to just create a source file with that event receiver.

  • Added an ASPX workflow initiation form to a workflow project and showed how this workflow initiation form has designer capability

  • Showed the packaging explorer and the packaging editor which lets you structure the SharePoint features and WSP file that is created


    Want to know more details about Visual Studion 2010 go though the below link and jst wait for 2010 to  be relased :)

    http://msdn.microsoft.com/en-us/vs2008/products/cc948977.aspx


November 13, 2008

How to retrieve User Profile Properties of User From SSP

This article will be concentrating on how to retrieve user profile properties from SSP.In order to retreive user profile properties from SSP you need to first import all the Active Directory users to SSP.

Once the users are imported you can start accessing the user profiles. The following are the assmblies that will be used in order to achieve this

1. Microsoft.Office.Server
2. Micorsoft.Office.Server.UserProfiles
3. Microsoft.Office.Administration
4. And finally Microsoft.SharePoint

using (SPSite site = new SPSite(SSPsiteURL))
                {
                    using (SPWeb web = site.OpenWeb())
                    {
                        UserProfileManager manager = new UserProfileManager(ServerContext.GetContext(web.site));
UserProfile profile = manager.GetUserProfile(web.CurrentUser.LoginName);
                        string deptName = profile["Department"].Value.ToString();
                    }
                }

Department is a user profile property in ssp. Similarly you can access all the properties of a user from ssp

In order to iterate through all the user profiles in ssp, please go through my below post

Happy coding !

GMAIL Video And Audio Voice Chat


Hats off to cool  google applications... Once again google has created a cool application which allows gmail users to have a audio and video voice chat by using GMAIL user interface

You can download the plugin from the below URL



Enjoy Surfing :)



November 11, 2008

Wiki Migration Tool



Migration is a common requirement for all the projects. Recently I had been asked to create a TOOL for migration of wiki articles from different site collection level. The best way of creating a tool is by providing a UI.

All wiki’s which are created resides in a wiki library. Microsoft has defined a set of Basic List Templates for document libraries, custom list, picture library etc. I will be talking here about the basic list template associated with wiki library. There are almost 38 different kinds of basic list templates.

 

The entire wiki document library is associated to WebPageLibrary list template. You can download the tool from the below link

http://www.esnips.com/doc/fb8894cb-26c7-47dd-bb8e-13bea75c991b/WikiMigrationTool


How to use the Wiki Migration Tool


In the source site URL text box enter the top level site URL of the share point site and click show sites. A list of sub sites in the top level sites will be displayed in the list of sites. By clicking on any one of the sites under this list, a list of wiki document library present in this site will be populated.

Specify the destination url is the wiki document library to which the wiki’s need to be migrated. \Click on Migrate Wikis button, within few minutes all the wikis will be migrated. Of course there is scop for improvement for the tool.

I want to thank my friend shiva for giving me knowledge on Basic List Templates

Hope this tool saves some of your time.