Sunday, December 14, 2008

Sharepoint Workflow

seful information about sharepoint workflows

http://www.cmswire.com/cms/web-cms/web-content-management-with-sharepoint-moss-2007-part-2-workflow-002021.php


http://www.u2u.info/Blogs/Kevin/Lists/Posts/Post.aspx?ID=39

SharePoint 2007 Workflow with Visual Studio 2005
http://weblog.vb-tech.com/nick/archive/2006/09/04/1753.aspx

Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation)
http://www.microsoft.com/downloads/thankyou.aspx?familyId=5d61409e-1fa3-48cf-8023-e8f38e709ba6&displayLang=en

How to: Deploy a Workflow Template
http://msdn.microsoft.com/en-us/library/ms460303.aspx

Wrangling SharePoint Workflows with Visual Studio http://www.devx.com/webdev/Article/34032/1954

Developing Sequential Workflows for SharePoint Server 2007 Using Visual Studio 2008http://msdn.microsoft.com/en-us/library/cc811589.aspx

Beginners Guide to SharePoint 2007 Workflow Development - Create an InfoPath Web-Based Form
http://www.sharepointbuzz.com/2008/11/07/beginners-guide-to-sharepoint-2007-workflow-development-create-an-infopath-web-based-form/

SharePoint 2007 Workflow with Visual Studio 2005 + InfoPath 2007 (RTM VERSION!)
http://weblog.vb-tech.com/nick/archive/2007/02/25/2207.aspx

Thursday, December 11, 2008

Show/Hide View All Site Content link in Sharepoint based on permissions

If you want to show/hide the View All Site Content link in SharePoint based on the user permissions.

connect your site to Sharepoint Designer (Daniel may be right about WSS 3.0), then navigate to _Catalogs >> masterpage >> default.master

Next find the PlaceHolderLeftNavBar content place holder and you can use the Sharepoint:SPSecurityTrimmedControl to hide a link (See example below on how to hide the "View All Site Content Link")

<asp:contentplaceholder id="PlaceHolderLeftNavBar" runat="server">
<div class="ms-quicklaunchouter">
<div class="ms-quickLaunch">
<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ManageLists, ManageSubwebs">
<div class="ms-quicklaunchheader">
<SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" />
</div>
</SharePoint:SPSecurityTrimmedControl>
.......


You will see the PermissionString = ManageLists, ManageSubwebs which will hide this link to everyone except the Site Owner.

The PermissionsString attribute defines the permissions the user must have in order to view the content. See SPBasePermissions enumeration for a listing of possible values.


http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx

DHTML ToolTips

The below site is a good site for creating DHTML tooltips for cross browsers.

Download the javascript files from the site, and add them to your site, and customize your tooltips.

Enjoy!!

http://www.walterzorn.com/tooltip/tooltip_e.htm

Tuesday, December 02, 2008

Thursday, November 27, 2008

Publish Source code in Blogger

In the blogger,Click on Layout tab ->Edit HTML and put following things Before </head>

<link href='http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js'/>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js'/>


2. put following things Before </body>

<script language="javascript">
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>


3. Convert your code using any WYSISYG editor (Paste in editor and copy html view of editor)

OR

Copy your code in notepad and replace all < in &lt; etc.

4. Put your updated code between:
<pre name="code" class="Cpp">
….My code here…
</pre>

SharePoint workflow development links from various sites.

Introductory material - things you should know before opening Visual Studio :

SharePoint Workflow - Workflow Basics (Training course)

SharePoint Workflows - How to collect feedback for a file (Training Course)

Introduction to workflows - Windows SharePoint Services (Introductory article)

Intermediate and advanced resources

MSDN - Delivering Modular SharePoint workflow functionality (Part 1 of 2)

MSDN - Delivering Modular SharePoint workflow functionality (Part 2 of 2)

SharePoint Workflow Resource Center - here you will find technical articles, developer documentation, multimedia presentations, blog entries, and download content to support the Workflow functionality in Office SharePoint Server 2007.

Developer introduction to Workflows for Windows SharePoint Services 3.0 and SharePoint Server 2007
MSDN Magazine - Build workflows to capture data and create documents

Developing workflow solutions with SharePoint Server 2007 and Windows Workflow Foundation

MSDN - Visual How to - Guide to SharePoint sequential workflows with Visual Studio 2008

MSDN - Visual How to - Building an Expense Report Approval Workflow for SharePoint Server 2007 using Visual Studio 2008


MSDN - Visual How to - Building simple custom approval workflows with InfoPath 2007

MSDN - Visual How to - Building state machine document approval for SharePoint Server 2007 using Visual Studio 2008

Get the selected text using Javascript

Sometimes you want to know what text the user has selected with their mouse. The below function is used to get the selected text into text area. Place the follwoing code in the head section of html

function getSelText()
{
var txt = '';
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (document.selection)
{
txt = document.selection.createRange().text;
}
else
return;
document.aform.selectedtext.value = txt;
}


call this function in the button click event or where ever you want.

<input type="button" value="Get selection" onmousedown="getSelText()"><form name=aform ><textarea name="selectedtext" rows="5" cols="20"></textarea>