David Birin's blog
Does i+me == i++ ???
Browse by Tags
All Tags
»
WSS
(
RSS
)
C#
DEV
MOSS
SharePoint
SharePoint Designer
WF
Workflow activity
SharePoint – Events are duplicated when using templates
I encountered a strange behavior in SharePoint, this phenomenon happens when you create an event handler and attach it to a list template (for example, a document library) using a web-site level feature. If you save the list as template, the event handler reference is saved inside the list template (STP file) and when you create an instance using the template it can cause the following problems: The event handler will be activated automatically on a web site where the feature is not enabled. If the...
SharePoint – Add a SPField to all the content types in a SPList
I found out (another) strange behavior of SharePoint, I tried to add a field (a column) to a list which contain more than one content type using the following code (the new field name is “New Field”) : using (SPSite currentSite = new SPSite( "http://moss" )) { using (SPWeb currentWeb = currentSite.OpenWeb()) { SPList currentList = currentWeb.Lists[ "DocLib" ]; SPField newField = currentList.Fields.CreateNewField(SPFieldType.Text.ToString(), "New Field" ); currentList...
How to get the context item in Workflow activity (SharePoint)
Although it seems a fairly simple and commonly used task to get the context item (the item that the workflow is currently working on), it took me and Dor Rotman some digging to find the correct way to do it. The first step is to add 3 properties to your activity, these properties have fixed names, I guess that in runtime the activity is loaded using reflection and the context variables are placed into these properties. To simply add a property in a workflow activity, you can use the code snippet...
Search
Go
This Blog
Home
Tags
ASP.NET
C#
C++/CLI
DEV
Embedded Resources
Entity Framework
Excel Services
Hebrew
IIS
Internet Explorer
JavaScript
MOSS
SharePoint
SharePoint Designer
SQL
T-SQL
WF
Workflow activity
WPF
WSS
XSL
Navigation
Home
All Posts
RSS
Popular Tags
Archives
September 2010 (1)
August 2010 (1)
January 2010 (1)
November 2009 (1)
July 2009 (1)
June 2009 (1)
May 2009 (1)
March 2009 (1)
January 2009 (3)
December 2008 (2)
July 2008 (2)
Syndication
RSS
Atom
Comments RSS