Sharepoint Delay Activity is rounded off to the minute interval that is setup for ‘job-workflow’ property. This is because the job is responsible for waking up the workflow at the specified time. This job is usually set to run every 5 minutes. It is easy to change (increase or decrease) this value. To get the current job interval value: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\stsadm -o getproperty -pn job-workflow -url http://siteaddress< Or to change it every minute C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN\stsadm -o setproperty -pn job-immediate-alerts -url http://siteaddress -pv "every 1 minutes between 0 and 59" Just be careful about this on production server, as it would create extra load if set to 1 minute interval.
SVL - Simple Vector Library I have created a Dev C++ Devpack for SVL, just for my own convenience. I decided to put it on community site where someone else can also use it. The DevPak is available here
All My Programming Stuff will be on this site. As the time goes by, I will be updating and adding lot of contents here. One thing that is definitely be here is OpenGL Tutorials. Come back here for more.
Sharepoint is very bad when it comes to showing useful error. Even the log files does not contain information that can be considered useful. This is a big problem specially when programming webpart and other extensions. To change this behavior and get sharepoint to display detailed message Modify your web.config to set the following: <SafeMode ... CallStack="true" ...> <customErrors mode="Off" /> <compilation batch="true" debug="true"> All three of the modifications are required for full debug output.
Sometimes it is necessary to create a Sharepoint Content Type by code, specially when batch creating content types. The following code snippet shows how a sharepoint content type can be created in C#. I have also included some not-so-simple field types like choice and lookup. using (SPSite p_site = new SPSite(urlToSite)) { using (SPWeb p_web = p_site.OpenWeb()) { SPContentType CustomContentType = new SPContentType(p_web.AvailableContentTypes["ParentContentType"], p_web.ContentTypes, "MyContentType"); // A string Field p_web.Fields.Add("NumberColumn",