Why can't a Secondary Data Source be altered during Changing event

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/tns:portiaSymbol", 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top