Perhaps one of the common customizations in Project Web Access (PWA) in Project Server 2010 would be to add a custom webpart on a Project Detail Page (PDP). This webpart will save some data into a data store such as another SQL server database, a SharePoint List or call some web services.For example, let us say that from within PWA, users need to update the description for a project in an external idea management system.For the sake of discussion, we accomplish this by creating a custom webpart with a description textbox.
We could put a Save button inside the webpart but, that would lead to an inconsistent user interface. The user may get confused between the Save button on the ribbon and the save button in the webpart.
We could trap the Save button event by creating an Elements.xml file with a CommandUIHandler for the SaveProject Command.
Here’s what you need to do
The complete source code can be downloaded from the attachment.
What it finally looks like
This work is excellent. However, I have a question: If our customwebpart is updating a Custom Field from the same project, how could we avoid the pop-up stating that the project may be outdated?
Hi! Nice work!
I wan't to cancel the save event if my validation fails. Do you have an idea how to achive this?
But i have the same doubt...,how should i proceed to cancel the save button event ?
Great Work man!!
My doubt is after clicking the save it gets saved.but if i refresh the data gets vanished.any idea to retain the value even after refreshing.>?
How could we avoid the pop-up stating "Initiating custom save with a callback"