This is no longer needed as I was able to figure it out using Visual Basic code. Here is the code in case anyone else ends up needing it. This will take data returned in a secondary data source and fill a repeating table with the data which is then saved in the main DOM, and available offline.
For this example I have a secondary data connection called "tbl_SPOC_Hierarchy_Responsibilities", it has two fields in it, "PERSON_NUMBER" and "HIER_RESP".
group5 is the name of the repeating table, with two fields, field1 and field2
'Loop thru data returned to secondary data source and add to local table in Main DOM
Dim oNodeList As IXMLDOMNodeList
Dim oNode As IXMLDOMNode
Dim item As IXMLDOMNode
Dim oDOM As IXMLDOMDocument2 = CType(thisXDocument.GetDOM(DataConnectionName), IXMLDOMDocument2)
Dim Value1 As String = ""
Dim Value2 As String = ""
oDOM.setProperty("SelectionNamespaces", "xmlns:d=""http://schemas.microsoft.com/office/infopath/2003/ado/dataFields"" " & _
"xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"" " & _
"xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-08-16T13:30:52"" ")
oNodeList = oDOM.selectNodes("dfs:myFields/dfs:dataFields/d:tbl_SPOC_Hierarchy_Responsibilities") 'secondary data source name
If (oNodeList.length > 0) Then
For Each oNode In oNodeList
For Each item In oNode.attributes
If item.nodeName = "PERSON_NUMBER" Then
Value1 = item.text
End If
If item.nodeName = "HIER_RESP" Then
Value2 = item.text
End If
Next
Dim myclone As IXMLDOMNode
Dim mynode As IXMLDOMNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:group4/my:group5")
myclone = mynode.cloneNode(True)
thisXDocument.View.ExecuteAction("xCollection::insert", "group5_16")
myclone.selectSingleNode("/my:field1").text = Value1
myclone.selectSingleNode("/my:field2").text = Value2
Dim parent As IXMLDOMNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:group4")
parent.insertBefore(myclone, mynode)
thisXDocument.View.ExecuteAction("xCollection::remove", "group5_16")
Next
End If