How to retrive XmltoEdit - InfoPath Dev
in

InfoPath Dev

How to retrive XmltoEdit

Last post 06-12-2006 06:08 AM by gregv. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-06-2006 04:57 AM

    • gregv
    • Not Ranked
    • Joined on 05-24-2006
    • France
    • Posts 14

    How to retrive XmltoEdit

    Hello
    I've got a function in my custom task pane for clear every item in a view and create a new one :

    function NewElement() {
    XDocument.View.ExecuteAction("xCollection::removeAll", "co_dossiers_59");
    XDocument.View.ExecuteAction("xCollection::insert", "co_dossiers_59");
    }

    This function works very well but my problem is the var XmltoEdit (here 'co_dossiers_59'). I'm not the only person to develop forms but other people aren't good in javascript or vb so I decided to provide a 'generic' custom task pane they can use in each form they make.
    My question is how can I get programatically the name of the node ('co_dossiers_59') wich is the name of the node corresponding to my first table in the main connection (/dfs:myFields/dfs:dataFields/d:co_dossiers).
    Those forms are binded to a sql server database.
    Thaks in advance.
  • 06-09-2006 12:43 AM In reply to

    Re: How to retrive XmltoEdit

    Hi

    The code to get the name of the node programmatically in C#, try this:

    IXMLDOMNode node = thisXDocument.DOM.selectSingleNode("XPath");
    string nodeName = node.nodeName;
    Madhuri
    http://www.ggktech.com
  • 06-12-2006 06:08 AM In reply to

    • gregv
    • Not Ranked
    • Joined on 05-24-2006
    • France
    • Posts 14

    Re: How to retrive XmltoEdit

    Hi.
    Ok thank you for your answer.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.