Saturday, May 1, 2010

Trick for SharePoint 2007 event handler while working for synchronous events

Hi all, 

In one of the project, I have to develop a custom list schema with some metadata associated. The business needed the some kind of auto-renaming according to the company's guidelines when the user uploads a document. I thought it would easy to design and develop but it was pretty tricky at the end. I will a separate post on auto-renaming document filename.SharePoint

While developing I had to use ItemUpdating and synchronous event receiver. Subsequently, the "Title" has to be changed as well via properties.AfterProperties["Title"]. I had used some other metadata columns which worked perfectly fine during debugging. But, when it try set "Title" properties I always get an error. I tried properties.AfterProperties["vti_title"] and it actually worked.



No comments:

How to: Use cascading drop-down lists in PowerApps

Hi all, Using cascading dropdown, users can easily fill the forms by selecting drop-down values dependent on values from another dro...