Showing posts from April, 2011

Find Differece in time between Start time and End Time

In workflow add the following workflow steps when a new item is created in your list.
And update the list item column  Number of  hours through the workflow.

Display image for Hyperlink in Sharepoint list

On a specific site page or page where you have the view

1. Click on the link in the view to follow the hyperlink ( > appears)

2. Click on “Hyperlink options

3.Click OK

4. It changes to the actual URL

5. In the code view, the source code is now

              <a href="{$url}"><xsl:value-of select="$url" /><xsl:value-of select="$desc" /></a>

6.Replace the <a href="{$url}"><xsl:value-of select="$url" /><xsl:value-of select="$desc" /></a>


<a href="{$url}"><img alt=" Status" src="../SiteAssets/icons/tickmark.png" /></a>

Quick Basics of Sharepoint

SharePointis a browser based web application developed by Microsoft that enables users within an organization to work together, collaborate, more efficiently through its vast number of features.
Some of the features include the followin. Document Management, WebContentManagement, Business Process Management (Workflows), EnterpriseSearch, Business Intelligence (Dashboards, Reports), Electronic Forms (InfoPath), Social Networking

SharePoint History:

SharePoint (2010) Versions Available
1.SharePoint Foundation (Free version, known as WSS in  2007. Mainly Provides Document Management) 2.SharePoint Standard Edition 3.SharePoint Enterprise Edition
Click the below link for more details of the SharePoint Versions

WSS stands for Windows SharePoint Services. It is a core framework on which MOSS works. WSS features are: Wiki, Blogs site, Document management, Server Farm.

MOSS stands for Microsoft Office SharePoint Server. It is …

Generate Auto number Field in SharePoint list

Generate Auto number Field in SharePoint list
To create auto generated list field do the following 1.Create a column field with data type number in the targeted list. For example I am creating an auto generated column Case ID.

2.Now to make the auto generated column hidden when a new item is created in the list we have to hide it in content types.
First go to list settings-> Then in General settings go to Advanced Settings

3.In Advanced settings Click the radio button Yes , in Allow management of content types .And Click OK.

4.Now go to list settings again and a new Content types will be shown. In that click the Content type. In my case it is Item. Name may vary for you.

5.In that Content type all list columns will be shown. In that click the Case ID Column.

6.After  that click the Hidden and then click OK
7.Then open SharePoint Designer create a new workflow for the list when a new item is created
8.And add update action to the list.
9.Click Add .In set this field value select Case ID

Useful tip to avoid scroll problem

In most cases we come across the problem we wont get the scroll to avoid this problem add this in your css file

overflow :auto;

Useful site to create tab menus for pages

Add print Button in Infopath form

To add print button in infopath form ...
1.Right click the print button ->Button Properties->Edit Form Code. It will open Visual Studio Tools for Applications (VSTA)
2. Add the following code for that print button.

PrintDocument pd = new PrintDocument();
3.Also add the following namespaces.

using System.Drawing;
using System.Drawing.Printing;

NOTE: This will not work in Browser enabled infopath forms

Validate Start Date and End Date in Sharepoint

Hi guys,

We often get into validating the end date which should be greater than start date...So follow these steps to perform that...

 1. Go to list settings in that to General Settings and Click Validation Settings

2.Then Add this in Formula =[End Date] >= [Start Date]..Also Type in user Message what error to show .And click save.

3. Now try adding new item for that list.That is it.

For more doubts on sharepoint you can mail me