<?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: validation errors are not in the current view</title><link>https://www.infopathdev.com:443/forums/thread/8083.aspx</link><pubDate>Mon, 24 Oct 2005 04:15:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8083</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8083</wfw:commentRss><description>I got the following recommendation from Microsoft:&lt;br /&gt;&lt;br /&gt;Clear the "cannot be blank" checkbox for the field on view "B".&lt;br /&gt;&lt;br /&gt;Create an item in your data source to contain the name of the current view and use the OnSwitchView event handler to update the field name when the view changes (C# code):&lt;br /&gt;thisXDocument.DOM.selectSingleNode( "my:Form/my:InfoPathFormData/my:CurrentView" ).text&lt;br /&gt; = e.XDocument.View.Name;&lt;br /&gt;&lt;br /&gt;Then in the Data Validation for the control on view "B", set the "is blank" condition for your field and also put in a clause which states &lt;br /&gt;"AND" "CurrentView" "is equal to" "B"&lt;br /&gt;(Don't literally type this in! This is hard without a picture. :))&lt;br /&gt;&lt;br /&gt;Therefore your form will only require the field to be filled in when you are submitting from view "B" - allowing you to submit from view "A" in your example.</description></item><item><title>Re: validation errors are not in the current view</title><link>https://www.infopathdev.com:443/forums/thread/8082.aspx</link><pubDate>Sun, 23 Oct 2005 18:35:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8082</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8082.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8082</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You could use: thisApplication.ActiveWindow.XDocument.Errors.DeleteAll(); to clear all the errors before submitting.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>validation errors are not in the current view</title><link>https://www.infopathdev.com:443/forums/thread/5044.aspx</link><pubDate>Sun, 23 Oct 2005 15:00:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5044</guid><dc:creator>semionkr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5044</wfw:commentRss><description>Hello.&lt;br /&gt;I have 2 views "A" and "B".&lt;br /&gt;"A" is default view.&lt;br /&gt;There are field in view "B" that cannot be blank.&lt;br /&gt;When I submit view A, I have an error that field from "B" cannot be blank, and i want just submit view "A".&lt;br /&gt;What can i to do?&lt;br /&gt;</description></item></channel></rss>