Developing for Share Point 2003 & Office 2003 using VS 2005.
I have created a document library with an added text column "Document No" which is non-mandatory and another column which is a check box called "Register Document" also non-mandatory.
During the ItemUpdating event I check if the "Register Document" flag has been set. If it has been set I create a unique document number and assign it to the "Document No" field in the AfterProperties, I then create a record in a custom list called "Document Register" with details associated with this document.
If when initially adding a document to the library you select "Register document" everything works fine. The "Document No" field shows correctly in the document and everything in our list displays fine, view the document and the property in the meta-data is also fine.
The problem occurs when you do not decide to register the document when originally adding it to the library. In this case "Document No" starts of blank. Then you select "Edit Properties" in Share Point on the document to trigger check out. Select "Register Document" on the properties page and then check in. Within sharepoint the "Document No" field is correctly populated and shows in the list correctly after the check in.
View Complete Post