<?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 clicked twice does not appear to function</title><link>https://community.appian.com/discussions/f/user-interface/30491/button-clicked-twice-does-not-appear-to-function</link><description>I have a SAIL form that displays CDT data which ultimate came from a web service. There is a button on the interface to refresh the data. Clicking this button invokes an expression rule which calls an integration to retrieve the latest data to return</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121238?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 13:23:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69f63bbc-8562-4b90-b929-aa7272296e76</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;Changed it to use refreshAlways.&amp;nbsp; Thanks, again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121195?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 20:49:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d3d8b1b-27dd-4d37-8478-e3d45ee9d786</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Maybe this helps&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/SAIL_Performance.html"&gt;docs.appian.com/.../SAIL_Performance.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121194?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 20:43:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4cfe2d6c-d963-4818-ac3d-2e044b210dee</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;The next developer will be future me 3 months or so from now.... and I will definitely forget.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The help text for refreshAlways is scary.... but I don&amp;#39;t yet understand all the nuances of Appian.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1698784959915v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121193?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 20:39:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a2f32a8-d67d-48d0-9e16-1f6c3708d598</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;RefreshAlways is the better option. This expression is only evaluated when that button is pressed. So is the call. This x+1 thing might only confuse the next developer touching this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121192?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 20:36:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ade826c-7c03-42ea-90ab-9d321e02d4a5</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;Ok, I wrapped the local var in the expression with refreshVariable using refreshOnVarChange (I did not wanting it to refresh every user interaction since it calls a web service)... I passed in a dummy value that I constantly change (x = x+1) and that works!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Stefan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121177?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 17:09:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5fa549d-7e8e-4fc5-ab79-a4c3bfa577d3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yeah, and the button is not the problem ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121176?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 16:44:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:998ba8c2-3911-40cc-a0a3-2bcad6d8c26e</guid><dc:creator>stevenh6272</dc:creator><description>&lt;p&gt;I think the answer is yes.&amp;nbsp; I have the local!refreshResult local variable that is only set by the call this button makes to the expression rule which refreshes the data.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can try using a!refreshVariable and see what happens.&amp;nbsp; My other solution (using the term more loosely than I care to) is to use two buttons, idendically configured, and alternately show/hide them.&amp;nbsp; But, I don&amp;#39;t really like doing this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button clicked twice does not appear to function</title><link>https://community.appian.com/thread/121173?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2023 16:40:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18e0e3c5-8ea4-4b32-a9f0-1b3067116395</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you use a local variable inside that expression? If yes, wrap it into a a!refreshVariable call, configured to refresh always.&lt;/p&gt;
&lt;p&gt;Appian tries to be smart and caches the data if the rule input values do not change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>