Issue with Getting Data From SharePoint Library with Code - InfoPath Dev
in

InfoPath Dev

Issue with Getting Data From SharePoint Library with Code

Last post 02-12-2010 12:13 PM by tallfiji. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-12-2010 12:13 PM

    Issue with Getting Data From SharePoint Library with Code

    I have code that will connect to a SharePoint InfoPath forms library. In this library are 5 forms, each of which are defined as a content type. I need to have code retrieve information from the column based on form and the month and year of the form. For some reason this code will not retrieve the data. The library has a space in the name and each of the forms are grouped in sub folders in the library. The code below should set the value with the value in the form library but currently it does nothing. The library in SharePoint is called WCF Reporting and the sub folder is called Employer Service Reporting. Is it an issue with the sub folder? Is it an issue with the spaces? DataSource DS = this.DataSources["WCF Reporting"]; try { LevSatWithWCFServ = DS.CreateNavigator().SelectSingleNode("/dfs:myFields/dfs:dataFields/dfs:WCF_Reporting[@ReportMonth='" + ReportMonth + "' and @ReportYear='" + ReportYear + "' and @Content_Type='" + ContentType + "']/@LevSatWithWCFServ", NamespaceManager).Value; } catch { }
    Filed under: , ,
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.