<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Trouble with user defined error</title><link>https://www.infopathdev.com:443/forums/thread/45200.aspx</link><pubDate>Thu, 30 Jul 2009 15:48:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45200</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45200.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45200</wfw:commentRss><description>&lt;p&gt;Stranger still! How about the Design Checker? Any clues there? What happens if you temporarily place another control on the form that is bound to the same node (the one where the error isn&amp;#39;t showing on the current controls)?&lt;/p&gt;</description></item><item><title>Re: Trouble with user defined error</title><link>https://www.infopathdev.com:443/forums/thread/45197.aspx</link><pubDate>Thu, 30 Jul 2009 15:32:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45197</guid><dc:creator>Alin Beschorner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45197</wfw:commentRss><description>&lt;p&gt;The only thing which is different is, that this node is bound to a text field in one view, and to a drop down list in another view. Might this be an issue ? (The other node, where the code is working, is only bound to a text field in one view).&lt;br /&gt;But I have the same form available in Infopath 2003. There it works, the issue only showed up after migrating to 2007.&lt;/p&gt;
&lt;p&gt;I have seen a similar issue when migrating forms to Infopath 2007. In one case, there was also an error that was &amp;quot;invisible&amp;quot;. I changed the text box to a label, then I saw the read dashed line. I changed it back to a text box and I got the red dashed line also for the text box. Strange... !&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Trouble with user defined error</title><link>https://www.infopathdev.com:443/forums/thread/45196.aspx</link><pubDate>Thu, 30 Jul 2009 15:11:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45196</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45196</wfw:commentRss><description>&lt;p&gt;How strange! Especially since the code is working for you on a different node. Is there anything else that might be affecting the value of that field and possibly causing it to re-validate and succeed? &lt;/p&gt;</description></item><item><title>Trouble with user defined error</title><link>https://www.infopathdev.com:443/forums/thread/45192.aspx</link><pubDate>Thu, 30 Jul 2009 14:37:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45192</guid><dc:creator>Alin Beschorner</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45192.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45192</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;My form has&amp;nbsp;code that under a certain condition adds an user defined error to a node:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Errors.Add(errorNode, &amp;quot;USER_DEF1&amp;quot;, &amp;quot;the error message&amp;quot;, &amp;quot;the more detailed error message&amp;quot;, 101, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ErrorMode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Modeless); &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The error is added succesfully to the FormError collection.&amp;nbsp;When I try to submit the form, shouldnt I see that&amp;nbsp;the textbox (which is bound to the errorNode) with a red dashed line and not be able to submit the form ? It seems that this error is ignored, I can even submit the form.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;For another&amp;nbsp;node (bound to another text box)&amp;nbsp;the same line of code works perfectly and I get the red dashed line.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Does&amp;nbsp;anybody have an idea what might&amp;nbsp;cause this issue ?&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Alin&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>