Read the Infopath form/view as an XML - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Read the Infopath form/view as an XML

Last post 12-13-2010 08:07 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-09-2010 05:40 PM

    Read the Infopath form/view as an XML

    Hi All,

    I am very new to infopath. Please help in the below scenario.

    I have a multiple views. I would like to persist some data in DB, before submitting to sharepoint. I have a  Webservice which expects an XML and has its own logic to save the information by parsing the XML. What I need is, how do I get the XML with data of the current view in code behind on a button click event[C# VSTA]??

     Appreciate your help and thanks in advance.

    Shankara.

    --
    Thanks,
    Shan.
  • 12-13-2010 08:07 AM In reply to

    Re: Read the Infopath form/view as an XML

    Hi Shankara,

    Views don't correspond to schema sections. The data source (called the "schema") is independent of the views so you can't create an XML fragment for your Web service based on your view. You could use a data-driven Web service, like Qdabra's DBXL which allows you to conditionally specify some nodes to map based on fields in the form but writing your own code to do this is going to be time consuming and error-prone. I recommend creating separate forms for those views and submitting them separately.

    Best of luck!

    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.