One of the very common requirement. And I found a very good article on EndUserSharePoint one of my favorite site for learning something new on SharePoint.
Click here to learn how implement a MouseHover on Link for Image Preview.
Thursday, May 13, 2010
SharePoint Approval workflow restart on Edit Item
This is a very old and very common requirement. But after working on SharePoint since last 3 years this is the first time I came around with such problem and it is very surprising for me as well that why I never came across such problme in past.
1. I never came across such requirement
2. HotFix is already installed on the servers.
Problem Statement
I have one Document Library called : Company News, I have attached a sequential workflow with Approval and Publisher group with On Add and Edit items. Now whenever a new item is created in document library it starts the workflow and approver approves it.
Once approver approve the item, it goes to publisher being asequential workflow for their approver. But since publisher is also approving the item, it is still showing an item as InProgress.
Solution
Download the HotFix from http://support.microsoft.com/default.aspx?scid=kb;en-us;955586
1. I never came across such requirement
2. HotFix is already installed on the servers.
Problem Statement
I have one Document Library called : Company News, I have attached a sequential workflow with Approval and Publisher group with On Add and Edit items. Now whenever a new item is created in document library it starts the workflow and approver approves it.
Once approver approve the item, it goes to publisher being asequential workflow for their approver. But since publisher is also approving the item, it is still showing an item as InProgress.
Solution
Download the HotFix from http://support.microsoft.com/default.aspx?scid=kb;en-us;955586
Friday, May 7, 2010
Session Timeout in SharePoint
Since long I have a question that how can I implement a session time out in SharePoint sites. But i never explore as there is no such requirement in any of my project till now.
Suddenly the requirement came and we have to suggest a way to do that with the minimal efforts. And after searching on google i found this and this..., though still we haven't implemented it :(
I am giving you the easiest way directly here to implement that, edit your master page and add the below script in javascript block.
function MySiteTimeOut()
{setTimeout("SessionTimeOut()", 300000);}
function SessionTimeOut()
{document.execCommand("ClearAuthenticationCache");}
This is the same function called when you click on Sign-out in SharePoint site.
Suddenly the requirement came and we have to suggest a way to do that with the minimal efforts. And after searching on google i found this and this..., though still we haven't implemented it :(
I am giving you the easiest way directly here to implement that, edit your master page and add the below script in javascript block.
function MySiteTimeOut()
{setTimeout("SessionTimeOut()", 300000);}
function SessionTimeOut()
{document.execCommand("ClearAuthenticationCache");}
This is the same function called when you click on Sign-out in SharePoint site.
Saturday, January 9, 2010
Hide WebPart at run time
In one of my project we had a requirement to hide the WebPart based on the logged in user's department-id. We are not able to use Audiance Targeting to achieve this cuase we were getting user's department id using webservice from 3rd party system only.
What I did, I wrote my custom RSS Viwer WebPart with custom field. And Thanks to SharePoint Developer Center, I found a solution to hide the webpart at runtime very easily.
See the Code Snippet below.
protected override void OnPreRender(EventArgs e)
{
if(your condition)
HideWebParts();
}
private void HideWebParts()
{
if (this.WebPartManager.DisplayMode != System.Web.UI.WebControls.WebParts.WebPartManager.EditDisplayMode
&& this.WebPartManager.DisplayMode != System.Web.UI.WebControls.WebParts.WebPartManager.DesignDisplayMode)
{
for (int i = 0; i <>
{
if (WebPartManager.WebParts[i].Title == this.YourCustomWebPartName.Title)
{
WebPartManager.WebParts[i].AllowHide = true;
WebPartManager.WebParts[i].Hidden = true;
} } } }
What I did, I wrote my custom RSS Viwer WebPart with custom field. And Thanks to SharePoint Developer Center, I found a solution to hide the webpart at runtime very easily.
See the Code Snippet below.
protected override void OnPreRender(EventArgs e)
{
if(your condition)
HideWebParts();
}
private void HideWebParts()
{
if (this.WebPartManager.DisplayMode != System.Web.UI.WebControls.WebParts.WebPartManager.EditDisplayMode
&& this.WebPartManager.DisplayMode != System.Web.UI.WebControls.WebParts.WebPartManager.DesignDisplayMode)
{
for (int i = 0; i <>
{
if (WebPartManager.WebParts[i].Title == this.YourCustomWebPartName.Title)
{
WebPartManager.WebParts[i].AllowHide = true;
WebPartManager.WebParts[i].Hidden = true;
} } } }
Friday, December 25, 2009
Guide to Code Access Security in SharePoint Server 2007
Andrew Connell has published an article on CAS for SharPoint.
It will be very helpful for Developers. Click here to read more.
It will be very helpful for Developers. Click here to read more.
Thursday, December 17, 2009
Developing on SharePoint 2010
Getting Started
Module 1: Getting Started: Building Web Parts in SharePoint 2010
Module 2: What Developers Need to Know About SharePoint 2010
Module 3: Building Blocks for Web Part Development in SharePoint 2010
Module 4: Accessing SharePoint 2010 Data and Objects with Server-Side APIs
Module 5: Accessing SharePoint 2010 Data and Objects with Client-Side APIs
Module 6: Accessing External Data with Business Connectivity Services in SharePoint 2010
Module 7: Developing Business Processes with SharePoint 2010 Workflows
Module 8: Creating Silverlight User Interfaces for SharePoint 2010 Solutions
Module 9: Sandboxed Solutions for Web Parts in SharePoint 2010
Module 10: Creating Dialog Boxes and Ribbon Controls for SharePoint 2010
Module 1: Getting Started: Building Web Parts in SharePoint 2010
Module 2: What Developers Need to Know About SharePoint 2010
Module 3: Building Blocks for Web Part Development in SharePoint 2010
Module 4: Accessing SharePoint 2010 Data and Objects with Server-Side APIs
Module 5: Accessing SharePoint 2010 Data and Objects with Client-Side APIs
Module 6: Accessing External Data with Business Connectivity Services in SharePoint 2010
Module 7: Developing Business Processes with SharePoint 2010 Workflows
Module 8: Creating Silverlight User Interfaces for SharePoint 2010 Solutions
Module 9: Sandboxed Solutions for Web Parts in SharePoint 2010
Module 10: Creating Dialog Boxes and Ribbon Controls for SharePoint 2010
Wednesday, December 2, 2009
SharePoint BI
A very good 6 Parts article on SharePoint's role in BI.
Part 1 – Getting to Know You – Intro to SharePoint BI
Part 2 – Sell! Sell! Sell! Why Build a Dashboard Anyway?
Part 3 – KPIs – Where do I Come From?
Part 4 – Dissecting Dashboards
[Awaited for the articles to release]
Part 5 – We Really Need to Talk – Scorecards & Reports
Part 6 – Beware the Bogeyman – Securing Dashboards
Part 1 – Getting to Know You – Intro to SharePoint BI
Part 2 – Sell! Sell! Sell! Why Build a Dashboard Anyway?
Part 3 – KPIs – Where do I Come From?
Part 4 – Dissecting Dashboards
[Awaited for the articles to release]
Part 5 – We Really Need to Talk – Scorecards & Reports
Part 6 – Beware the Bogeyman – Securing Dashboards
Tuesday, December 1, 2009
Monday, September 7, 2009
Twitter Search WebPart
A very good article on Twitter Search in SharePoint with screen-shots from Woody on EndUserSharePoint.
Read more...
Read more...
Wednesday, September 2, 2009
Subscribe to:
Posts (Atom)