D
daska
Hi
I am working on an InfoPath browser based form. I have created a multiselect
list box that contains two nodes, one for a checkbox and the other for a text
box. I succeeded in adding new rows programmatically but now I dont know how
to set the values of the inner nodes. For example, I copied following code
from the MS site:
XPathNavigator DOM = this.MainDataSource.CreateNavigator();
XPathNodeIterator nodes = DOM.Select("/my:myFields/my:Options/my:Option");
XPathNavigator nodesNavigator = nodes.Current;
XPathNodeIterator nodesText =
nodesNavigator.SelectDescendants(XPathNodeType.Text, false);
while (nodesText.MoveNext())
{
Console.Write(nodesText.Current.Name);
Console.WriteLine(nodesText.Current.Value);
}
This code shows how to read from the inner nodes but How can we set the
values of these inner nodes?
Thanks,
Daska
I am working on an InfoPath browser based form. I have created a multiselect
list box that contains two nodes, one for a checkbox and the other for a text
box. I succeeded in adding new rows programmatically but now I dont know how
to set the values of the inner nodes. For example, I copied following code
from the MS site:
XPathNavigator DOM = this.MainDataSource.CreateNavigator();
XPathNodeIterator nodes = DOM.Select("/my:myFields/my:Options/my:Option");
XPathNavigator nodesNavigator = nodes.Current;
XPathNodeIterator nodesText =
nodesNavigator.SelectDescendants(XPathNodeType.Text, false);
while (nodesText.MoveNext())
{
Console.Write(nodesText.Current.Name);
Console.WriteLine(nodesText.Current.Value);
}
This code shows how to read from the inner nodes but How can we set the
values of these inner nodes?
Thanks,
Daska