<?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>only getting last item from query</title><link>https://community.appian.com/discussions/f/new-to-appian/22088/only-getting-last-item-from-query</link><description>So, I have this query and this snippet but the grid is only displaying the last item introduced in my DB, any hint in whats wrong?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: only getting last item from query</title><link>https://community.appian.com/thread/86609?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 11:36:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:158a55d8-2239-4cec-8078-252d909e8814</guid><dc:creator>normanc</dc:creator><description>&lt;p&gt;&lt;span&gt;There is also the a!listType() function&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only getting last item from query</title><link>https://community.appian.com/thread/86552?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 15:50:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3313c50c-3d23-4820-bdf5-26d27509b49d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I suggest this format instead:&lt;/p&gt;
&lt;p&gt;cast( &amp;#39;type!{urn:appian:as}AS_Cart_DataBase?list&amp;#39;, local!results )&lt;/p&gt;
&lt;p&gt;(Note that you need to remove the extra &amp;quot;()&amp;quot; from the end of the type name, or else using the &amp;quot;?list&amp;quot; notation will not work.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only getting last item from query</title><link>https://community.appian.com/thread/86512?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 00:13:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dee6a403-86a9-434e-afcf-03170966ad7a</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Well using the&amp;nbsp;refreshVariable you have few different ways to refresh your variable (refreshAlways,&amp;nbsp;refreshOnReferencedVarChange,&amp;nbsp;refreshOnVarChange,&amp;nbsp;refreshAfter) depend of what are you trying to achieve&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only getting last item from query</title><link>https://community.appian.com/thread/86511?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 00:10:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5385d187-80f2-47ff-8b35-bf14ff1d8396</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;since you&amp;#39;re here, do you know of any way I can refresh a variable without using some time event? like on the click of a button&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only getting last item from query</title><link>https://community.appian.com/thread/86510?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 00:09:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd11cdc9-c33e-48fb-96f9-5a94df366e9e</guid><dc:creator>pedrob0002</dc:creator><description>&lt;p&gt;Got it, was missing some curly braces covering the type!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: only getting last item from query</title><link>https://community.appian.com/thread/86509?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 00:08:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:951af54f-bcd4-4c18-9921-786de5239805</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/pedrob0002"&gt;pedrob0002&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;How many items that you can see in your&amp;nbsp;local!cart?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Acacio B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>