How to get InfoPath Form name in SP library? - InfoPath Dev
in

InfoPath Dev

How to get InfoPath Form name in SP library?

Last post 07-16-2007 03:36 AM by liorlankril. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-16-2007 03:36 AM

    How to get InfoPath Form name in SP library?

    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) ?????

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.