<?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>How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/discussions/f/user-interface/6671/how-do-i-make-the-refresh-happen-after-i-click-on-the-button</link><description>I have a search form and below the search fields I have a grid. When the user enters data on the fields AND click on the button, I want the form to refresh. Right now, the data in the grid refreshes every time I leave the search fields. This is because</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26567?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 03:14:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba77d037-fefb-48c1-8f39-e1711f632097</guid><dc:creator>erickp</dc:creator><description>Excellent @aviroop! It worked and it makes sense.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26558?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 00:10:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb070b2a-3de3-4326-9a71-648a6e431b70</guid><dc:creator>aviroop</dc:creator><description>You dont need to submit the form on click of Apply function. Use a!buttonWidget() for Apply button instead of a!buttonWidgetSubmit(). This should solve your problem with process flow.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26557?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 23:52:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d83332d-f5a5-4fa8-8093-b61402e9d5a0</guid><dc:creator>erickp</dc:creator><description>I guess my confusion is that since it works in the designer without any process flow, not sure what needs to happen when the user makes a search. When the user makes a search, I am redirecting them back to the user input task but it is not working.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26555?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 23:13:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f354f71e-5f31-465c-8660-3de31f1e7002</guid><dc:creator>aviroop</dc:creator><description>Its very hard to tell since I dont have any insight of your process model and any other rules which are used to pull data. If its working properly on designer, then the logic is fine.&lt;br /&gt;You need to check the node&amp;#39;s i/o variables, pv and other rules to get it fixed in Application flow.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26553?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 22:56:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dc358c2c-0c86-404c-b5bf-62670f5d6e88</guid><dc:creator>erickp</dc:creator><description>It does work when I test it out on the designer. However, I publish my application, it doesn&amp;#39;t work once I try doing a search. I am trying to figure out what should I change in my process flow so that once they type a university name and click Apply, the university results change. I am missing that part.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26549?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 21:42:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77a694ca-4eb6-4f77-a3ae-3f1209c314a9</guid><dc:creator>erickp</dc:creator><description>Excellent. That makes sense. It worked!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26540?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 21:00:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4962e1b2-2409-4ded-a171-d79d0d9c9cab</guid><dc:creator>aviroop</dc:creator><description>Try this code out. When you click on the &amp;quot;Apply&amp;quot; button, grid should get populated. (I didnt find any button labeled &amp;quot;Search&amp;quot; in your code. So implemented the functionality on &amp;quot;Apply&amp;quot; button click)&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/3036.main_5F00_rule.txt"&gt;main_rule.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26452?ContentTypeID=1</link><pubDate>Sat, 16 Jan 2016 00:48:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4315d56-7f20-4803-93b8-fe67b1d56dda</guid><dc:creator>erickp</dc:creator><description>@aviroop I am attaching the code. To populate the grid, I am using a query rule and storing the variable in local!universities. Notice that I have that inside a load. That is another problem I am having. I know it has to be on a with() so that when I do a search, the grid updates. However, notice that I have a separate rule (attached text file called row) inside the applyComponents() to generate the rows. In that other rule, I get an error if I put my local!universities variable inside a with(). It tells me that the save function can't accept a variable coming from a with(). Please advice what is best to fix the problems&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26448?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 21:45:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:caef9647-3bac-4e22-96bc-9adb983886cf</guid><dc:creator>aviroop</dc:creator><description>Attach your code here. Will try to help you by modifying the code.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26383?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2016 17:44:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35b87283-6e78-43d3-87fc-b3df2ca60d6e</guid><dc:creator>erickp</dc:creator><description>Not sure if I understood. Where do I need to move the code so that it gets executed when clicking the button?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26310?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 01:34:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da1f7699-1604-438a-a601-b474378f3e1f</guid><dc:creator>aviroop</dc:creator><description>@erickp: The issue you are facing here is not about page refresh. Its about where you have put the code to populate the Grid. Currently the grid is getting populated on refresh of Search field. You need to move the code such a way that it gets executed on click event of the button.&lt;br /&gt;So as Joshi and Sikhivahans mentioned, use the 'saveInto' of the Button to populate the Grid.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26305?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 01:07:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2bd0dc1-2c35-4f8f-84b9-281d8b2e0953</guid><dc:creator>sikhivahans</dc:creator><description>@erickp The ideal way to achieve the use case would be to shift the logic of querying the database with the given filters,constructing a datasubset and paginating thereby to the 'saveInto' of the button(the button that will be clicked after providing values to the filters). Probably this logic would have resided in the with() or 'saveInto' of the search fields as of now.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I make the refresh happen AFTER I click on the button?</title><link>https://community.appian.com/thread/26302?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 00:39:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50516743-7d0d-44f0-be72-bf94ebaa57a2</guid><dc:creator>Josh</dc:creator><description>One approach: You can save the value of the search field into a local variable and the value of this local variable will get updated when the field becomes unfocused. Then you can have some logic in the saveInto of the button to filter the data using the local variable that holds the search criteria.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>