-
Recent Posts
Recent Comments
Archives
- August 2019
- May 2019
- April 2019
- November 2018
- October 2018
- September 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- August 2017
- July 2017
- May 2017
- March 2017
- February 2017
- November 2016
- October 2016
- January 2016
- December 2015
- November 2015
- September 2015
- August 2015
- June 2015
- May 2015
- April 2015
- February 2015
- January 2015
- September 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- December 2012
- November 2012
- September 2012
Categories
Meta
Tag Archives: sharepoint
SharePoint Event Receiver Does Not Fire
1. Add Trace Log to see if it is really not firing: string now = DateTime.Now.ToString(“ddMMyyyy-HHmmss”); // Creates the text file that the trace listener will write to. System.IO.FileStream myTraceLog = new System.IO.FileStream(“C:\\temp\\SharePoint Trace Log\\” + now + “.txt”, System.IO.FileMode.OpenOrCreate); … Continue reading
Posted in Event Receiver, SharePoint 2010, Visual Studio 2010
Tagged c#, Event Receiver, sharepoint
Leave a comment
Programmatically complete a workflow task
To complete a workflow task programmatically, use the following code (say taskItem is the task you want to complete): taskItem.Web.AllowUnsafeUpdates = true; Hashtable data = new Hashtable(); data[SPBuiltInFieldId.Completed] = “TRUE”; data[SPBuiltInFieldId.PercentComplete] = 1; data[SPBuiltInFieldId.Outcome] = “Completed”; data[SPBuiltInFieldId.TaskStatus] = SPResource.GetString(new CultureInfo((int)taskItem.Web.Language, … Continue reading
Get current item ID or other field value in an infopath form
Tools >> Data Connections >> Add >> Create a new connection to: Receive Data >> Select SharePoint library or list >> enter the url of the form library (the same address that you published the form to. Then Select the … Continue reading
“An entry with the same key already exists” Error
Check if there are duplicated values in a drop down list If you are trying to set more than one option in a drop down list as selected, i.e., item.Selected = true; , you will get this error.
SharePoint Designer workflows not to update on the SharePoint site
For SharePoint Designer, the solution is similar to Dave’s solution. It seems SharePoint Designer saves local copies of DLLs from your servers, and although everything seems OK, this prevents it from updating the workflow (this is when custom activities are … Continue reading
Customize “Start Custom Task Process” in SharePoint Designer 2010
This is how you can use “Start Custom Task Process” to get the same result from “Collect data from a user”: 1. Create a Workflow in SharePoint Designer 2010 (SPD2010) and add the following actions: Click on “Task (2)” to … Continue reading
Posted in InfoPath 2010, SharePoint 2010, SharePoint Designer 2010
Tagged InfoPath 2010, sharepoint, SharePoint Designer 2010
1 Comment
Link an Excel workbook to a SharePoint list
http://www.youtube.com/watch?v=weyli9OGJhk You can export a SharePoint list to an Excel workbook and do data analysis on Excel. When data in SharePoint list is changed, it will change the Excel workbook as well, so you will always have an up-to-date Excel … Continue reading
Posted in Excel, Microsoft Office, SharePoint 2010
Tagged excel workbook, sharepoint
Leave a comment