[C#] Repeating Table - InfoPath Dev
in

InfoPath Dev

[C#] Repeating Table

Last post 10-13-2005 05:43 AM by vt_asparagus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-13-2005 05:09 AM

    [C#] Repeating Table

    Hello,

    I've the following problem:
    - I've a repeating table with 4 coloums
    - I wanna write all coloums in a database so I will need a while-loop or sth. like this that he will write a dataset with the coloums in the database.
    - I've no idea how to do this ;)

    Here my present code:

    IXMLDOMNodeList nl_table = thisXDocument.DOM.selectNodes("//my:gruppe2");
    String thema = "";
    String verantwortlicher = "";
    String beginn = "";
    String ende = "";
    thisXDocument.UI.Alert("TEST");
    IXMLDOMNode row = thisXDocument.DOM.selectSingleNode("//my:Ersteller");
    while (row = nl_table.nextNode())
    {
    thema = Convert.ToString(row.selectSingleNode("my:Thema"));
    verantwortlicher = Convert.ToString(row.selectSingleNode("my:Verantwortlicher"));
    beginn = Convert.ToString(row.selectSingleNode("my:Beginn"));
    ende = Convert.ToString(row.selectSingleNode("my:Ende"));
    }

    My Compiler says that the Conversion from "Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode" to "bool" isn't possible. The error is in "row = nl_table.nextNode()".

    Hope you can help me.
    Sorry for my bad English :)

    Greez Osiris
  • 10-13-2005 05:43 AM In reply to

    "while (row = nl_table.nextNode())" is your problem. Use a For loop.
    Jason
    http://www.k2distillery.com/
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.