<?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: Execute Rule based on a value set in code behind</title><link>https://www.infopathdev.com:443/forums/thread/53029.aspx</link><pubDate>Tue, 23 Mar 2010 06:16:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53029</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53029</wfw:commentRss><description>&lt;p&gt;check &lt;a href="http://www.bizsupportonline.net/browserforms/programmatically-submit-infopath-form-sharepoint-send-email-close-form.htm"&gt;this&lt;/a&gt; &lt;/p&gt;</description></item><item><title>Re: Execute Rule based on a value set in code behind</title><link>https://www.infopathdev.com:443/forums/thread/52997.aspx</link><pubDate>Mon, 22 Mar 2010 15:31:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52997</guid><dc:creator>manirajj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52997</wfw:commentRss><description>&lt;p&gt;Thanks Qazi.&amp;nbsp;&amp;nbsp;I am new to InfoPath development.&amp;nbsp; Now I did some research on this.Close().&amp;nbsp; But&amp;nbsp;it is not available to me as I am&amp;nbsp;developing a web compatible form.&lt;/p&gt;</description></item><item><title>Re: Execute Rule based on a value set in code behind</title><link>https://www.infopathdev.com:443/forums/thread/52975.aspx</link><pubDate>Mon, 22 Mar 2010 07:49:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52975</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52975</wfw:commentRss><description>&lt;p&gt;rules are executed first and then the code behind. might be you should try closing the form in the code itself.&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Close();&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Execute Rule based on a value set in code behind</title><link>https://www.infopathdev.com:443/forums/thread/52970.aspx</link><pubDate>Sun, 21 Mar 2010 21:32:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52970</guid><dc:creator>manirajj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52970</wfw:commentRss><description>&lt;p&gt;In&amp;nbsp;a button&amp;#39;s clicked event code, I set the value of a data field&amp;nbsp;- isValid&amp;nbsp;- based on the validity of multiple fields in the form.&amp;nbsp;&amp;nbsp;For the same buton,&amp;nbsp;a rule is set to close&amp;nbsp;the form&amp;nbsp;based on the value of the data field isValid.&amp;nbsp;&amp;nbsp; But the Close event does not fire even though the form is valid.&amp;nbsp; Am I missing anything here?&amp;nbsp; The changes done be the code is not affecting the Rule.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Env: Visual Studio 2008, MOSS 2007, InfoPath 20007&lt;/p&gt;</description></item></channel></rss>