David Birin's blog
Does i+me == i++ ???
Browse by Tags
All Tags
»
SharePoint
»
MOSS
(
RSS
)
C#
DEV
Excel Services
JavaScript
SharePoint Designer
WF
Workflow activity
WSS
XSL
MOSS Excel Services – Trusted Data Connection “/” makes the difference
Here is a problem that can be solved in seconds or you can spend few hours trying to solve it and bang your head against the screen (like I did…) when you find how easy is the solution. I had to configure an Excel service, the Excel file included data connection reference to an MSAS cube. After adding the Excel file, setting the trusted file location, the trusted data location and the security of the data connection, I still got the following error message: As I said before I did a lot of...
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...
MOSS – Open search results for editing (Office 2003/7)
I visited a customer which wanted the option to directly open a document from the search results for editing (in default when you click a document from the search results it opens as read-only). I found this blog article which describes how to do it by embedding some JavaScript into the search results XSL, I did exactly as described and it didn’t work, I realized that this happens because this customer uses Office 2003. I had to do some digging using the IE developer toolbar (soon to be an integral...
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