none
Is there a ProjectAFTERResourceChange ? RRS feed

  • Question

  • Hi guys,

    I want my field to be automatically updated by a macro when the resources are changed. I see this: ProjectBeforeResourceChange, but that is before, I want it to happen AFTER. How would I do that?

    Monday, January 10, 2011 2:29 PM

Answers

  • too bad that doesnt really work. I put my subroutine code into ALL 3 events:

    ProjectBeforeResourceChange

    ProjectBeforeResourceDelete

    ProjectBeforeResourceNew

    It only runs the code on NEXT time i modify the resource, since it does it BEFORE any resource change. So it is always 1 step behind.

    I ended up just assigning my macro to a button.

     

    This is my official request to have a ProjectAfterResourceChange event in the next update.

    Tuesday, January 11, 2011 3:15 PM

All replies

  • The before change macro allows you to capture the value before the change and what the new value is. So you would simply use those values to make your update and allow the change (cancel = false).

    What specifically are you trying to do?


    Jack Dahlgren blogs at:
    Project and Retrovention
    and rarely Twitter
    Monday, January 10, 2011 4:40 PM
    Moderator
  • I actually do not need to capture any of the values.

     

    What i am looking for is a way to say:

     

    If task.resources.haschanged then


     run my subroutine()

     

     

    Monday, January 10, 2011 5:18 PM
  • Then just put it in the event handler.

    Should run it fine.


    Jack Dahlgren blogs at:
    Project and Retrovention
    and rarely Twitter
    Tuesday, January 11, 2011 12:48 AM
    Moderator
  • too bad that doesnt really work. I put my subroutine code into ALL 3 events:

    ProjectBeforeResourceChange

    ProjectBeforeResourceDelete

    ProjectBeforeResourceNew

    It only runs the code on NEXT time i modify the resource, since it does it BEFORE any resource change. So it is always 1 step behind.

    I ended up just assigning my macro to a button.

     

    This is my official request to have a ProjectAfterResourceChange event in the next update.

    Tuesday, January 11, 2011 3:15 PM