how to add new value to reapeting table using vb - InfoPath Dev
in

InfoPath Dev

how to add new value to reapeting table using vb

Last post 05-21-2014 12:57 AM by mayaby. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-21-2014 12:16 AM

    • mayaby
    • Not Ranked
    • Joined on 04-29-2014
    • Posts 8

    how to add new value to reapeting table using vb

    Hii

    Im trying to add new value to reapeting table but it always add the new value to the first row, what i want to do is to add new row to the reapeting table and then add the new value

    my reapeting table has one column

    my code:

    Dim domNav As XPathNavigator = MainDataSource.CreateNavigator()

    For index0 = 1 To 10

                 domNav.SelectSingleNode("//my:text1", NamespaceManager).SetValue(value))              domNav.SelectSingleNode("//my:group1", NamespaceManager).AppendChild()

                 domNav.SelectSingleNode("//my:group1", NamespaceManager).MoveToNext()

    Next index0

    group1 is the reapeting table

    text1 is the cloumn inside  reapeting table

     thanks,

    Maya 

     

  • 05-21-2014 12:57 AM In reply to

    • mayaby
    • Not Ranked
    • Joined on 04-29-2014
    • Posts 8

    Re: how to add new value to reapeting table using vb

    i changed th item to Multiple-Selection List Box

    and add the code:

    Dim DOM As XPathNavigator = MainDataSource.CreateNavigator()

    Dim group1 As XPathNavigator = DOM.SelectSingleNode("//my:8", NamespaceManager)

    Dim field1 As XPathNavigator = DOM.SelectSingleNode("//my:8/my:x", NamespaceManager)Dim newNode As XPathNavigator = field1.Clone()

    newNode.SetValue(PatCases(index0, 3).ToString())

    group1.AppendChild(newNode)

    you can see http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm 

    maya

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