Update custom Fields using Event Handler (ItemUpdated)

Domanda Update custom Fields using Event Handler (ItemUpdated)

  • martedì 2 novembre 2010 22:35
     
     

    Hi,

         I have custom field which has to be updated with a value when the project cost changes its value. Is there any Event Handler to manage this or any other option where I can resolve the solution.

    Thanks

    -Bob

Tutte le risposte

  • mercoledì 3 novembre 2010 18:58
     
     

    Hi Bob there are many events that are raised potentially in project server. You can override an event handler to perform your business logic. Go to the server settings page in the PWA and follow the server side event handlers link. There you'll see events broken down by object to choose the event that makes the most sense; on project publish probably.

    See the SDK for overriding events with your own logic and you'll need to interact with the PSI through asmx (deprecated) or through WCF using the svcCustomFields service.

    cheers,

    Ray

  • sabato 9 giugno 2012 18:02
     
     

     Just checking my alerts and see this one still hanging... Any luck Bob? Reading my post I should amend one thing... if you are wanting to update a custom field in a project you may not be able to use the onPublish event as the project is still checked out to the users. onCheckin you could read the project cost or a baseline cost etc. to copy that to a

    Try something different because maybe this is an easier way: create a Custom field that is a formula and make it equal to one of the cost fields in there. YOu have a few. baseline, actual cost...


    Ray Letts Arbutus Solutions