2010年9月13日 19:53Is there a way that I can run a custom command action after the default behavior of a standard Ribbon button on a standard page in PS2010, i.e. Project Center.
As an example, I would like to run custom code when the user hits the "New" button on the Project Center page, or the "Save" button on the Resource Plan page. I don't want to override the behavior, I just want to run additional logic that is not accessible via server side handlers after PWA does it's thing. For example, the Resource Plan page allows me to capture when a Resource Plan is "published" with a server side handler... but not when it is "saved". I want to update other UI components when someone hits the save button on this page.
You cannot add your own code behind an out-of-the-box button (at least not in a supported way). What you can do is customize the ribbon and add your own button that executes your code, followed by the action of the standard button.
You can find a sample in the SDK, but as you already noticed in another topic, this might not work for the Resource Plan page.
Can you please elaborate a little more about what exactly you are trying to achieve? I've seen quite some topics from you about what I believe is the same issue as this one. Maybe if you explain to us what the business requirement and the goal is, that we can provide you with alternative ideas and/or solution.
My EPM blog: Projectopolis
- 回答としてマーク Carlos A. Gonzalez 2010年9月13日 22:44
What I am trying to do has been posted on this thread:
I think you have answered my question on the limitations of the standard ribbon buttons.