<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: (how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60507.aspx</link><pubDate>Wed, 20 Oct 2010 01:28:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60507</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60507.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60507</wfw:commentRss><description>&lt;p&gt;Thank you, I will do that.&lt;br /&gt;Best regards&lt;br /&gt;Michael&lt;/p&gt;</description></item><item><title>Re: (how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60495.aspx</link><pubDate>Tue, 19 Oct 2010 16:58:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60495</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60495.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60495</wfw:commentRss><description>&lt;p&gt;Glad to hear you figured it out.&amp;nbsp; I suggest you remove these lines from your &lt;strong&gt;Save&lt;/strong&gt; event:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;e.PerformSaveOperation();&lt;br /&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Write your code that will run after saving here.&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;e.CancelableArgs.Cancel = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The qRules FormSave() method fully manages the save operation and the CancelableArgs, and having those lines could result in the form being saved twice, or saved when you want to prevent it from being saved.&lt;/p&gt;
&lt;p&gt;To cleanly indent text on this forum, just use the indent button &lt;img src="http://www.infopathdev.com/tiny_mce/jscripts/tiny_mce/themes/CommunityServer/images/indent.gif" alt="" /&gt;&amp;nbsp;available when you&amp;#39;re entering a message.&lt;/p&gt;</description></item><item><title>Re: (how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60482.aspx</link><pubDate>Tue, 19 Oct 2010 13:51:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60482</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60482</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;oops, you are right of course, I misinterpreted the &amp;quot;installation folder&amp;quot; with my projectfolder, where of couse the file was not. Everything is fine, and you do, as I suspected have two files, one for browser and one for client. Thanks.&lt;/p&gt;
&lt;p&gt;And oh my god, I got the other comands to work as well eventually. Here is what is also important for anyone else, that is not too familiar with coding:&lt;br /&gt;At first I just copied the above methods Jimmy put and they are correct, however my form didn&amp;#39;t jump into those methods, because the following two lines were missing&amp;nbsp;in the method &amp;quot;InternalStartup()&amp;quot;, I guess they are called EventHandler. One can generate these two lines by selecting the ContextChanged-Event and the Save-Event in InfoPath.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; InternalStartup()&lt;br /&gt;{&lt;br /&gt;...&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;EventManager.FormEvents.Save += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;SaveEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(FormEvents_Save);&lt;br /&gt;EventManager.FormEvents.ContextChanged += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ContextChangedEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(FormEvents_ContextChanged);&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;Also these two following methods are generated, into which I then copied Jimmy&amp;#39;s statements, so it looks like this:&lt;br /&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_Save(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;SaveEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Write your code that will run before a Save or Save As operation here.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;qRulesMain&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.FormSave(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, Application, e);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// The Dirty property will be set to false if save is successful.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;e.PerformSaveOperation();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Write your code that will run after saving here.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;e.CancelableArgs.Cancel = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_ContextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ContextChangedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (e.ChangeType == &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ContextNode&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// The XML selection or context has changed.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Write your code here.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;qRulesMain&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ContextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, Application, e);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;As far as I can tell, this thing is working just marvelous. &lt;br /&gt;Thanks again for your great and quick help.&lt;br /&gt;By the way, how did you quote your code-example, so it looks so nice?&lt;/p&gt;
&lt;p&gt;best regards Michael&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item><item><title>Re: (how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60478.aspx</link><pubDate>Tue, 19 Oct 2010 12:53:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60478</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60478.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60478</wfw:commentRss><description>&lt;p&gt;Hello again, and thank you for your feedback,&lt;/p&gt;
&lt;p&gt;I believe the qRules DLL should be present in the qRules installation folder and not require any extraction from an XSN.&amp;nbsp; The tutorial does instruct the reader to navigate to the qRules installation folder when adding the DLL to the Visual Studio project, so I think we have that point&amp;nbsp;covered.&amp;nbsp; Please let me know if that is not the case or if there is a way&amp;nbsp;that you&amp;nbsp;think would&amp;nbsp;make it clearer.&lt;/p&gt;
&lt;p&gt;The SetSave and SetCaption commands were added after that tutorial was written, and respectively require directing the form&amp;#39;s Save and ContextChanged events to qRules, with events like this:&lt;/p&gt;
&lt;blockquote&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_ContextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, ContextChangedEventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qRulesMain.ContextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, Application, e);&lt;br /&gt;}&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_Save(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, SaveEventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qRulesMain.FormSave(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, Application, e);&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;
&lt;p&gt;I will make a note for us to update the documentation.&amp;nbsp; Please let me know if you can&amp;#39;t figure this step out.&lt;/p&gt;</description></item><item><title>Re: (how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60477.aspx</link><pubDate>Tue, 19 Oct 2010 12:34:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60477</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60477</wfw:commentRss><description>&lt;p&gt;Hello Jimmy,&lt;/p&gt;
&lt;p&gt;thank you very much for your Reply. I have it 99% working now. The User guide misses one thing though you might want to add or maybe I was too quick. It asks me to add the .dll-File, that I didn&amp;#39;t just have lying around of course. I extracted it from the xsn-file that I once injected qrules in. But then again, at this level, users/programmers might know this extracing stuff, But I thought I mention it.&lt;/p&gt;
&lt;p&gt;Do you know, if ALL features will be supported in this environment? I can get the Setcaption-Command to work, however the &amp;quot;SetSave /saveasfile=superman.xml&amp;quot; would not work. I have no idea why. I thought I checked on injecting the file into the form, but then again, i did&amp;#39;nt inject it, did I?&amp;nbsp;&amp;nbsp; So I guess at some place you differ between the webbrowser-compatible -DLL and the client-DLL. Is there a way I can double check the setSave-Feature? Currently I am working with a client compatible qrules installation, I thought.&lt;/p&gt;
&lt;p&gt;Best regards Michael&lt;/p&gt;</description></item><item><title>Re: (how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60387.aspx</link><pubDate>Fri, 15 Oct 2010 11:52:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60387</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60387.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60387</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s a document that explains how to use qRules along with custom code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/qrules/entry56111.aspx"&gt;http://www.infopathdev.com/files/folders/qrules/entry56111.aspx&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Note that this will only work with InfoPath 2007 OM (C# or VB) code.&lt;/p&gt;</description></item><item><title>(how) can qrules and Custom Code coexist at the same time</title><link>https://www.infopathdev.com:443/forums/thread/60378.aspx</link><pubDate>Fri, 15 Oct 2010 10:14:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60378</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60378.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=60378</wfw:commentRss><description>&lt;p&gt;I use qrules. Now I have something, that I probably need to code. In qrules Version 2.2 you write, that it can coexist with customcode (I use c#).&lt;/p&gt;
&lt;p&gt;However I don&amp;#39;t bring qrules&amp;nbsp;to work once I have created the custom code project.I tried reinjecting it, but it won&amp;#39;t work until I remove the customcode project and reinject qrules.&lt;/p&gt;
&lt;p&gt;How exactly does the procedure work to habe both, qrules and customcode?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>