value from row of repeating table - InfoPath Dev
in

InfoPath Dev

value from row of repeating table

Last post 05-12-2010 07:09 AM by ehaze. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-11-2010 06:34 AM

    • ehaze
    • Top 500 Contributor
    • Joined on 12-11-2007
    • Posts 49

    value from row of repeating table

     real easy if you are using a button in the same row.

             Public Sub buttonOne_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
                Dim xX As XPathNavigator = e.Source.CreateNavigator
                Dim x1 As XPathNavigator = xX.SelectSingleNode("my:s_txtAutoNumber", NamespaceManager)
             End Sub

     when i try the same action using the Changed event of a text box, i don't get the same result.

            Public Sub s_txtBoxOne_Changed(ByVal sender As Object, ByVal e As XmlEventArgs)
                Dim nav1 As XPathNavigator = MainDataSource.CreateNavigator()
                Dim xx1 As XPathNavigator = nav1.SelectSingleNode("my:s_txtAutoNumber", NamespaceManager)
           End Sub

     

    is there a better way of handling the Changed event of the text box or can i call the button clicked event from the text box?

     

     

  • 05-11-2010 07:58 AM In reply to

    Re: value from row of repeating table

    try e.Site.CreateNavigator()

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 05-11-2010 11:21 AM In reply to

    • ehaze
    • Top 500 Contributor
    • Joined on 12-11-2007
    • Posts 49

    Re: value from row of repeating table

    any reason why this would be a bad idea?

     

                Dim xxPath As XPathNavigator = e.Site.CreateNavigator()
                xxPath.MoveToParent()


                If e.Site.InnerXml <> "" Then
                    Dim xTest As XPathNavigator = xxPath.SelectSingleNode("my:sTest", Me.NamespaceManager)
                End If

  • 05-11-2010 10:40 PM In reply to

    Re: value from row of repeating table

    what do you want to achieve..

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 05-12-2010 07:09 AM In reply to

    • ehaze
    • Top 500 Contributor
    • Joined on 12-11-2007
    • Posts 49

    Re: value from row of repeating table

     was trying to get the value of the current row in a repeating table.

     it works...  

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