Hi all
I am trying to loop through a repeating table, which is a secondary data source, and compare the Title column from the repeating table to another string which is not from the table. If they equal, I want all other rows to be hidden, except the equal one. Under you can see in code what I have tried to do, but the problem is that it returns 0 on rows.count, so, I basically never get to itterate at all.
// Retrieve the rows of the repeating table
XPathNavigator root = MainDataSource.CreateNavigator();
XPathNodeIterator rows = root.Select("/dfs:myFields/dfs:dataFields/dfs:Form_Workflow_Tasks", NamespaceManager);
// Loop through the rows of the repeating table
int counter = 1;
while (rows.MoveNext())
{
// Retrieve the title
string title = rows.Current.SelectSingleNode("/dfs:myFields/dfs:dataFields/dfs:Form_Workflow_Tasks", NamespaceManager).Value;
// Increment the counter
counter++;
}
Is it at all possible to itterate through a repeating table from a secondary data source. Any help is appreciated :)
Regards