This issue is resolved via e-mail.
Here is the piece of code to add rows dynamically to a repeating table via code (note: change the xpath)
private void InsertBlankRow()
{
string myNamespace = NamespaceManager.LookupNamespace("my");
using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:Group53", this.NamespaceManager).AppendChild())
{
writer.WriteStartElement("Software_Serials", myNamespace);
writer.WriteElementString("Software_Serial", myNamespace, string.Empty);
writer.WriteElementString("Machines_Lookup", myNamespace, string.Empty);
writer.WriteEndElement();
writer.Close();
}
}
public void Software_Purchased_Licenses_Changed(object sender, XmlEventArgs e)
{
// Write your code here to change the main data source.
XPathNavigator root = MainDataSource.CreateNavigator();
XPathNavigator test = root.SelectSingleNode("/my:myFields/my:Software_Purchased_Licenses", this.NamespaceManager);
for (int i = 0; i < Int32.Parse(test.Value); i++)
{
InsertBlankRow();
}
}