<?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>timer function in Interface?</title><link>https://community.appian.com/discussions/f/new-to-appian/25419/timer-function-in-interface</link><description>Hello. 
 
 I have and component(card layout) shown in the interface using showWhen() function, 
 and want it to disappear after 30 seconds. 
 
 I thought of using the showWhen() function and refreshInterval of refreshVariable, but couldn&amp;#39;t make it work</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: timer function in Interface?</title><link>https://community.appian.com/thread/103565?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 18:46:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4c6d466-3bc9-4d0c-9163-5951804d9cfd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Yeah, I tried it too and it seems to work fine.&amp;nbsp; I would&amp;#39;ve guessed, though, because I already have a similar functionality in place on some of my interfaces to &amp;quot;expire&amp;quot; a document download link for an exported report that I have the process auto-delete after an hour has elapsed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer function in Interface?</title><link>https://community.appian.com/thread/103564?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 18:36:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ecc2804-3a0d-498f-bc83-f534bb3e3015</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm ... as simple as this is, I did not think of it. Thanks a lot :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer function in Interface?</title><link>https://community.appian.com/thread/103553?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 15:49:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0e6875e-9723-44f6-81c6-b428fb201b37</guid><dc:creator>p.silva</dc:creator><description>&lt;p&gt;You can achieve that without user interaction:&lt;br /&gt;There is a small issue, it&amp;#39;s not exactly 30 seconds, because when you set the refreshInterval as 0.5, it is not exactly 30 seconds, but somewhere around it. From some tests I did, it&amp;#39;s around 25 seconds.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!timeFlag: now() + second() * 15,
  local!show: a!refreshVariable(
    value: now() &amp;lt; local!timeFlag,
    refreshInterval: 0.5
  ),
  a!cardLayout(
    showWhen: local!show,
    style: &amp;quot;WARN&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer function in Interface?</title><link>https://community.appian.com/thread/98971?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 06:20:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb8f4367-c500-4576-85e0-4ed40010cc3d</guid><dc:creator>dreamyoung</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I hope there is a way to make this work without a user interaction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: timer function in Interface?</title><link>https://community.appian.com/thread/98965?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 05:50:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7f61a4d-7579-4cd0-a00d-e4e9acf6dfec</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Try something like this. The important part is, that you cannot make this work without a user interaction.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!status: true,
  local!show: a!refreshVariable(
    value: local!status,
    refreshOnReferencedVarChange: false,
    refreshInterval: 0.5
  ),
  {
    a!buttonArrayLayout(
      buttons: {
        a!buttonWidget(
          label: &amp;quot;hide&amp;quot;,
          value: false,
          saveInto: local!status
        )
      }
    ),
    a!cardLayout(
      contents: {},
      height: &amp;quot;AUTO&amp;quot;,
      style: &amp;quot;SUCCESS&amp;quot;,
      marginBelow: &amp;quot;STANDARD&amp;quot;,
      showWhen: local!show
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>