L
lior
I have an InfoPath form which in it's code I operate searching (by field
parametr) in SharePoint Forms Library (contain others InfoPath form- xml) .
I want to be able to open the form that was found; I must to get the fotm
name. I use this code:
//////////////////
var dataObj= XDocument.DataObjects("StudentsForms");
var dataDom=dataObj.DOM;
dataDom.setProperty
("SelectionNamespaces",'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"
xmlns:dsf="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ');
dataObj.Query();
var selectedNode =
dataDom.selectSingleNode("/dfs:myFields/dfs:dataFields/dsf:Students
[@IDnumber='" + strId + "']");
var fname=selectedNode.attributes.getNamedItem("FirstName").text;
////////////////
As you can see, In the last row I get the "FirstName" value which is column
in the SharePoint Forms Library,
How can i get the name of the InfoPath form file (Which is also culomn in
the list) ?????
parametr) in SharePoint Forms Library (contain others InfoPath form- xml) .
I want to be able to open the form that was found; I must to get the fotm
name. I use this code:
//////////////////
var dataObj= XDocument.DataObjects("StudentsForms");
var dataDom=dataObj.DOM;
dataDom.setProperty
("SelectionNamespaces",'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"
xmlns:dsf="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" ');
dataObj.Query();
var selectedNode =
dataDom.selectSingleNode("/dfs:myFields/dfs:dataFields/dsf:Students
[@IDnumber='" + strId + "']");
var fname=selectedNode.attributes.getNamedItem("FirstName").text;
////////////////
As you can see, In the last row I get the "FirstName" value which is column
in the SharePoint Forms Library,
How can i get the name of the InfoPath form file (Which is also culomn in
the list) ?????