<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create a countdown using arcade expression upon opening dashboard? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/create-a-countdown-using-arcade-expression-upon/m-p/1476414#M7047</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to figure out a way to set up a countdown that automatically refreshes after opening a dashboard? The code below works fine but it isn't synced with the layer refresh. I am curious if anyone knows a way to have the countdown refresh the same time the layer refreshes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var setmin = 4-(Minute(Now())%5)
var setsec = Text(60-second(Now()))
if(count(setsec)==1){setsec='0'+setsec}
var timer = Text(setmin)+':'+Text(setsec)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know you can turn on the last updated option on any of the widgets, but I would like to have a larger indicator showing that.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 17:29:54 GMT</pubDate>
    <dc:creator>RPGIS</dc:creator>
    <dc:date>2024-05-21T17:29:54Z</dc:date>
    <item>
      <title>Create a countdown using arcade expression upon opening dashboard?</title>
      <link>https://community.esri.com/t5/developers-questions/create-a-countdown-using-arcade-expression-upon/m-p/1476414#M7047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to figure out a way to set up a countdown that automatically refreshes after opening a dashboard? The code below works fine but it isn't synced with the layer refresh. I am curious if anyone knows a way to have the countdown refresh the same time the layer refreshes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var setmin = 4-(Minute(Now())%5)
var setsec = Text(60-second(Now()))
if(count(setsec)==1){setsec='0'+setsec}
var timer = Text(setmin)+':'+Text(setsec)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I know you can turn on the last updated option on any of the widgets, but I would like to have a larger indicator showing that.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/create-a-countdown-using-arcade-expression-upon/m-p/1476414#M7047</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2024-05-21T17:29:54Z</dc:date>
    </item>
  </channel>
</rss>

