<?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: Invoking C# Method in Managed Code from an InfoPath Rule</title><link>https://www.infopathdev.com:443/forums/thread/68272.aspx</link><pubDate>Fri, 08 Jul 2011 21:16:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68272</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68272.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68272</wfw:commentRss><description>&lt;p&gt;If your form is a browser form, the display a dialog box message action won&amp;#39;t be present. And in IP 2010, I think it says something like &amp;quot;Display the results of a field or a formula&amp;quot;....&lt;/p&gt;</description></item><item><title>Re: Invoking C# Method in Managed Code from an InfoPath Rule</title><link>https://www.infopathdev.com:443/forums/thread/68269.aspx</link><pubDate>Fri, 08 Jul 2011 20:57:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68269</guid><dc:creator>California_Developer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68269</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Forum Community, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I found a article from Microsoft that further discusses how to invoke managed code from a rule; see below link:&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://blogs.msdn.com/b/infopath/archive/2005/06/17/430347.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I correct in assuming the code for my method (i.e. &lt;strong&gt;&lt;span&gt;&lt;code&gt;Test(string param)&lt;/code&gt;&lt;/span&gt;&lt;/strong&gt;) belongs in the file named &amp;quot;FormCode.cs&amp;quot;? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;~W &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Invoking C# Method in Managed Code from an InfoPath Rule</title><link>https://www.infopathdev.com:443/forums/thread/68259.aspx</link><pubDate>Fri, 08 Jul 2011 19:56:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68259</guid><dc:creator>California_Developer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68259.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68259</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Patrick,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for the quick reply.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m using InfoPath 2010, and I noticed &amp;quot;Show A Dialog Box Message&amp;quot; is not an available among the drop-down list items after selecting &amp;quot;Add Action&amp;quot;. I&amp;#39;m only able to go so far as item #7, under &amp;quot;Create the rule condition&amp;quot;. It appears Greg is using an earlier version of InfoPath. Do you know why displaying a dialog box message is not present?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;~W &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Invoking C# Method in Managed Code from an InfoPath Rule</title><link>https://www.infopathdev.com:443/forums/thread/68253.aspx</link><pubDate>Fri, 08 Jul 2011 19:42:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68253</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68253</wfw:commentRss><description>&lt;p&gt;Hi W,&lt;/p&gt;
&lt;p&gt;Yep, Greg&amp;#39;s right, but how about a workaround? Have your code set a field in the main data source or a secondary one and then check that.&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;</description></item><item><title>Invoking C# Method in Managed Code from an InfoPath Rule</title><link>https://www.infopathdev.com:443/forums/thread/68242.aspx</link><pubDate>Fri, 08 Jul 2011 18:04:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68242</guid><dc:creator>California_Developer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68242.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=68242</wfw:commentRss><description>&lt;p&gt;Forum Community,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I would like to attach a method I created using C# such that when a condition in an InfoPath rule is met, the method in my managed code is automatically invoked. I found a tutorial that explains something close to what I want to accomplish; however, it appears the method attached to the rule can only return a boolean value of &amp;quot;true&amp;quot;. See below link:&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://www.infopathdev.com/blogs/greg/archive/2004/09/15/Use-Code-to-Determine-a-Rule-Condition.aspx&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance for your help. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;~W &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>