<?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>Site Page title with a!refreshVariable</title><link>https://community.appian.com/discussions/f/user-interface/17247/site-page-title-with-a-refreshvariable</link><description>I have inserted the following piece of code in order to show always the updated number of available tasks to the users. 
 =a!localVariables( local!report: a!refreshVariable( value: a!queryProcessAnalytics( report: cons!IOC_USER_TASK_REPORT, contextProcessModels</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/73673?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 13:05:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4605e62-fd0f-4542-a5f8-c71950a49c91</guid><dc:creator>erickp0001</dc:creator><description>&lt;p&gt;Yep, I encountered the same issue...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68709?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 18:04:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a99a79d-ae33-4ded-a31a-728fd14852c2</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Interesting... under what conditions?&amp;nbsp; I just added a buttonWidget to basically the same test form as linked above (it doesn&amp;#39;t save into anything but is clickable), and for me at least the autorefresh&amp;nbsp;&lt;em&gt;does&lt;/em&gt; continue happening correctly.&amp;nbsp; But you might be doing something differently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68707?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 17:58:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c0c8acb2-ec8b-4610-8331-264ac11b8f6f</guid><dc:creator>jeromew</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also noticing that once a button is pressed on form (even though it doesn&amp;#39;t submit the form) the interval refresh variables seem to stop working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68703?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 17:48:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23eb7bfd-993f-4583-80a4-5b4d92fb4846</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Interesting, thanks for making the distinction - I didn&amp;#39;t realize that the behavior was different depending on the data type of the initial local variable - I obviously didn&amp;#39;t test&amp;nbsp;&lt;em&gt;that&lt;/em&gt; robustly after discovering the bug ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68702?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 17:46:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7a82929-d17c-4af1-b15f-5c4922f96e20</guid><dc:creator>jeromew</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;This does not work&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!startTime: now(),
  local!lastUpdated: a!refreshVariable(
    value: now(),
    refreshInterval: 0.5
  ),
  {
    a!textField(
      label: &amp;quot;Last Updated&amp;quot;,
      value: local!startTime,
      readOnly: true
    ),
    a!textField(
      label: &amp;quot;Last Updated&amp;quot;,
      value: local!lastUpdated,
      readOnly: true
    )
  }
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This does work&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!fixAppianBrokenFunctionality: &amp;quot;Please&amp;quot;,
  local!startTime: now(),
  local!lastUpdated: a!refreshVariable(
    value: now(),
    refreshInterval: 0.5
  ),
  {
    a!textField(
      label: &amp;quot;Start Time&amp;quot;,
      value: local!startTime,
      readOnly: true
    ),
    a!textField(
      label: &amp;quot;Last Updated&amp;quot;,
      value: local!lastUpdated,
      readOnly: true
    )
  }
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So having a first order local var that is referencing text seems to work whereas referencing now() does not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68094?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 14:28:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b71efd5-ef3e-4f87-8b0f-5d5bbb6c0e81</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&lt;a href="/members/rajeshm0005"&gt;Rajesh Mahenderkar&lt;/a&gt; - here you go. In this example, the auto-refreshing variable (when it&amp;#39;s the first/only one) will never auto-refresh.&amp;nbsp; However if you un-comment the commented-out &amp;quot;override&amp;quot; local variable above it, and press &amp;quot;test&amp;quot; to start fresh, it will work as expected.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  /* local!override: &amp;quot;testing&amp;quot;, */

  local!firstVariable: a!refreshVariable(
    value: now(),
    refreshInterval: 0.5
    /* will never refresh unless/until the local!override variable is un-commented. */
  ),

  a!formLayout(
    label: &amp;quot;Variable AutoRefresh Test&amp;quot;,
    contents: {
      a!textField(
        label: &amp;quot;RefreshTime&amp;quot;,
        readonly: true(),
        value: text(local!firstVariable, &amp;quot;yyyy/mm/dd hh:mm:ss&amp;quot;),
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68083?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 07:42:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ece69bca-b407-4326-874a-c4d3535b18fc</guid><dc:creator>Rajesh Mahenderkar</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Thanks for the info.&lt;/p&gt;
&lt;p&gt;Could you please post sample code snippet for the 2nd point you mentioned?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68049?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 08:58:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec68a8bd-7ac6-418d-b5ef-ff194f5c3a0f</guid><dc:creator>Antonio Menolascina</dc:creator><description>&lt;p&gt;I understand these limits, although I thought that the page title was some kind of oob interface component. I was wrong &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f61b.svg" title="Stuck out tongue"&gt;&amp;#x1f61b;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks everyone!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68026?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 15:28:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1c4c8c0-9604-4d69-90a5-e348c1f2b93d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;2 things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;this code would only work in an Interface, not an expression used elsewhere (as mentioned by  previously).&amp;nbsp; If you look up the documentation for a!refreshVariables, it tells you that all optional parameters are ignored when used outside of the context of an interface, which would include the refresh interval.&lt;/li&gt;
&lt;li&gt;Even if you are using an interface, I discovered a bug (which still hasn&amp;#39;t been fixed apparently) where, in the Interface Editor specifically, an auto-refreshing variable won&amp;#39;t auto-refresh at all if it&amp;#39;s either the ONLY local variable, or the FIRST local variable declared.&amp;nbsp; If the only local variable you need is the auto-refreshing one, then to get it to apparently work correctly within Interface Editor you should define a &amp;quot;spare&amp;quot; local variable before the auto-refreshing one.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68010?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 09:53:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12d7e6a7-79db-49e9-a9b3-84bd30bb2dc7</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;I Think&amp;nbsp;&lt;span&gt;a!refreshVariable() will work only in interface object&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1562579500854v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i have tried it,its working in interface but&amp;nbsp; its not working for site tittle&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please correct me if i am wrong&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68004?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 09:05:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5b59c9f-d657-4b3c-8ddc-eb696a26d4a0</guid><dc:creator>Antonio Menolascina</dc:creator><description>&lt;p&gt;Thanks for the suggestion Rajesh, I tried but it doesn&amp;#39;t work anyway...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68003?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 08:55:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2cb994a3-3a42-4148-ba98-26070bcc2d87</guid><dc:creator>Rajesh Mahenderkar</dc:creator><description>&lt;p&gt;Hi Antonio,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please give&amp;nbsp;parameter&amp;nbsp;&lt;em&gt;&lt;strong&gt;refreshAlways&amp;nbsp;&lt;/strong&gt; : &lt;strong&gt;true() &lt;/strong&gt;&lt;/em&gt;and give a try. I hope it will work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Site Page title with a!refreshVariable</title><link>https://community.appian.com/thread/68002?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 08:33:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d513a551-600c-45a1-a232-64724c43a537</guid><dc:creator>Antonio Menolascina</dc:creator><description>&lt;p&gt;I forgot to say that the code above is in the title section of the site page!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>