I am using InfoPath 2007 and writing code in VB.
I have a repeating table and in the last column I have a button. When I click on the button I want to determine the row number (index) among other things.
I have already figured out how to read the date in the row that I click the button.
e.Source.SelectSingleNode("my:field1", NamespaceManager()).Value
I have tried
e.Source.Select("XXX").CurrentPosition
However I can’t figure out what to put in for the xpath string (Note: the XXX is just a placeholder for my question)
I created a test case inored to try determin the the correct code to use. The data structor is
myFields
group1
group2 <- this is the repeating table
field1
My table looks like
---------------------------
| text field | button | <- Clicking this button should return row 1
---------------------------
| text field | button | <- Clicking this button should return row 2
---------------------------
| text field ! button | <- Clicking this button should return row 3
---------------------------
Thank you for your help
Steve