How to catch the event using object model in sharepoint?
-
hi all, i have created documentset,inside documentset i have uploaded few documents. each document is having (type,name,modified,modifiedby,Doc_status,comments fields) Doc_status column is haveing select,review fields,once the user selects the Doc_status= review , i want to copy the whole documentset in the same location, My query how to capture the event when Doc_status value changes using object model in sharepoint. Please guide me , i am new to sharepoint. Thanks in advance Sams
-
hi all, i have created documentset,inside documentset i have uploaded few documents. each document is having (type,name,modified,modifiedby,Doc_status,comments fields) Doc_status column is haveing select,review fields,once the user selects the Doc_status= review , i want to copy the whole documentset in the same location, My query how to capture the event when Doc_status value changes using object model in sharepoint. Please guide me , i am new to sharepoint. Thanks in advance Sams
1. Create a new empty SharePoint 2010 project in .NET 2. Add a new EventReceiver to the Project 3. Select the type: Listselementevents 4. Select the Element: your List 5. Select the Events you want to handle. Implement the code to copy a documentset (did I said, you should never do this ;) ? By the way you mustn't believe me, but read about document handling in SharePoint, there you will read, that I'm right - but it's your decision)
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
1. Create a new empty SharePoint 2010 project in .NET 2. Add a new EventReceiver to the Project 3. Select the type: Listselementevents 4. Select the Element: your List 5. Select the Events you want to handle. Implement the code to copy a documentset (did I said, you should never do this ;) ? By the way you mustn't believe me, but read about document handling in SharePoint, there you will read, that I'm right - but it's your decision)
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
HI , Actually i know only basics,suddenly my manager asked me to do this, i don't know wht to do.
sai.2012 wrote:
Actually i know only basics,suddenly my manager asked me to do this, i don't know wht to do.
Well, of course you should work it out, but perhaps you should talk to the manager and tell him, that he can use SharePoint that way, but SharePoint shouldn't be used that way. Try a little google to find some arguments (prevention against dublicates should be one). I hope I gave you the startpoint for doing what you manager asked you to do. Feel free to ask more questions. :rolleyes:
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.