Submiting a node's data via a custom Submit macro - InfoPath Dev
in

InfoPath Dev

Submiting a node's data via a custom Submit macro

Last post 10-21-2008 10:05 PM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-21-2008 07:56 PM

    Submiting a node's data via a custom Submit macro

    I also have the following issue

    Via the XDocument.DOM I can access the node I want the correspondig data to be submitted to a WebService

    I also get from my (secondary) Data Source it's DOM from where I can navigate to the Input node where the data will be taken when adapter.Query() is called.

    But instead of writing loops to copy values from the source node to the data source node where data is taken when Query() is called, I would like to just simply

    replace the data source node with the XDocument DOM one, is there a way to do this, in VBS, I think I'm having napespace issues when I try to do a replace

    Thanks

    Guillermo

  • 10-21-2008 10:05 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Submiting a node's data via a custom Submit macro

    Hello,

    For replacing the main data source node with secondary DOM node then both schema should be equal and namespace of the form also should be same.

    When you do a replace node you need to have the same node with the same prefix of namespace. Here is work around

    Make a replace in your node
    Make your form with your custom schema without namespace
    Change the Web Service return

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