Welcome to weblogs.com.pk Sign in | Join | Help

Adeel bin Khalid

"When a Man's Education is Finished; He is finished"

August 2008 - Posts

MOSS: Programmatically Launch/Initiate a Workflow
Following code launches/initiates a workflow. Well I think I dont have to write "Programmatically Lunches" it cz its a code snippet so i guess its understood.... :) //GUID of the wokflow... you can get this from your workflow.xml file const string WF_GUID_STRING Read More...
MOSS: Add Folder Type "Custom Content" Item in a List
Following code snippet adds a Folder type "Custom Content Type" in a Document Library SPListItem myFolder = myDocLib.Items.Add(myDocLib.RootFolder.ServerRelativeUrl.ToString(), SPFileSystemObjectType.Folder, "New Folder"); SPContentType itemtype = myDocLib.ContentTypes["Name Read More...
How to debug Event Receiver in SharePoint
I have also worked on IBM FileNet Content Engine’s Events so I used the same technique in MOSS to debug EventReceiver. Yes the same old “Writing in Text File” trick.. public override void ItemAdded(SPItemEventProperties properties) { try { if (properties.ListItem.ContentType.Name Read More...
State Machine or Sequential Workflows; The decision parameter
I was reading some posts on MOSS workflows and came across a post which gave me a clear decision parameter. As I am new to Windows Workflow Foundation so I was unable to decide which type of workflow should be used for a certain problem. And now I am Read More...