<?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>Button that query data</title><link>https://community.appian.com/discussions/f/user-interface/23968/button-that-query-data</link><description>Hi readers, 
 i want to know whether we can do this or not. 
 A button which query data from database and store it in a read only grid which needs to updated when clicking on submit button 
 Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Button that query data</title><link>https://community.appian.com/thread/92276?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 16:05:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85e042fc-bedb-4f29-acf8-800168273d64</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In general this is possible.&amp;nbsp; It kinda depends on your particular use case - generally if you&amp;#39;re using a &amp;quot;submit&amp;quot; button on a task that means the user will no longer be on that task.&amp;nbsp; But perhaps you mean &lt;em&gt;any&lt;/em&gt; button, in which case you&amp;#39;d use a button specifically set to NOT submit.&lt;/p&gt;
&lt;p&gt;Also, i&amp;#39;m not really sure what you meant by this particular phrase, if you could clarify:&lt;/p&gt;
[quote userid="71795" url="~/discussions/f/user-interface/23968/button-that-query-data"]t n a read only grid[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button that query data</title><link>https://community.appian.com/thread/92273?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 15:51:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d634349-a727-4769-9f07-35740ae73f49</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You can use the saveInto of a button with a!save() function to query the data from the Db and store it in a local variable or an RI.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>