Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Tuesday, January 31, 2012

SharePoint Workflow LifeCycle

Cycle SharePoint workflow is very unique to the SharePoint environment. As mentioned SharePoint workflow are always related in a context with a SharePoint content as a list or document.
clip_image002
Partners: - As said in SharePoint workflows has always spoken in the context of a content type. So the first step is to associate a workflow with a content type as a list or document.
Start: -
The second step is to start the workflow instance. Workflows are just finally classes, so that a workflow instance should be created to initiate the workflow in action.
Edit: - Later, the workflow instance is modified through the stages of workflow.
Full: - Finally, the workflow object is finished.



clip_image004


The web forms share point to interact with WSS, which in turn interacts with the flow runtime Windows work. The runtime Windows Workflow past the details to the instance of appropriate workflow based on information received from WSS. The instance of SharePoint workflow then run the workflow logic and take appropriate measures accordingly.

WebPart LifeCycle

1. protected override void OnInit(EventArgs e)
2. protected override void OnLoad(EventArgs e)
3. protected override void CreateChildControls()
4. protected override void LoadViewState(object savedState) //Only at Postback
5. protected override void OnPreRender(EventArgs e)
6. protected override void Render(System.Web.UI.HtmlTextWriter writer)
7. protected override void OnUnload(EventArgs e)
8. public override void Dispose()

Sunday, January 29, 2012

No item exists at http://vlnrm:100/UserPages/QuerystringSample.aspx?ID=2. It may have been deleted or renamed by another user

You people can find the below error when writing an querystring within a WebPart even though the item Exists. To solve this don't use the querystring with the name ID, Use some other name then it will work fine.







Tuesday, January 24, 2012

How to add all Active Directory users to SharePoint site?

  • Login to SharePoint site as Administrator.
  • Go to Site Actions, Sitesettings.
  • Click on More Hyperlink.
  • Now click on new, Add Users.
  • Now in the People  Picker type your Domain Name\Authenticated and press ok.

Why public ip for SharePoint 2010 needs 16 gb ram?

To control the roundtrips when using the site.

What is the pathof Microsoft.SharePoint.Dll path in SharePoint 2010

"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI"

Claims Based Authentication

Incoming Claims:-Used to identify the user & so of the permission in sharePoint.
Outgoing Claims:-whwn we are accessing External information from sharePoint.

Workflow points in SharePoint 2010

  1. We can create a workflow at the sitelevel.
  2. Workflow can be seen using Visio services.
  3. We can migrate SharePoint designer workflow to Visual studio.
  4. We can use the dataflow diagram from visio & we can create a new workflow using Visio 2010.

New capabilities of SharePoint Designer 2010

  1. We can directly open the site with in a designer using site actions on the right side.
  2. We will have all files,folders & you can find all files including master pages.
  3. For alist you can create columns using designer.
  4. You can see the general setting of the site.
  5. You create an External content type using SharePoint Designer.

What are the operating systems that SharePoint 2010 supports?

  1. Windows server 2008 r2.
  2. Widows7
  3. Windows vista.
            Note:- Windows7 & Windows vista was only for development purpose.

    SharePoint 2010 Architecture

    1. Farm
    2. Servers
    3. SiteCollections-Consists of various sites.
    4. Toplevel Sites-Consists of subsites.
    5. Subsites-under subsites you will have more subsites.
    6. Lists-Under subsites you will have lists.
    7. Fields-Under lists you will have fields.
    8. ListItems-Under fields you will have ListItems.

    Adding Flash Image to SharePoint

    1. File Import file
    2. Save the files you want & store it within your site.
    3. Now open your master page.
    4. Click on quick launch.
    5. Befaore SpNavigation menu copy the required code & paste it in the paragraph tag before SpNavigation manager tab.
    6. Now save it.
    7. Go to default.aspx page & preview it.
    8. Now you will find the slideshow.

    How to enable Foreign Key Concept for a SharePoint 2010 LookUp Column

    • Login to your SharePoint site with Administrator Credentials.
    • Now Create a Parent List(Ex:- Employee Department).
    • Now Create a Child List.
    • Now Create a Lookup Column.
    • Now while creating a Lookup column go to the Relationship section at the end of the page.
    • Click on Enforce Relationship Behavior checkbox.
    • Now click on Restrict Delete Radio Button and press ok.
    • Now suppose if the data is used with in a Child site, Now if you try to delete the ListItem in the parent list then it will not get deleted and SharePoint will give you and error.

    How to set a Primary Key for a column in SharePoint 2010

    • Login to your SharePoint 2010 site with Administrator Credentials.
    • Go to your specific list.
    • On Ribbon Click on List Tab.
    • In List Tab Click on List Settings.
    • Go to column you want to make it as a Primary Key.
    • Click on that column.
    • Now in that column you will find Enforce Unique Values.
    • Select Yes option for Enforce Unique Values and press OK.
    • Now the respective column will be set as Primary Key.

    Sunday, January 22, 2012

    Precautions needed while looping through publishing site subsites

    In publishing site you have the additional sites like Document center, News,Reports,Search and sites. While retrieving data from subsites you should stop looping of these subsites like this.

    spweb currentweb=spcontext.current.web;
    foreach(spweb objSite in currentweb.GetSubwebsForCurrentUser())
    {
         if (objSite.Title != "Document Center" && objSite.Title != "News" && objSite.Title != "Reports" && objSite.Title != "Search" && objSite.Title != "Sites")
         {
             //Write your code here.
         }

    }



    Thursday, January 19, 2012

    How to set your custom page as Default in SharePoint 2007 Publishing site?

    1. Log on to Your SharePoint site with Administrator Permissions.
    2. Now at your left side click on Site Actions, Site Settings.
    3. Now in Site Settings Page Click on Welcome Page and Give the URL of your custom page and press OK.
    4. Now Next time when you open your site it will take you to your custom page by default. 

    How to change the SharePoint Site Url within a SharePoint 2010 WebPart.

    • Create a SharePoint WebPart.
    • Give your Site URL there in order to populate the WebPart to specific site.
    • Now Do all your work and deploy it to the specific site.
    • Now go to the WebPart you have created.
    • Now go to your project and search for file with extension .CsProj.
    • There you can find the current site URL.
    • You can change the URL there and you can add the WebPart to the required site.

    Where your Custom SiteTemplates will be stored in SharePoint 2010?

    • Login to your site.
    • Click on Site Actions
    • In Site Actions Click on Site Settings.
    •  In Site Settings Page you will find Solutions link.
    • Click on it there you can see the saved custom site template.

    Tuesday, January 17, 2012

    Imp XML Files SharePoint Folder Structure

    Feature.xmlWhen you create a list automatically a feature.xml is created in a server inside a features folder.
    Schema.xmlAll field values for all lists are stored in schema.xml.
    Onet.xmlAll functionalities regarding to a particular site will be stored in onet.xml.
    WebTemp.xmlAll the default templates information is stored in webtemp.xml.

    Sunday, January 15, 2012

    Creating a Custom Site Definition in SharePoint 2007

    • Go to layouts/templates folder.
    • Create a copy of sts folder.
    • In webtemp.xml file change the id & give a new name to the template.
    • Now reset iis.
    Note:
     The number you give should be 10,000.00 And it should be unique.