Hallo,
I would like to create a button to add a new row to a repeating table programmatically in infopath 2010
(such that the user can add more records if needed).
(I am aware you don't really need to code that, but I would like to implement that in VB code as
a basis for future more advanced functions - so I am trying to learn how it works).
In the button code ( "clicked" procedure) I was trying the following code
Dim MainRepeatingTable As XPathNavigator
MainRepeatingTable = Me.MainDataSource.CreateNavigator
MainRepeatingTable.SelectSingleNode("//dfs:dataFields/d:myRepeatingTableGroup", NamespaceManager).AppendChild()
But this is not working... No errors, but also no changes in the shown repeating table.
I would be grateful if someone could provide some hints for me.
Thanks,
Paolo