none
Project server 2010: Approval Center: Writing Event Handler RRS feed

  • Question

  • Hi Guys,

    We have a requirement to write an event handler on Approval Center, such that if a manager is approving certain tasks of an project and that the project is in checked-out mode, it should intimate the manager and not allowing the manager to approve the same.

    any suggestion would be of great help.

    Thanks!!!


    • Edited by GanuInMumbai Wednesday, October 10, 2012 12:45 PM
    Wednesday, October 10, 2012 12:44 PM

All replies

  • Hi there--

    I hope that you are using the Project Server 2010 with minimum June 2011 Cu & Service pack 1. Service pack 1 provides a good feature for auto publish. A project manager can configure rule  that indicate whether to automatically run this rule and publish the updates. If the project is checked out to someone else, the updates are published after the project is checked in and another update comes through or after PM publishes the project.

    PWA> Approval center> Manage Rule> New rule.

    Now, on the customization part, Approval center is not open for customizations . Writing an event handler can cancel the event but the showing the cause on UI will be a challenge. Would suggest that you use the Jquery that calls the PSI to validate the project checked out & prompt the message on page load from a content editor web part on approvals.aspx page.

    Hope that helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Thursday, October 11, 2012 8:59 AM
  • hi amit,

    thanks for the reply!!!

    I was going throught the SDK documentation and found "StatusUpdatePreEventArgs Class".

    Can this be useful for my requirments?

    thanks

    Friday, October 12, 2012 9:17 AM
  • Hi There--

    Yes, having said that you can use server side event handler that  can cancel the event but how would you let the project manager know the cause for stopping. If you have a way, you can do it using server side events.

    HTH.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Friday, October 12, 2012 11:24 AM