H
Hersh
I'm trying to call a Secondary Data Source, a Web Service, during a Changing
event. When attempting to set the query field for this Web Service
programmatically:
XPathNavigator xPath_portfolioNoQueryField =
xPath_DS_getPortfolioProfile.SelectSingleNode("/dfs:myFields/dfs:queryFields/tns:getPortfolioProfile/tnsortiaSymbol", NamespaceManager);
xPath_portfolioNoQueryField.SetValue(e.NewValue);
I get the following Exception:
System.InvalidOperationException
Operation is not valid, because of the current state of the object.
According to the Roberts/Green book on InfoPath 2007 only the Main Data
Source is read-only during the Changing event (page 757). Why can't I change
the Secondary Data Source?
Thank you.
event. When attempting to set the query field for this Web Service
programmatically:
XPathNavigator xPath_portfolioNoQueryField =
xPath_DS_getPortfolioProfile.SelectSingleNode("/dfs:myFields/dfs:queryFields/tns:getPortfolioProfile/tnsortiaSymbol", NamespaceManager);
xPath_portfolioNoQueryField.SetValue(e.NewValue);
I get the following Exception:
System.InvalidOperationException
Operation is not valid, because of the current state of the object.
According to the Roberts/Green book on InfoPath 2007 only the Main Data
Source is read-only during the Changing event (page 757). Why can't I change
the Secondary Data Source?
Thank you.