<?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: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/94989.aspx</link><pubDate>Thu, 02 Jan 2014 18:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94989</guid><dc:creator>SOMHRS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94989.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94989</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m getting results&amp;nbsp;now. I&amp;nbsp;looked at&amp;nbsp;the SQL&amp;nbsp;trace and that&amp;nbsp;was valid&amp;nbsp;fine&amp;nbsp;so then I&amp;nbsp;recreated my data connection&amp;nbsp;just to be sure and voila. I can&amp;#39;t believe how well this command works. What a find! Thank you! I appreciate your help.&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/94978.aspx</link><pubDate>Thu, 02 Jan 2014 16:00:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94978</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94978</wfw:commentRss><description>&lt;p&gt;So, that could mean that the data connection is returning no results.... Now the question is why. :)&lt;/p&gt;
&lt;p&gt;So - I would probably make sure I knew exactly what the where clause is in this case. Do you know you have results for the selected Department? Are you able to run SQL trace to see the query being executed?&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/94976.aspx</link><pubDate>Thu, 02 Jan 2014 15:36:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94976</guid><dc:creator>SOMHRS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94976</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I tried that and I don&amp;#39;t get any results for the data connection. The success box is checked though and there aren&amp;#39;t any error messages. That must&amp;nbsp;mean my formula is wrong even though the syntax verifies?&lt;/p&gt;&lt;p&gt;&amp;nbsp;This will work on a secondary data connection, correct? And I should be able to run it locally&amp;nbsp;(in an unpublished form)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/94974.aspx</link><pubDate>Thu, 02 Jan 2014 15:13:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94974</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94974.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94974</wfw:commentRss><description>&lt;p&gt;Hi-&lt;/p&gt;
&lt;p&gt;You should try setting the value of Command to your formula above, then checking the data connection secondary data source for results. &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe there&amp;#39;s a need to separately query the data connection.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/94965.aspx</link><pubDate>Tue, 31 Dec 2013 15:20:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94965</guid><dc:creator>SOMHRS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=94965</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m currently testing out a&amp;nbsp;trial version of qrules and am running into the some of same issues described in this post. I&amp;#39;ve put my concat statement into the command line formula and it verifies correctly. My&amp;nbsp;statement is:&lt;/p&gt;&lt;p&gt;concat(&amp;quot;ModifySqlQuery /dsname=VW_DIM_INF_APPR_CURRENT /where=where DEPT = &amp;#39;&amp;quot;, DEPT, &amp;quot;&amp;#39;&amp;quot;)&amp;nbsp;&lt;/p&gt;&lt;p&gt;My rule is based on a field change and when it does the first action sets the command field value to the above formula&amp;nbsp;and the second action queries the&amp;nbsp;data connection (which is a secondary data connection).&amp;nbsp;There is no error message and the success box is checked. I had originally&amp;nbsp;included only the&amp;nbsp;command line action in the rule, but I could never get any values to be returned for the connection. Once I&amp;nbsp;added the action in the rule&amp;nbsp;to query the data connection&amp;nbsp;I&amp;nbsp;did get values, but they were not filtered per the&amp;nbsp;WHERE statement. Nothing shows up in my result box either so I&amp;#39;m wondering how that relates to this particular command. The command seems to be executing, but my data connection results are not&amp;nbsp;being filtered. Can anyone help?&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/72785.aspx</link><pubDate>Thu, 08 Dec 2011 22:22:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72785</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72785.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=72785</wfw:commentRss><description>Well, the command node is always cleared after the command runs, so you wouldn&amp;#39;t see a value there. For this command, the error node should return any error that is returned to the data connection when it is executed, but it sounds like this issue doesn&amp;#39;t actually return an error from the data connection.</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/72784.aspx</link><pubDate>Thu, 08 Dec 2011 22:12:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72784</guid><dc:creator>Keadlard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72784.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=72784</wfw:commentRss><description>&lt;p&gt;Yes, it was blank.&amp;nbsp; Current was view 1.&amp;nbsp; I did a pause after the bad command, but it showed no info.&amp;nbsp; I did get it figured out.&amp;nbsp; But I would love to figure out why the command didn&amp;#39;t appear and why the error node was blank.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/72783.aspx</link><pubDate>Thu, 08 Dec 2011 22:08:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72783</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=72783</wfw:commentRss><description>Did you check the qRules Error node?</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/72781.aspx</link><pubDate>Thu, 08 Dec 2011 21:54:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72781</guid><dc:creator>Keadlard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=72781</wfw:commentRss><description>&lt;p&gt;I always know if I post a note, than I will figure it out.&amp;nbsp; I used another query that worked:&amp;nbsp; concat(&amp;quot;ModifySqlQuery /dsname=REVENUE /where=where Forecaster=&amp;#39;&amp;quot;, QueryChange, &amp;quot;&amp;#39;&amp;quot;) not sure why the N&amp;#39;&amp;quot; doesn&amp;#39;t work in the revenue query but does in the main, but thanks anyway.&amp;nbsp; :)&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/72779.aspx</link><pubDate>Thu, 08 Dec 2011 21:40:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72779</guid><dc:creator>Keadlard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=72779</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp; I am at it again, and now I am trying to add another query.&amp;nbsp; The original Query: &amp;nbsp;concat(&amp;quot;ModifySqlQuery /dsname=Main /where=where (Forecaster = N&amp;#39;&amp;quot;, QueryChange, &amp;quot;&amp;#39;)&amp;quot;) works fine.&amp;nbsp; But the following query brings no resulta and checking the command and success of qrules shows no blank after it runs.&amp;nbsp; I have tried it several ways.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;concat(&amp;quot;ModifySqlQuery /dsname=REVENUE /where=where (Forecaster = N&amp;#39;&amp;quot;, QueryChange, &amp;quot;&amp;#39;)&amp;quot;) &lt;/p&gt;
&lt;p&gt;concat(&amp;quot;ModifySqlQuery /dsname=PB_VW_Inprogress_Revenue /where=where (Forecaster = N&amp;#39;&amp;quot;, QueryChange, &amp;quot;&amp;#39;)&amp;quot;) &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is the SQL connection info.&amp;nbsp; I renamed the connection to REVENUE to make it work.&amp;nbsp; I also renamed it PB_VW_Inprogress_Revenue.&lt;/p&gt;
&lt;p&gt;select &amp;quot;Part#&amp;quot; as &amp;quot;Part_&amp;quot;,&amp;quot;Forecaster&amp;quot;,&amp;quot;Division&amp;quot;,&amp;quot;Region&amp;quot;,&amp;quot;Company&amp;quot;,&amp;quot;Type&amp;quot;,&amp;quot;ForecastDate&amp;quot;,&amp;quot;M1&amp;quot;,&amp;quot;M2&amp;quot;,&amp;quot;M3&amp;quot;,&amp;quot;M4&amp;quot;,&amp;quot;M5&amp;quot;,&amp;quot;M6&amp;quot;,&amp;quot;M7&amp;quot;,&amp;quot;M8&amp;quot;,&amp;quot;M9&amp;quot;,&amp;quot;M10&amp;quot;,&amp;quot;M11&amp;quot;,&amp;quot;M12&amp;quot; from &amp;quot;dbo&amp;quot;.&amp;quot;PB_VW_Inprogress_Revenue&amp;quot; as &amp;quot;PB_VW_Inprogress_Revenue&amp;quot;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried it several ways and can&amp;#39;t figure out why it&amp;#39;s not working.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/70497.aspx</link><pubDate>Wed, 21 Sep 2011 19:31:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70497</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70497.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70497</wfw:commentRss><description>&lt;p&gt;Your syntax looks incorrect there. Remember, we need to wrap our field values in single quotes. Also, there was no space before your &amp;quot;and&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; /where=Where StateID = &amp;#39;&amp;quot; , Field1, &amp;quot;&amp;#39; and CityID = &amp;#39;&amp;quot;, Field2, &amp;quot;&amp;#39;&amp;quot;)&lt;/p&gt;
&lt;p&gt;So, that would be:&lt;/p&gt;
&lt;p&gt;StateID = SingleQuoteDoubleQuote, Field1, DoubleQuoteSingleQuote and CityID = SingleQuoteDoubleQuote, Field2, DoubleQuoteSingleQuoteDoubleQuote&lt;/p&gt;
&lt;p&gt;we want our result to look like:&lt;/p&gt;
&lt;p&gt;StateID = &amp;#39;WA&amp;#39; and CityID = &amp;#39;Sea&amp;#39;&lt;/p&gt;
&lt;p&gt;yours would have resulted in:&lt;/p&gt;
&lt;p&gt;StateID = &amp;#39;WAand CityID = &amp;#39;Sea&amp;#39;&lt;/p&gt;
&lt;p&gt;You can always paste your concat into a calculated value to easily check what your syntax is going to look like....&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/70496.aspx</link><pubDate>Wed, 21 Sep 2011 18:55:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70496</guid><dc:creator>Keadlard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70496.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70496</wfw:commentRss><description>&lt;p&gt;Hi, can you tell me if this query can be used for multiple selects, for example dsname=Genstates /where=Where StateID = &amp;#39;&amp;quot; , Field1, &amp;quot;and CityID = &amp;#39;&amp;quot;, Field2, &amp;quot;&amp;#39;&amp;quot;)&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/70454.aspx</link><pubDate>Tue, 20 Sep 2011 21:54:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70454</guid><dc:creator>Keadlard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70454.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70454</wfw:commentRss><description>&lt;p&gt;LOL, I am also a bit OCD, which is why I have tried it all ways.&amp;nbsp; But it looks like what I missed before was the quotes around the &amp;#39;&amp;nbsp; because when I do it like &amp;quot;&amp;#39;&amp;quot; it now works.&amp;nbsp;&amp;nbsp; I have several data connections, the main connectioned query worked perfectly, but the secondary one was where I was having issues.&amp;nbsp; I&amp;#39;m am moving my secondary info to a main connection so I can use the page buttons I received from Patrick last year.&amp;nbsp; Everything seems to be working now that I added the extra quote.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp; &lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/70452.aspx</link><pubDate>Tue, 20 Sep 2011 21:26:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70452</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70452</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m a little OCD, so I just tried this. And my concat looks like:&lt;/p&gt;concat(&amp;quot;ModifySqlQuery /dsname=GenStates /where=where StateId = &amp;#39;&amp;quot;, field1, &amp;quot;&amp;#39;&amp;quot;) 
&lt;p&gt;As you can see, I&amp;#39;m not using parenthesis around my where clause, and I don&amp;#39;t have double quotes around my column name. This worked in my environment.&lt;/p&gt;
&lt;p&gt;However, I am wondering about one thing - your main data connection - your form is database bound? Why wouldn&amp;#39;t you just use the built in query fields?&lt;/p&gt;</description></item><item><title>Re: Qrules ModifySQLQuery and ExecuteSQLQuery commands</title><link>https://www.infopathdev.com:443/forums/thread/70450.aspx</link><pubDate>Tue, 20 Sep 2011 21:06:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70450</guid><dc:creator>Keadlard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70450</wfw:commentRss><description>&lt;p&gt;ok, thank you.&amp;nbsp; &lt;/p&gt;</description></item></channel></rss>