<?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: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/77009.aspx</link><pubDate>Thu, 29 Mar 2012 18:43:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77009</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=77009</wfw:commentRss><description>&lt;p&gt;Your post was posted - I answered directly above.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;When you set the Command field&amp;#39;s value, the changed event executes the command and then clears the field. Your rule can be on any node other than the Command node itself. So if you have a field in your form named &amp;quot;field1&amp;quot;, you can have a rule on it that sets the Command field, and that&amp;#39;s all you need.&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/77008.aspx</link><pubDate>Thu, 29 Mar 2012 18:37:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77008</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77008.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=77008</wfw:commentRss><description>&lt;p&gt;There was some sort of problem earlier with the InfoPathDev server - I know I didn&amp;#39;t receive an email when I was finally able to post this the first time, so I&amp;#39;m guessing none of the techs on this site did either.&amp;nbsp; I&amp;#39;m going to post my question again to see if one gets sent this time.&lt;/p&gt;
&lt;p&gt;____________________&lt;/p&gt;
&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;OK, thanks Hilary (and you, too, Jimmy!)&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m unclear on how Command is supposed to get executed now that I&amp;#39;ve&amp;nbsp;set it to do what I want with my Action Rule.&amp;nbsp; Does qRules have built-in code that executes it each time it gets set to something new, or&amp;nbsp;do I have to use a button&amp;nbsp;in order to execute it?&lt;/p&gt;
&lt;p&gt;Sorry for all the questions - I would have asked this above, but thought it might be distracting, since it&amp;#39;s unrelated to matters of syntax.&amp;nbsp; I find that when I hit people with too many questions at once, they don&amp;#39;t always answer them all.&amp;nbsp; So then I just end up driving them nuts with a series of serial questions, LOL.&amp;nbsp; Can&amp;#39;t win for losing.&lt;/p&gt;
&lt;p&gt;I think I should be nearing&amp;nbsp;the end of my questions, though.&amp;nbsp;&amp;nbsp;I have a bunch of updates to my gpTestStats table that should work much like the one I just described.&amp;nbsp; So once I get this&amp;nbsp;first instance&amp;nbsp;working and feel like I understand it, it should be nothing but a lot of&amp;nbsp;Copy Rule/Paste Rule&amp;nbsp;and updating fieldnames and filters.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;&lt;/div&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/77007.aspx</link><pubDate>Thu, 29 Mar 2012 17:55:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77007</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=77007</wfw:commentRss><description>&lt;p&gt;When you set the Command field&amp;#39;s value, the changed event executes the command and then clears the field. Your rule can be on any node other than the Command node itself. So if you have a field in your form named &amp;quot;field1&amp;quot;, you can have a rule on it that sets the Command field, and that&amp;#39;s all you need.&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/77006.aspx</link><pubDate>Thu, 29 Mar 2012 17:46:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77006</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77006.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=77006</wfw:commentRss><description>&lt;p&gt;OK, thanks Hilary (and you, too, Jimmy!)&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m unclear on how Command is supposed to get executed now that I&amp;#39;ve&amp;nbsp;set it to do what I want with my Action Rule.&amp;nbsp; Does qRules have some built-in code that executes it each time it gets set to something new, or&amp;nbsp;do I *have to* use a button&amp;nbsp;in order to execute it?&lt;/p&gt;
&lt;p&gt;Sorry for all the questions - I would have asked this above, but thought it might be distracting, since it&amp;#39;s unrelated to matters of syntax.&amp;nbsp; I find that when I hit people with too many questions at once, they don&amp;#39;t always answer them all.&amp;nbsp; So then I just end up driving them nuts with a series of serial questions, LOL.&amp;nbsp; Can&amp;#39;t win for losing.&lt;/p&gt;
&lt;p&gt;I think I should be nearing&amp;nbsp;the end of my questions, though.&amp;nbsp;&amp;nbsp;I have a bunch of updates to my gpTestStats table that should work much like the one I just described.&amp;nbsp; So once I get this&amp;nbsp;first instance&amp;nbsp;working and feel like I understand it, it should be nothing but a lot of&amp;nbsp;Copy Rule/Paste Rule&amp;nbsp;and updating fieldnames and filters.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76990.aspx</link><pubDate>Thu, 29 Mar 2012 16:00:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76990</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76990</wfw:commentRss><description>If the command you want to use is just static text (i.e. it doesn&amp;#39;t use concat() or anything like that), I wouldn&amp;#39;t advise using the formula editor to build up the command.&amp;nbsp; You can just type it directly into the Value: box of the Set Value dialog.&amp;nbsp; If it&amp;#39;s a particularly long command, you can build it up ahead of time using Notepad, and then paste it in.&amp;nbsp; To obtain the right XPaths for anything, you can just right-click the field in the data source taskpane and select Copy XPath.</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76989.aspx</link><pubDate>Thu, 29 Mar 2012 15:58:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76989</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76989</wfw:commentRss><description>&lt;p&gt;If you don&amp;#39;t need to use concat, you don&amp;#39;t need to use the Function Builder. Just paste your command in the Value box in the rule.&lt;/p&gt;
&lt;p&gt;Use Function Builder if you need a form value or an InfoPath function to create the string you wish to set the Command node to. In a case like this, where all the values are hard coded, just paste the command in the Value field in the rule dialog.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how qRules works. You change the value of the Command field using a rule. The code tries to do something based on the value of the Command field. Whether the value is something hard coded, like your sample above, or something created by a concat statement, like your earlier tests, the Command field does not care. Not one whit. All it cares about is the string value it is currently set to.&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76988.aspx</link><pubDate>Thu, 29 Mar 2012 15:26:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76988</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76988</wfw:commentRss><description>&lt;p&gt;OK, the syntax on this is driving me nuts trying to use the Function Builder.&amp;nbsp; I&amp;#39;m trying to use qRules and SetValue in my real InfoPath 2010 filler form now, only I don&amp;#39;t think I need concat this time around.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Basically, whenever a&amp;nbsp;certain&amp;nbsp;radiobutton&amp;nbsp;called optNonCSSPassFail is clicked, I want to update a&amp;nbsp;radiobutton called optTestStatus&amp;nbsp;in a particular row&amp;nbsp;in my repeating table gpTestStats.&amp;nbsp; This should be easy, because each row in gpTestStats has a unique identifier. optTestStatus should be easy as well, because the default value is &amp;quot;Not Tested&amp;quot; and I want to change it to &amp;quot;Tested&amp;quot;.&amp;nbsp; So when optNonCSSPassFail is clicked, I run an action rule to change&amp;nbsp;the Command&amp;nbsp;field&amp;#39;s value&amp;nbsp; in the QdabraRules data connection as follows:&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&lt;font size="3"&gt;Command = SetValue /xpath=my:myFields/my:TestStats/my:gpTestStats/my:optTestStatus[txtTestID = &amp;#39;INC-01&amp;#39;] /value=Tested&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;Only if I pick optTestStatus via the&amp;nbsp;Function Builder, it basically&amp;nbsp;complains that&amp;nbsp;I&amp;#39;m trying&amp;nbsp;to repeat the entire path all over again at the level of optTestStatus&amp;nbsp;and if I remove the path and start with /xpath=optTestStatus&amp;nbsp;etc. it complains&amp;nbsp;that this isn&amp;#39;t a valid location.&amp;nbsp; If I just paste the above into the Function Builder, it also complains that it isn&amp;#39;t a valid location or group. 
&lt;p&gt;What is it wanting from me?&amp;nbsp; And is there a guide to InfoPath syntax somewhere?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76937.aspx</link><pubDate>Wed, 28 Mar 2012 17:19:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76937</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76937.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76937</wfw:commentRss><description>&lt;p&gt;Ah!&amp;nbsp; That did it.&amp;nbsp; Many thanks!&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76931.aspx</link><pubDate>Wed, 28 Mar 2012 16:06:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76931</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76931</wfw:commentRss><description>&lt;p&gt;Your syntax is off. In your formula, you need a &amp;quot;/&amp;quot; before the word XPath.&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76930.aspx</link><pubDate>Wed, 28 Mar 2012 16:04:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76930</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76930</wfw:commentRss><description>&lt;p&gt;Same result = when I try to use the Set Value button (which I&amp;#39;ve associated a Set Value action rule with that uses the concat statement), nothing happens.&lt;/p&gt;
&lt;p&gt;Yes, I can save the function - when I use Verify Formula to check out what I&amp;#39;ve entered, it accepts it just fine and I can save it.&lt;/p&gt;
&lt;p&gt;The error node says &amp;quot;required parameter unspecified: xpath&amp;quot;&amp;nbsp;&amp;nbsp; I&amp;#39;ve got to step into a meeting right now, but will come back and see if I can figure out what it doesn&amp;#39;t like about how I&amp;#39;ve built the xpath parameter.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks for the tip!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;nkstrou&lt;/p&gt;</description></item><item><title>Re: SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76929.aspx</link><pubDate>Wed, 28 Mar 2012 15:30:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76929</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76929.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76929</wfw:commentRss><description>&lt;p&gt;First, if you are using a concat statement, you must use the function builder.You&amp;#39;d pick txtFilter and txtValue using the field picker, most likely. Your formula above looks correct. Whe you say &amp;quot;I get the same result&amp;quot; what does that mean? Are you able to save your function? Any information in the Qdabra Rules error node?&lt;/p&gt;</description></item><item><title>SetValue and Function Builder?</title><link>https://www.infopathdev.com:443/forums/thread/76925.aspx</link><pubDate>Wed, 28 Mar 2012 14:57:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76925</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76925.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=76925</wfw:commentRss><description>&lt;p&gt;Hi all - &lt;/p&gt;
&lt;p&gt;I am in the process of trying out qRules and need a little help with the SetValue function.&amp;nbsp; I am working through the provided documentation on the SetValue command using an InfoPath 2010 filler form, since that&amp;#39;s the type of form I need SetValue for.&amp;nbsp; I am working through the 2nd exercise where you use a &amp;#39;concat&amp;#39; statement to use specific fields&amp;nbsp;with dynamic values in the parameter (basically, this is to get the Filter and Value fields working.) &amp;nbsp;&lt;/p&gt;
&lt;p&gt;After renaming a few&amp;nbsp;things to line up with how I prefer to work, what I need for my concat statement is &lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;concat(&amp;quot;SetValue xpath=/my:myFields/my:Replacements/my:gpReplacements/my:txtReplacementText[../my:txtText=&amp;#39;&amp;quot;, txtFilter, &amp;quot;&amp;#39;] /value=&amp;quot;, txtValue)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/font&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:10pt;"&gt;&lt;font face="Calibri"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I tried this, but it didn&amp;#39;t work - no errors, just nothing happened.&amp;nbsp; However, I found a couple of posts that say that you need to build your &amp;#39;concat&amp;#39; statement in the function builder.&amp;nbsp; I can add concat via the Function Builder easily enough, but when I try to paste in the things between quotes and pick only txtFilter and txtValue, I get the same result.&amp;nbsp;&amp;nbsp; If there is another way where I can pick the things between the quotes, it&amp;#39;s not obvious to me how to do that.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:10pt;"&gt;&lt;font face="Calibri"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I&amp;#39;ve had problems with it not being able to recognize the single quote when I paste that in, but even when I replace the single quotes manually, I get the same result.&amp;nbsp; Can someone please point me in the direction of what I may be doing wrong?&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:10pt;"&gt;&lt;font face="Calibri"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:10pt;"&gt;&lt;font face="Calibri"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:10pt;"&gt;&lt;font face="Calibri"&gt;&lt;font face="Arial"&gt;Thanks,&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="LINE-HEIGHT:115%;FONT-SIZE:10pt;"&gt;&lt;font face="Calibri"&gt;&lt;font face="Arial"&gt;nkstrou&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/span&gt;</description></item></channel></rss>