Help with repeating table - InfoPath Dev
in

InfoPath Dev

Help with repeating table

Last post 03-10-2009 10:27 PM by swathip. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-10-2009 07:05 AM

    Help with repeating table

     

     How do I add a new row to a repeating table withthe value of TTaxie below assigned to Field3 of the table?

    Dim fieldValue1 As String = MainDataSource.CreateNavigator().SelectSingleNode( _ "/my:myFields/my:field11", NamespaceManager).Value

    Dim TTaxie As String = fieldValue1

     

    Thanks

  • 03-10-2009 10:27 PM In reply to

    Re: Help with repeating table

     

    Hi,

    Add the following code lines.

    // get a reference to the node the repeating table is bound to

    IXMLDOMNode row = thisXDocument.DOM.selectSingleNode("my:repeatingtable");

    // make a copy of the node by cloning it

    row = row.cloneNode(true);

    // set the new values of the row's fields

    row.selectSingleNode("my:field1").text = "new row field1";

    row.selectSingleNode("my:field2").text = "new row field2";

    row.selectSingleNode("my:field3").text = Ttaxie;

    // append the cloned row to the parent node

    IXMLDOMNode parent = thisXDocument.DOM.selectSingleNode("/my:myFields");

    parent.appendChild(row);

    Note: The above code is in C#.

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