Add a node to main data source - InfoPath Dev
in

InfoPath Dev

Add a node to main data source

Last post 07-27-2013 04:36 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-26-2013 05:02 AM

    Add a node to main data source

    Hello!

    In my form I have a repeating table, which in main data source looks like

    <my:reg_info>

      </my:reg_code>

      </my:reg_name>

    </my:reg_info>

    But in the newest form I had to add </my:reg_date> to this scope.

    Is it possible to add this field to the older filled forms  programmatically using C#?

    Thanks in advance.

  • 07-27-2013 04:36 PM In reply to

    Re: Add a node to main data source

    Hi Tivalli,

    Sure, anything's possible with code. :)  BTW, your XML is not well-formed - you don't have beginning tags for my:reg_code and my:reg_name.

    InfoPath will automatically upgrade old forms and insert the new field. If you have <20-30 forms that might be the easiest solution.

    There used to be a feature in SharePoint to allow demotion which would allow you to edit XML contents via a datagrid view but that option is gone.

    We have a tool that supports created XML forms from an Excel spreadsheet. You could use that to batch add the value, but it would require generating the Excel and configuring it to map to XML. Could be an hour or two and you'll have to get the tool. We also have a DBXL migration tool (under downloads) that you can use to transform XMLs using XSLT. It will do a bulk transform and you don't need to buy anything but you'd have to install the DBXL Web service trial and then migration tool. You'd also have to right some XSLT. But, that would be an easier option if your XML is complex and you have thousands of XMLs.

    Send us email if you'd like to pay for an hour of support.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.