Working with xml documents and repeating sections - InfoPath Dev
in

InfoPath Dev

Working with xml documents and repeating sections

Last post 01-19-2007 10:03 AM by Greg Collins. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-16-2007 02:22 PM

    Working with xml documents and repeating sections

    I am using Infopath to bring together several xml documents. Some of these documents are made from InfoPath and others are auto-generated xml documents from a reporting system. All of these subdocuments are not complete (that is not all of the element are filled in) and I am using InfoPath to insert them into the master xml document and fill in the remaining data.

    Speciffically what I need is to have the data in the secondary data source auto populate the main data source. Is there any way to map elements from data sources?

    Hope that was clear enough.

    Thanks,
  • 01-16-2007 03:34 PM In reply to

    Re: Working with xml documents and repeating sections

    You will need to write code to do what you are talking about. Well, you might be able to use Rules too--depending on the number of fields, though, Rules could become unwieldy. Code is probably better. Then you just do the mapping in your code (or rules).
  • 01-17-2007 09:42 AM In reply to

    Re: Working with xml documents and repeating sections

    quote:
    Originally posted by Greg Collins

    You will need to write code to do what you are talking about. Well, you might be able to use Rules too--depending on the number of fields, though, Rules could become unwieldy. Code is probably better. Then you just do the mapping in your code (or rules).





    Thanks . . . I was afraid of that. I was hoping that there was a data source wizard that would connect the dots so to speak.
  • 01-17-2007 02:52 PM In reply to

    Re: Working with xml documents and repeating sections

    No - nothing like that yet. It shouldn't be too bad though.
  • 01-18-2007 08:50 AM In reply to

    Re: Working with xml documents and repeating sections

    quote:
    Originally posted by Greg Collins

    No - nothing like that yet. It shouldn't be too bad though.



    Actually, I thought of something. I made a form with the schema of one of the sub-xml files as the main data source. I then tried to open up the xml file in infopath but I get an error on load to the effect that a template can not be found. to associate the xml file do I have to add processing instructions?
  • 01-19-2007 10:03 AM In reply to

    Re: Working with xml documents and repeating sections

    Yes, the easiest way to do this is to open your template, save out a blank form .xml file, then open that .xml file in a text editor, copy all the PIs, etc, from it, and paste them in place in your .xml file you want to open.
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.