MSPJGrid and customization of “Project detail†webpart

V

virsharma

I am having few queries related to the “Project details†webpart …

1. How can I use MSPJGrid in custom webpart for PWA as Project center and
Project details webpart in Project Server 2007?
2. How can I modify or customize “Project details†webpart that uses
MSPJGrid ?

Thanks and Regards,
Virendra Sharma
 
S

Stephen Sanderlin

There's really no documentation on doing this. you're basically on your
own here. MSPJGrid is in the Microsoft.Office.Project.PWA.CommonControls
namespace in Microsoft.Office.Project.Server.PWA.dll. You'll just need
to figure it out through trial and error. Be aware that this may be very
difficult to do without documentation.



As for altering the Project Details webpart, it depends what you want to
do. Here's a high-level outline of steps I've developed for this sort of
thing:

1. Create a new web part that will go on the page where the web
part you want to alter is running

2. In the new web part's OnLoad event, gather important
information and relevant references. For example:

a. Get the GUID of the PWA Site

b. Get the PJContext of the current page

c. Create a reference to the page's WebPartManager

d. Create a reference to the appropriate WebPart

e. Create the references to whatever you want to alter in the
existing web part

3. In the new web part, create an event handler for the existing
web part's PreRender event

a. This is where you'll make your modifications to the existing
web part

4. At the end of the new web part's OnLoad event, add the event
handler you created to the PreRender event of the existing web part



As with using MSPJGrid, there's no documentation on this anywhere, and
it may be very difficult to do what you would like to do.



I hope that's enough to get you started.

Steve



--

Stephen Sanderlin

Principal Consultant

MSProjectExperts



For Project Server Consulting: http://www.msprojectexperts.com

For Project Server Training: http://www.projectservertraining.com



Read my blog at: http://www.projectserverhelp.com/

Join the community at: http://forums.epmfaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top