Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Hooking into the Project Detail Page Ribbon Save button without overriding out-of-box functionality in Project Web Access for Project Server 2013

$
0
0

HI All,

We are trying to  do customizations in Project Web Access (PWA) in Project Server 2013 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.

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

http://blogs.msdn.com/b/husainzgh/archive/2011/08/01/hooking-into-the-project-detail-page-ribbon-save-button-without-overriding-out-of-box-functionality-in-project-web-access-for-project-server-2010.aspx

We could trap the Save button event by creating an Elements.xml file with a CommandUIHandler for the SaveProject Command.

We’d put in our own javascript in the CommandUIHandler’s CommandAction. However, doing this would override the Save functionality on the PDP ribbon permanently and only our custom code would get called all the time. The out-of-box (OOB) save functionality would be completely overridden, and clicking the Save button on any OOB PDP or a PDP with OOB webparts would not save any of the data

But using this approach would disable the save option in all the PDP's. But our requirement is that, only specific PDP pages - save button should be disabled.

Is any one has done this type of customization in PWA?

Please suggest me an solution for this issue.

Thanks in advance.

Sunitha


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>