Wednesday, December 14, 2011

Jscript error in adding two Project Server 2010 web parts in a single page.

Environment: PWA 2010

Issue:

I had a client requirement to add an additional Project Center web part in Tasks page. I used the following steps to perform this task

1.      Go to PWA and open Tasks page
2.      Click Site Actions >>Edit Page
3.      Click “Add a Web Part”
4.      Select “Project Web App” from Categories option. Select Project Center web part and click “Add” to the page
5.      Adjust your web parts location as required



6.      Click “Page” tab >> “Stop Editing” from ribbon.



7.      You get the following Jscript error “Object Required”



8.      If you try to send your progress using “My Tasks” web part, you can see all the commands within the ribbon of “Tasks” tab are grayed out because of the JS script error.




Solution:

To fix the issue (work around), you need to follow the five steps (i.e. 1 – 5) as mentioned above and rather than clicking “Stop Editing”, click any available link (e.g. click Project Center link) to get the page out from the Edit mode. Now the web parts within this page is working all set without any JScript error. For some unknown reason, clicking “Stop Editing” button is causing the Jscript error.

No comments:

Post a Comment