<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: change view if there are no errors</title><link>https://www.infopathdev.com:443/forums/thread/38159.aspx</link><pubDate>Fri, 06 Feb 2009 13:29:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38159</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=38159</wfw:commentRss><description>&lt;p&gt;Thanks for the tip, but I don&amp;#39;t have a XDocument object. I work with c#&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ah i found it.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Errors.Count == 0){&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.ViewInfos.SwitchView(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;viewName&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: change view if there are no errors</title><link>https://www.infopathdev.com:443/forums/thread/38157.aspx</link><pubDate>Fri, 06 Feb 2009 13:10:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38157</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=38157</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Write the following code in the button click event.&lt;/p&gt;
&lt;p&gt;If(thisXDocument.Errors.Count == 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thisXDocument.View.SwitchView(&amp;quot;viewName&amp;quot;);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>change view if there are no errors</title><link>https://www.infopathdev.com:443/forums/thread/38156.aspx</link><pubDate>Fri, 06 Feb 2009 12:51:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38156</guid><dc:creator>tylkomat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=38156</wfw:commentRss><description>&lt;p&gt;Hallo there,&lt;/p&gt;
&lt;p&gt;I made a shop with different articles and some have a color to select and some don&amp;#39;t. If an article has&amp;nbsp;different&amp;nbsp;colors you have to select one.&lt;/p&gt;
&lt;p&gt;If you click a button the view will be changed to a summary of the selected articles. I only want to let the view change if there are no errors on this view like that missing color.&lt;/p&gt;
&lt;p&gt;How can I do that ? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Matthias&lt;/p&gt;</description></item></channel></rss>