Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. How to catch the event using object model in sharepoint?

How to catch the event using object model in sharepoint?

Scheduled Pinned Locked Moved SharePoint
tutorialsharepointdatabasequestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sai 2012
    wrote on last edited by
    #1

    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

    I 1 Reply Last reply
    0
    • S sai 2012

      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

      I Offline
      I Offline
      Ingo
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • I Ingo

        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.

        S Offline
        S Offline
        sai 2012
        wrote on last edited by
        #3

        HI , Actually i know only basics,suddenly my manager asked me to do this, i don't know wht to do.

        I 1 Reply Last reply
        0
        • S sai 2012

          HI , Actually i know only basics,suddenly my manager asked me to do this, i don't know wht to do.

          I Offline
          I Offline
          Ingo
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups