Thanks Clay for the suggestion. I will try it. I still need the ability to loop through the nodes. Below is what I have tried so far.
Using Secondary (Web Service) data source.
In the Form View I query the "GetFilteredDataset" and populate a repeating table.
On Button Click event I attempt to loop thru the nodes with the goal of setting one node to "true"
oSelAll.setProperty("SelectionNamespaces",'
xmlns:ns2="http://tempuri.org/WALookupDS.xsd"
xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"
xmlns:tns="http://tempuri.org/" ');
// This works - returns the correct dataFields nodes with correct data shown in the QuickWatch from the Data Source
oViewOne = XDocument.GetDOM("GetFilteredDataset").selectSingleNode(
"/dfs:myFields/dfs:dataFields/tns:GetFilteredDatasetResponse/tns:GetFilteredDatasetResult/ns2:WALookupDS");
// DOES NOT WORK - it returns the queryFields nodes defined in the QuickWatch window
// but with dataFields data
oViewSel = XDocument.GetDOM("GetFilteredDataset").selectNodes(
"/dfs:myFields/dfs:dataFields/tns:GetFilteredDatasetResponse/tns:GetFilteredDatasetResult/NewDataSet/Table");
// DOES NOT WORK -Same as above
oViewSels= XDocument.GetDOM("GetFilteredDataset").selectNodes(
"/dfs:myFields/dfs:dataFields/tns:GetFilteredDatasetResponse/tns:GetFilteredDatasetResult/ns2:WALookupDS");
// returned correct node count of dataFields but data and nodes are incorrect (same as above)
oViewCnt = XDocument.GetDOM("GetFilteredDataset").selectNodes(
"/dfs:myFields/dfs:dataFields/tns:GetFilteredDatasetResponse/tns:GetFilteredDatasetResult/ns2:WALookupDS/ns2:WAPrimary").length;
Since I cannot get the selectNodes to work, I cannot build a loop to iterate the nodes