<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Invalid context for OM call.</title><link>https://www.infopathdev.com:443/forums/thread/11184.aspx</link><pubDate>Thu, 22 Feb 2007 13:58:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11184</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11184.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11184</wfw:commentRss><description>Well, thanks any way :(</description></item><item><title>Re: Invalid context for OM call.</title><link>https://www.infopathdev.com:443/forums/thread/11183.aspx</link><pubDate>Thu, 22 Feb 2007 12:57:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:11183</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/11183.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=11183</wfw:commentRss><description>Hi Alexander Ekzarov,&lt;br /&gt;&lt;br /&gt;In On After change event we don#%92t have an option called ‘Switch View#%92. Which ever we don#%92t have this options in rules for on after change event. This not supported to invalid context for object model in InfoPath form. We can switch view by clicking on button.</description></item><item><title>Invalid context for OM call.</title><link>https://www.infopathdev.com:443/forums/thread/6085.aspx</link><pubDate>Thu, 22 Feb 2007 11:04:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6085</guid><dc:creator>ekzarov</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6085</wfw:commentRss><description>In my form template I have created Changed Event handler for my Text control:&lt;br /&gt;&lt;font color="blue"&gt;public void myField_Changed(object sender, XmlEventArgs e)&lt;br /&gt; {&lt;br /&gt;    // Write your code here to change the main data source.&lt;br /&gt; }&lt;/font id="blue"&gt;&lt;br /&gt;&lt;br /&gt;When write this code:&lt;br /&gt;&lt;font color="blue"&gt; public void myField_Changed(object sender, XmlEventArgs e)&lt;br /&gt; {&lt;br /&gt;    ViewInfos.SwitchView(ViewName);&lt;br /&gt; }&lt;/font id="blue"&gt;&lt;br /&gt;I get error:&lt;br /&gt;&lt;font color="red"&gt;Invalid context for OM call.&lt;/font id="red"&gt;&lt;br /&gt;Is there a posibility to change view, after field was changed ???</description></item></channel></rss>