<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/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>Hi, I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/discussions/f/general/2355/hi-i-have-a-rule-input-called-ri-state-which-gets-its-value-from-a-query-r</link><description>Hi, I have a rule input called ri!state which gets its value from a query rule. Then I am passing this rule input to the value and saveInto fields of a textbox like this: a!textField( label:&amp;quot;State&amp;quot;, value:ri!state, saveInto:ri!state) I am getting an error</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi,&lt;br /&gt;I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/thread/8334?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2014 17:18:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69d03259-197a-418f-be18-98da860b0a73</guid><dc:creator>aswinb</dc:creator><description>sorry yes it is related to my finding from the link that you mentioned.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/thread/8332?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2014 17:00:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b7eacfe-7eb3-4f11-a36e-5eda69e7d74b</guid><dc:creator>aswinb</dc:creator><description>I solved the problem. You see we cannot use a query rule directly to store value into a local variable or a rule input. You have to first use the query rule inside an expression rule and then use that expression rule to populate your rule input or local variable. This solved my problem. Thanks for your concern though.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/thread/8320?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2014 08:37:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b5d0ee5-0e33-4908-a0cf-2f63c3e0f5b4</guid><dc:creator>Eduardo Fuentes</dc:creator><description>Is it related to your finding from &lt;a href="https://forum.appian.com/suite/tempo/entry/e-104568"&gt;forum.appian.com/.../e-104568&lt;/a&gt; ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/thread/8319?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2014 08:36:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1b6fee4-1228-4270-bdf0-ea068157fa15</guid><dc:creator>Eduardo Fuentes</dc:creator><description>May I see the syntax of the whole expression when using the index() function?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/thread/8289?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2014 19:08:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c21b774f-6d9b-4b30-b69a-e50b967d1584</guid><dc:creator>aswinb</dc:creator><description>I tried doing the index function but the error still exists if I try to use the same rule input which receives the value and try to store into it using savInto. Don&amp;#39;t know why this is happening but usually everybody saves into the same variable that was used to recieve the value from the qurery rule.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi,&lt;br /&gt;I have a rule input called ri!state which gets its value from a query r</title><link>https://community.appian.com/thread/8268?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2014 03:31:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98643dab-f6a6-4b5a-a4f2-43eea35f911e</guid><dc:creator>Eduardo Fuentes</dc:creator><description>Query rules return an array of items; even if there&amp;#39;s only result the return type will be a list of items with a single item inside.&lt;br /&gt;&lt;br /&gt;If you are expecting a single value use the index() function to retrieve the first value of the query rule&amp;#39;s array.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>