H
Harald
Hello,
I need an example how to access a secondary datasource with vb.net.
I tried following:
Dim objDataObject As ADOAdapter =
thisXDocument.DataObjects("Kunde").QueryAdapter
thisXDocument.DataObjects("tblKunden").Query()
Dim myDoc As IXMLDOMDocument2 = thisXDocument.DataObjects("Kunde").DOM
myDoc.setProperty("SelectionNamespaces",
"xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution' xmlns:d='http://schemas.microsoft.com/office/infopath/2003/ado/dataFields'")
When I want to read with selectSingleNode or selectNodes there occurs an
error:
"selectSingleNode" is not clear. It is used in
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument" and in
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode".
Thanks,
Harald
I need an example how to access a secondary datasource with vb.net.
I tried following:
Dim objDataObject As ADOAdapter =
thisXDocument.DataObjects("Kunde").QueryAdapter
thisXDocument.DataObjects("tblKunden").Query()
Dim myDoc As IXMLDOMDocument2 = thisXDocument.DataObjects("Kunde").DOM
myDoc.setProperty("SelectionNamespaces",
"xmlns:dfs='http://schemas.microsoft.com/office/infopath/2003/dataFormSolution' xmlns:d='http://schemas.microsoft.com/office/infopath/2003/ado/dataFields'")
When I want to read with selectSingleNode or selectNodes there occurs an
error:
"selectSingleNode" is not clear. It is used in
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMDocument" and in
"Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode".
Thanks,
Harald