problem selecting a node - InfoPath Dev
in

InfoPath Dev

problem selecting a node

Last post 04-24-2006 09:40 AM by Greg Collins. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-21-2006 04:13 PM

    problem selecting a node

    Scenario:
    I have a ip form thats is link to a sql database table.
    My main connection look like this:
    (dfs:myFields/dfs:datafields/d:Orders/:orderid)

    Order is a Repeating Group.

    I try the next statement:
    var row = XDocument.DOM.selectSingleNode("//d:Orders");
    row.selectSingleNode("orderid").text = 1; (here is the problem)
    ip send me error:
    XDocument.DOM.selectSingleNode(...)' is null or not is a object

    why??

    I work with this before and work fine, but now the difference is the repeating group, with "d:", how i can solve this problem?

    somebody?

  • 04-21-2006 04:17 PM In reply to

    Re: problem selecting a node

    I solve my problem, my solutions was:

    use "@" before the name node.
    row.selectSingleNode("@orderid").text = 1;

    Thanks.
  • 04-24-2006 09:40 AM In reply to

    Re: problem selecting a node

    Great! Glad you were able to get it working!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.