adding web part problem

N

Noynoy

Hi,

I am trying to create a template and added a webpart for Project
Report. I wanted to show the Project details in the team site
template. In our development setup, I can make the project detail to
show in the template, but in our production the project center view is
shown and I can see all the projects instead of just a specific one.

Is there any settings I should do to make the project detail to appear
in my team site instead of the project center view?

thanks and best rgds,

Noynoy
 
N

Noynoy

Hi Gary,

I checked the HTML source code of the webpart against our dev and
production setup and they are the same.


******************


<script language="JScript">
var sLoc = window.location.toString();
if(typeof(L_Menu_BaseUrl) == 'undefined')
var sPostUrl = sLoc.substr(0, sLoc.lastIndexOf('/')) + "/
_layouts/pwainc/getprop.aspx";
else
var sPostUrl = L_Menu_BaseUrl + "/_layouts/pwainc/
getprop.aspx";

var sRequest = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
sRequest += "<XMLFormData>";
sRequest += " <READONLY>1</READONLY>";
sRequest += "</XMLFormData>";

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", sPostUrl, false);
xmlhttp.setRequestHeader("Content-Type", "text/xml;
charset=utf-8");
xmlhttp.send(sRequest);

var sResult = xmlhttp.responseXML;
if(sResult.childNodes.length > 0)
{
var sMSPWAURL = sResult.selectSingleNode("//PWAURL").text;
var sMSPROJID = sResult.selectSingleNode("//
PWAPROJID").text;

document.write("<iframe src=\"" + sMSPWAURL + "Views/
ProjectReport.asp?_projectID=" + sMSPROJID + "&SimpleUI=125\"
width=100% height=100%></iframe>");
}
</script>

***********************

rgds,

Noynoy
 
G

Gary L. Chefetz [MVP]

NoyNoy:

These are two distinctly separate web parts. In the gallery, one is called
"Project Center" and the other one is called "Project Details." When
inserted into a page, the title should read one or the other. Unless there's
something wrong with your SharePoint installation, it's very unlikely that
one would impersonate the other. I would delete the web part and try adding
it again.

--

Gary L. Chefetz, MVP
MSProjectExperts
For Project Server Consulting: http://www.msprojectexperts.com
For Project Server FAQS: http://www.projectserverexperts.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