none
Save Button Events not working from MPP RRS feed

  • Question

  • Hi All,

    I have added project server onchanging event (project save button in PWA) and its working fine from PWA.

    But when i open the project in MPP and update the project fields from MPP, the event is not firing.

    Is it a bug/restriction in project server?

    Can anyone please provide me the solution for this?

    Thanks



    Thanks & Regards
    Ravishankar Polepalli (MCP,MCC)
    Microsoft Dynamics, Project Server and SharePoint Server Consultant
    ravi.polepalli@gmail.com

    Monday, September 17, 2012 3:16 PM

All replies

  • Hi Ravishankar --

    Just to make it clear, You have a server side event handler that fires onSave event?  When you save a project from PWA, you are able to see the event triggered but not from MS project on change?

    I am sure that you know that the MS project client side events are different from server side. If you just update the project fields, it will fire the onSave server side event handler only when you click on save button on MPP.

    If you can explain a little bit in detail, will try to help.

    Thanks,



    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

    Tuesday, September 18, 2012 8:20 AM
  • Hi Amit,

    Yes, you understood my problem correctly.

    If PWA events wont work from MS Project, then what is the best solution for it.

    There are many users using MS project and updating project fields from there.

    It seems to be a bug as option to update PWA form fields is available in MS project, but events are not firing.



    Thanks & Regards
    Ravishankar Polepalli (MCP,MCC)
    Microsoft Dynamics, Project Server and SharePoint Server Consultant
    ravi.polepalli@gmail.com

    Tuesday, September 18, 2012 8:30 AM
  • Hi Ravishankar --

    Server side events are fired from PWA & MS project both clients. What is the server side event you are checking? If you want the Onchange event from MS project, You will need to use the MSProject application object using the VSTO add in.
    http://msdn.microsoft.com/en-us/library/office/ff867746.aspx

    OnSaved/onPublished server side events fires when you save a project (not on change) or publish the same either by PWA or MS project.



    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

    Tuesday, September 18, 2012 10:20 AM
  • Hi Amit,

    I am using

    OnUpdating(PSLib.PSContextInfo contextInfo, ProjectPreEventArgs e)

    event.

    It is working in PWA and not from MS Project. Is there any alternative approach to make it work. Pls. suggest



    Thanks & Regards
    Ravishankar Polepalli (MCP,MCC)
    Microsoft Dynamics, Project Server and SharePoint Server Consultant
    ravi.polepalli@gmail.com

    Tuesday, September 18, 2012 11:30 AM
  • Hi Ravishankar--

    Ok, the OnUpdating means when project data is updating using the PSI.

    In MS project application event doesn't mean that it will fire on server so when you make the changes in MPP & hit the save button, the OnUpdating event from server will be fired. 

    just changing the project fields will not fire the OnUpdating server side event.

    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

    Wednesday, September 19, 2012 5:54 AM
  • Hi Amit,

    After changing the fields, i saved it (event didnt fire), i published (even not fired). :(

    Any settings i should change to make it happen.



    Thanks & Regards
    Ravishankar Polepalli (MCP,MCC)
    Microsoft Dynamics, Project Server and SharePoint Server Consultant
    ravi.polepalli@gmail.com

    Wednesday, September 19, 2012 8:54 AM
  • Hi All,

    Can anyone please provide some insights or alternative approach to make OnUpdating event works from Project Server (PWA) and MS Project Client.

    public 

    class CLASSNAME : ProjectEventReceiver

    {

    public override void OnUpdating(PSLib.PSContextInfo contextInfo, ProjectPreEventArgs e){}

    Thanks

    Ravishankar



    Thanks & Regards
    Ravishankar Polepalli (MCP,MCC)
    Microsoft Dynamics, Project Server and SharePoint Server Consultant
    ravi.polepalli@gmail.com

    Thursday, September 20, 2012 5:27 PM
  • Hi All,

    I am also having this problem. The OnUpdate and OnUpdating only seem to fire from PWA and NEVER from Project Pro (MS Project Client).

    The OnSaved seems to fire for both PWA and Project Pro, but this does not provide the Changed Dataset easily. The only thing I can think of is to compare the published dataset against the working store on the OnSaved to find out what has changed, but this seems to be a lot of work to happen on the server on an event handler. Plus it's not exactly what I am trying to achieve.

    I need to find out what changes happened to the schedule when someone saves from Project Pro, not the difference from the published version.

    Does anybody have a good solution for this?

    Carlos

    Sunday, February 2, 2014 10:02 PM