I have an InfoPath form (Code in VB).
The form contain a repeating table with 2 column:
One is text box (named "test")
and in the seconed column there is button.
I want that click on the button will pop up Alert with the text that on the text box filed ("test") which in the same row.
I have this code:
/////////////////////////////////////
Sub CTRL6_5_OnClick(eventObj)
dim val
val=XDocument.DOM.selectSingleNode("//my:myFields/my:group2/my:test").text
XDocument.UI.Alert(val)
End Sub
///////////////////////////////////////
I run the form and I enterd on the first row in the "test" filed the value "aaa" and click on the button on this row, it's print to me "aaa" (that's good)
BUT!!! when I add seconed row on table and enterd "bbb" and click on button of the seconed row It's print "aaa" and not "bbb"!!!!
How to fix it???