Is it possible to populate a repeating table with an xml file in Infopath 2003? - InfoPath Dev
in

InfoPath Dev

Is it possible to populate a repeating table with an xml file in Infopath 2003?

Last post 06-10-2010 08:13 AM by Flanker. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-09-2010 03:59 PM

    Is it possible to populate a repeating table with an xml file in Infopath 2003?

    Hi,  

    I would like to load the repeating table from an xml file, and make changes and then save the repeating table back to the xml file. Is this possible, I can only do this in Jscript, I do not have access to any VB or C# .NET code. 

    Thanks 

  • 06-09-2010 06:27 PM In reply to

    Re: Is it possible to populate a repeating table with an xml file in Infopath 2003?

    Hi Flanker and welcome!

    When you say "load a repeating table from an xml file" it implies you want to use a secondary data source (data connetions -> retrieve -> xml). Secondary data sources can't be saved. Only the main data source is persisted. However, you can copy the items from the secondary data source to the main data source and then save that back to the xml file. Set value works on single fields but not a repeating table. So, to copy a repeating table, the simplest approach is to use the Copy Table feature in qRules. (disclaimer: Qdabra Software pays for this free forum and also provides qRules trial for free or the full version for a small fee. The small fee helps us keep the forum running. ). The only other way to copy a repeating table from a secondary data source to the main data source is to use code.

    To do this without a secondary data source is possible. You can create an XSLT that you use to merge the form into your main data source. The XSLT can copy repeating table data. Please look at the Status Report in InfoPath 2003 samples. It has built-in support to do this. Save the XSN as source files and look at the manifest.xsf. Search for import and look for the xsl specified. Open this xsl and view it. You can create a similar xsl for your form and use merge forms to do it. Users will open your form. Choose merge forms to import the xml file. Then save back to the same location manually.

    I hope this helps.

    Patrick Halstead
    Project Manager at Qdabra
  • 06-10-2010 08:13 AM In reply to

    Re: Is it possible to populate a repeating table with an xml file in Infopath 2003?

    Hi again Patrick,

    "When you say "load a repeating table from an xml file" it implies you want to use a secondary data source (data connetions -> retrieve -> xml)."   Yes.  I want to do this in Jscript since I have already built the form's functionality almost entirely in Jscript.  I was hoping for some coding examples to to this to get me started.  But I will research the details you suggest in your 2nd paragraph. 

    Thanks 

     

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