<?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: "Rules and Custom Code" Button breaks Field Validation</title><link>https://www.infopathdev.com:443/forums/thread/34990.aspx</link><pubDate>Thu, 27 Nov 2008 13:23:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34990</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34990</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Glad you found the answer. Looking forward to your participation in our forum and to helping you with your InfoPath projects. Whichever I gave syntax from InfoPath 2003.&lt;/p&gt;</description></item><item><title>Re: "Rules and Custom Code" Button breaks Field Validation</title><link>https://www.infopathdev.com:443/forums/thread/34868.aspx</link><pubDate>Tue, 25 Nov 2008 09:51:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34868</guid><dc:creator>zartr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34868.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34868</wfw:commentRss><description>&lt;p&gt;XmlForm.Errors (= type FormErrorCollection)&lt;br /&gt;I guess XDocument is old school Infopath 2003. Thanks for the hint anyway. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: "Rules and Custom Code" Button breaks Field Validation</title><link>https://www.infopathdev.com:443/forums/thread/34685.aspx</link><pubDate>Fri, 21 Nov 2008 13:30:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34685</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34685</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry that is XDocument itself. We have to use XDocument in the place of XDocuments in above code.&lt;/p&gt;</description></item><item><title>Re: "Rules and Custom Code" Button breaks Field Validation</title><link>https://www.infopathdev.com:443/forums/thread/34677.aspx</link><pubDate>Fri, 21 Nov 2008 12:57:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34677</guid><dc:creator>zartr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34677</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;XDocument?&lt;/p&gt;&lt;p&gt;Also note I am using browser enabled forms (browser only that is). &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: "Rules and Custom Code" Button breaks Field Validation</title><link>https://www.infopathdev.com:443/forums/thread/34673.aspx</link><pubDate>Fri, 21 Nov 2008 12:38:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34673</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34673</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We can you the below code to find the errors in your form. Errors include validation errors and data type validation errors.&lt;/p&gt;
&lt;p&gt;if(XDocuments.Errors.Count &amp;gt; 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;XDocument.UI.Alert(&amp;quot;Validation message&amp;quot;);&lt;/p&gt;
&lt;p&gt;return;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>"Rules and Custom Code" Button breaks Field Validation</title><link>https://www.infopathdev.com:443/forums/thread/34672.aspx</link><pubDate>Fri, 21 Nov 2008 12:25:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34672</guid><dc:creator>zartr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=34672</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m submitting my forms data to a webservice. I&amp;#39;m doing that in my code behind file. This is necessary because there&amp;#39;s quite some code to be executed prior to submitting the data to my webservice. For example my &amp;quot;submit&amp;quot; webservice takes parameters that are only available in code behind.&lt;/p&gt;&lt;p&gt;The problem I am facing is, that as soon as you don&amp;#39;t use a standard &amp;quot;submit&amp;quot; button the field validations are completely ignored. For example I can have &amp;quot;cannot be blank&amp;quot; fields which in fact can be blank. Is there a way to trigger Field Validation in code behind? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>