# Friday, May 30, 2008

I have spent the last few days attempting to get an event handler working on a document library.  The idea is that one would post a single control document in a library such as an InfoPath or Word form template and then the event handler would create a folder in a resource library and create a link in the core library that simply point to the resource library.  I was able to successfully create the logic to add the folder with no problem but it would not add the link no matter how many ways I recoded this.  It appears that there is a timing issue between when you add a new document through Word or InfoPath and when the SharePoint releases the lock on the new document.  When the document is in a lock state you cannot modify the list item.

While I found many articles dealing with how to set this up none of them actually point out this particular issue.  Now that the problem has been identified I can focus on how get the document in the proper state before attempting the modification to the list.  This definitely qualifies as one of those doah! moments.

The best tutorials I found on how to implement this functionality are actually on the msdn SharePoint site here under the 'Windows SharePoint Services 3.0' section in the video tutorials.

Friday, May 30, 2008 7:16:56 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]
 
Latest Perspectives
SharePoint 2007 Event Handlers on Document Libraries
Categories
Archive
Links
©2007 LifeCreative.net
Privacy Policy | Contact | Feed your aggregator (RSS 2.0)