C
ckc
I am trying to create project issues with PDS or WSS api and have the issues
link properly to the project. I have sucessfully created the new issues with
the following codes in sharepoint but it does not link properly to the
project.
Does anyone know how to link issues in sharepoint to a project? 3
Any help would be appreciated.
thanks
string sSPServerUrl=site;
ipmdev.Lists listService = new ipmdev.Lists();
listService.Url = sSPServerUrl + "/_vti_bin/lists.asmx";
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;
string strBatch ="";
strBatch = "<Method ID=\"1\" Cmd=\"New\">" +
"<Field Name=\"ID\">New</Field>" +
"<Field Name=\"Title\">"+title+"</Field>" +
"<Field Name=\"Owner\">"+Owner+"</Field>" +
"<Field Name=\"Discussion\">"+discussion+"</Field>" +
"</Method>";
XmlDocument xmlDoc = new System.Xml.XmlDocument();
System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");
elBatch.SetAttribute("OnError","Return");
elBatch.InnerXml = strBatch;
XmlNode ndReturn = listService.UpdateListItems("Issues", elBatch);
link properly to the project. I have sucessfully created the new issues with
the following codes in sharepoint but it does not link properly to the
project.
Does anyone know how to link issues in sharepoint to a project? 3
Any help would be appreciated.
thanks
string sSPServerUrl=site;
ipmdev.Lists listService = new ipmdev.Lists();
listService.Url = sSPServerUrl + "/_vti_bin/lists.asmx";
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;
string strBatch ="";
strBatch = "<Method ID=\"1\" Cmd=\"New\">" +
"<Field Name=\"ID\">New</Field>" +
"<Field Name=\"Title\">"+title+"</Field>" +
"<Field Name=\"Owner\">"+Owner+"</Field>" +
"<Field Name=\"Discussion\">"+discussion+"</Field>" +
"</Method>";
XmlDocument xmlDoc = new System.Xml.XmlDocument();
System.Xml.XmlElement elBatch = xmlDoc.CreateElement("Batch");
elBatch.SetAttribute("OnError","Return");
elBatch.InnerXml = strBatch;
XmlNode ndReturn = listService.UpdateListItems("Issues", elBatch);