<?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>Refresh data in Grid Layout on button click/action</title><link>https://community.appian.com/discussions/f/general/12664/refresh-data-in-grid-layout-on-button-click-action</link><description>Hi, 
 
 Scenario: 
 I would like to refresh the data displayed in my page Grid Layout, which looks somewhat like this: 
 
 
 
 Link to Details 
 price 
 details 
 quantity 
 
 
 Link to Details 
 price 
 details 
 quantity 
 
 
 
 When the user clicks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Refresh data in Grid Layout on button click/action</title><link>https://community.appian.com/thread/56618?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 08:27:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:731abd69-029f-4c74-80c2-91ba6aff91b7</guid><dc:creator>Abhay Giri</dc:creator><description>Hi Anusha,&lt;br /&gt;
&lt;br /&gt;
To achieve this you need to re-run the query which is fetching the data from database so that you can get updated data(which you just updated by editable fields).&lt;br /&gt;
So in the button click event re-run the query entity or query rule and save into your local variable (which variable from which you are displaying the data in the grid).&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
Abhay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh data in Grid Layout on button click/action</title><link>https://community.appian.com/thread/56571?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 18:56:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1dddf459-30cf-43df-b266-a3196984bfb3</guid><dc:creator>Umesh Patel</dc:creator><description>Hi,&lt;br /&gt;
In the detail page, once fields are edited, you might have provision to save that data through button. You can leverage same a!buttonWidget saveInto to save the edited data and re-populate grid data.&lt;br /&gt;
e.g. &lt;br /&gt;
a!buttonWidget(&lt;br /&gt;
label: &amp;quot;Save&amp;quot;,&lt;br /&gt;
saveInto:{&lt;br /&gt;
     /*save edited data*/&lt;br /&gt;
    a!writeToDataStoreEntity()&lt;br /&gt;
          valuesToStore: {&lt;br /&gt;
            a!entityData(....)&lt;br /&gt;
&lt;br /&gt;
    /*Refresh grid data by calling rule to fetch data from e.g. DB*/&lt;br /&gt;
    a!save(local!gridDatasubset, rule!toFetchUpdatedData())&lt;br /&gt;
}&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh data in Grid Layout on button click/action</title><link>https://community.appian.com/thread/56568?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 17:12:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a92184af-b40a-491e-8fbd-30fd8b7c0956</guid><dc:creator>Kenneth Chen</dc:creator><description>At a high level without the actual code what you want to do is to ensure that when you exit out of the detail page, in the saveInto for that button it saves all new values into the dataset thats displaying in that grid. &lt;br /&gt;
&lt;br /&gt;
Alternatively, I would check to see why you can&amp;#39;t just have the editable section directly modifying the same dataset that is being displayed.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refresh data in Grid Layout on button click/action</title><link>https://community.appian.com/thread/56567?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 17:10:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da143e62-8c5d-417d-bd46-c81c04563119</guid><dc:creator>Ashvin Kapur</dc:creator><description>&lt;p&gt;Anusha,&lt;br /&gt; &lt;br /&gt; Sounds like you could re-run your query (that populates the data) on the saveInto of your Submit button. Something like this:&lt;br /&gt; saveInto: {&lt;br /&gt; a!save(local!datasubset, rule!APP_getData().data)&lt;br /&gt; }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>