submiting the rows of a repeating table in InfoPath to a SharePoint list - InfoPath Dev
in

InfoPath Dev

submiting the rows of a repeating table in InfoPath to a SharePoint list

Last post 06-25-2010 02:58 AM by DoosanRuss. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-25-2010 02:24 AM

    submiting the rows of a repeating table in InfoPath to a SharePoint list

    Hi All

    I've been follwing this how-to guide http://www.bizsupportonline.net/infopath2007/how-to-submit-items-rows-repeating-table-infopath-sharepoint-list.htm by S.Y.M. Wong-A-Ton, it's probably a bit deep for me, just trying to push our IT Dept into helping me.

    However i'm so close to it working, when i went to preview the form i got the following error:

     InfoPath cannot open the selected form because of an error in the form's code.
    The following error occurred:Expected ';'
    File:script.js
    Line:25
    XPathNavigator secDSNav = DataSources

    What am i doing wrong? Any help gratefully recieved.

    I'm currently testing the example before i attempt the actual version, just make sure i can do it.




     

  • 06-25-2010 02:47 AM In reply to

    Re: submiting the rows of a repeating table in InfoPath to a SharePoint list

    Looks like you're missing a semicolon somewhere.  Could you post a few more lines of the section that it's indicating?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 06-25-2010 02:58 AM In reply to

    Re: submiting the rows of a repeating table in InfoPath to a SharePoint list

    Sorry i should of thought of that, Line 2 here is Line 25 in my MSE

     // Delete all Method nodes from the CAML Batch XML
    XPathNavigator secDSNav = DataSources
    ["CustomListCAML"].CreateNavigator();
    XPathNodeIterator iter = secDSNav.Select("/Batch/Method");
    int methodNodesCount = iter.Count;

    XPathNavigator firstMethodNav =
    secDSNav.SelectSingleNode("/Batch/Method[1]",
    NamespaceManager);
    XPathNavigator lastMethodNav =
    secDSNav.SelectSingleNode("/Batch/Method[" +
    methodNodesCount.ToString() + "]",
    NamespaceManager);

    firstMethodNav.DeleteRange(lastMethodNav);

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