D
Daniel
Actually I'm working with a secondary data source that points to a Windows
SharePoint list, but how I'm newbie with XML I'm having a lot of trouble
working with the resuts, in fact I can't see nothing about my list.
I connect to SharePoint using a JScript:
var objSPSList = XDocument.DataObjects["Contacts"].DOM;
objSPSList.setProperty("SelectionNamespaces",'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ' +
'xmlns:dsf="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ' +
'xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" ' +
'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-03-15T04:09:05"');
var RefNodes =
objSPSList.selectNodes("/dfs:myFields/dfs:dataFields/dfs:Contacts")
But after this point I don't know how to map any the two values of my list:
NAME and EMAIL
I tried with:
for(i=0;i<=RefNodes.length -1;i++)
{
XDocument.DOM.selectSingleNode("//my:group2/my:field1").text =
objSelectedItems(i).attributes(0).text;
}
But was not good, so.
Could someboy help me with some code to resolve this?
SharePoint list, but how I'm newbie with XML I'm having a lot of trouble
working with the resuts, in fact I can't see nothing about my list.
I connect to SharePoint using a JScript:
var objSPSList = XDocument.DataObjects["Contacts"].DOM;
objSPSList.setProperty("SelectionNamespaces",'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ' +
'xmlns:dsf="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ' +
'xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" ' +
'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-03-15T04:09:05"');
var RefNodes =
objSPSList.selectNodes("/dfs:myFields/dfs:dataFields/dfs:Contacts")
But after this point I don't know how to map any the two values of my list:
NAME and EMAIL
I tried with:
for(i=0;i<=RefNodes.length -1;i++)
{
XDocument.DOM.selectSingleNode("//my:group2/my:field1").text =
objSelectedItems(i).attributes(0).text;
}
But was not good, so.
Could someboy help me with some code to resolve this?