SetValue in Infoath 2007

O

Oscar Jimenez

I am programing with InfoPath 2007 and Visual Studio. I want to assing a
value for a field, but this field is a integer type. The code:
xpn.SelectSingleNode("/my:Servidor/my:Field",
this.NamespaceManager).SetValue("3");

When I run, the code generate an error "InvalidOperationException". This
error only happends when the type data is integer, not with string.

Also, when I use the "TypedValue" Property of the "XPathNavigator" object I
received an "NotImplementedException" Error, Why?? this property not is
implemented. My Office 2007 versión is the final.

What is my programing error? Which is the correct way to assing the values
to the fields?
 
Top