<?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: GenerateRandomNumber How TO</title><link>https://www.infopathdev.com:443/forums/thread/70277.aspx</link><pubDate>Wed, 14 Sep 2011 12:20:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70277</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70277</wfw:commentRss><description>&lt;p&gt;I apologize for the lack of documentation on this command; we try to document everything but focus on the more complex scenarios. Unfortunately, that means neglecting to document commands like GenerateRandomNumber. We hope that the qRules User Guide has enough info on its use. The qRules documentation is located &lt;a href="http://www.infopathdev.com/files/folders/qrules/default.aspx"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I would suggest:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Display the &lt;span style="font-weight:bold;font-style:italic;"&gt;Result&lt;/span&gt;, &lt;span style="font-style:italic;font-weight:bold;"&gt;Error &lt;/span&gt;and &lt;span style="font-style:italic;font-weight:bold;"&gt;Success &lt;/span&gt;nodes in your form&lt;/li&gt;&lt;li&gt;Set a rule on a button click to set Command = GenerateRandomNumber&lt;/li&gt;&lt;li&gt;Verify that the number is generated.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;If it fails so far, please contact us, since it will be a failure in the product.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If it works so far, then it&amp;#39;s just a matter of moving the rules around and playing with your InfoPath form&amp;#39;s design.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Set a rule in the finishedLoading node, such that it executes only when finishedLoading=TRUE. (Or create an onLoad rule)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;That rule will then have the action to set Command =GenerateRandomNumber&lt;/li&gt;&lt;li&gt;Then finally a rule to set the main data source&amp;#39;s field value to the Result node.&lt;/li&gt;&lt;/ul&gt;Hope this helps.&lt;br /&gt;</description></item><item><title>Re: GenerateRandomNumber How TO</title><link>https://www.infopathdev.com:443/forums/thread/70227.aspx</link><pubDate>Tue, 13 Sep 2011 07:20:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70227</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70227.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70227</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It should work the way you&amp;#39;re describing it, and I just tried this for myself and it worked just fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you describe exactly how you&amp;#39;re trying to do this, exactly what rules you are using and in what order?&amp;nbsp; A screenshot of the rule actions could also be good.&lt;/p&gt;</description></item><item><title>GenerateRandomNumber How TO</title><link>https://www.infopathdev.com:443/forums/thread/70225.aspx</link><pubDate>Tue, 13 Sep 2011 06:15:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70225</guid><dc:creator>Mat2011</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70225</wfw:commentRss><description>&lt;p&gt;Hi There,&lt;/p&gt;&lt;p&gt;I have a very simple task, I need to use qrules to generate a random number, so I can use this within the form, at the moment I am trying to create a new rule on form load, that sets the command to &lt;font size="2"&gt;GenerateRandomNumber and then ruse the results box to output the number. however this does not seem to work. can someone explain how to generate a random number using the qrules 3.3 that I can use in various fields.. &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;or at least let me know what I am doing wrong !&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;thank you.&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item></channel></rss>