<?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 Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864993#M12249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any insight as to what I need to do to get it to work in WAB 2.9?&amp;nbsp; I've not had any success either directly or creating an app in an older version and upgrading.&amp;nbsp;&amp;nbsp;Registry is undefined for&amp;nbsp;registry.byId('versionTextBox').&amp;nbsp; Not sure how to resolve that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 20:26:32 GMT</pubDate>
    <dc:creator>AndrewHayden1</dc:creator>
    <dc:date>2018-08-23T20:26:32Z</dc:date>
    <item>
      <title>Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864987#M12243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When an app has been updated and re-published, a browser will load the files from the cache and not the server. This means each user needs to manually clear the cache and refresh. I thought about having a "refresh" widget that creates a cookie with a version number as the name, and then on subsequent page loads, reading the name and comparing it to a variable to determine if the app has been updated. If the version number is different then execute this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14576659899858161" data-renderedposition="160_50_798_16" jivemacro_uid="_14576659899858161"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&lt;CODE class="language-js"&gt;document&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;location&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;reload&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a better idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 03:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864987#M12243</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2016-03-11T03:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864988#M12244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think that is a good idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 04:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864988#M12244</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-11T04:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864989#M12245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wish I had thought of it.&amp;nbsp; Great idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 03:31:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864989#M12245</guid>
      <dc:creator>LarryStout1</dc:creator>
      <dc:date>2016-03-12T03:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864990#M12246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind writing a step by guide for dummies? I am hitting the same problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 04:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864990#M12246</guid>
      <dc:creator>AlanMilroy</dc:creator>
      <dc:date>2017-10-23T04:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864991#M12247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second the request!&amp;nbsp; Even loosely thought out, unorganized and untested suggestions would be welcomed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 17:25:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864991#M12247</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2017-10-24T17:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864992#M12248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've put the code on Github here: &lt;A class="link-titled" href="https://github.com/alterwiel/Custom-WAB-widget-AppUpdate" title="https://github.com/alterwiel/Custom-WAB-widget-AppUpdate"&gt;GitHub - alterwiel/Custom-WAB-widget-AppUpdate: Widget to refresh app files from server instead of client cache if app h…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 04:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864992#M12248</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2018-04-05T04:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864993#M12249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any insight as to what I need to do to get it to work in WAB 2.9?&amp;nbsp; I've not had any success either directly or creating an app in an older version and upgrading.&amp;nbsp;&amp;nbsp;Registry is undefined for&amp;nbsp;registry.byId('versionTextBox').&amp;nbsp; Not sure how to resolve that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864993#M12249</guid>
      <dc:creator>AndrewHayden1</dc:creator>
      <dc:date>2018-08-23T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864994#M12250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the tag below in your setting.html?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;input&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;data-dojo-attach-point&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;textNode&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;data-dojo-type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;dijit/form/TextBox&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;id&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;versionTextBox&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864994#M12250</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2018-08-23T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864995#M12251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I haven't really modified anything other than the app version in the config.&amp;nbsp; At setting.js startup I get "dojo/parser::parse() error Error: Tried to register widget with id==jimu_dijit_LoadingIndicator_0 but that id is already registered"&amp;nbsp;at&amp;nbsp;parser.parse() and&amp;nbsp;this._getVersionTextBox() returns undefined which results in "init.js:114 TypeError: Cannot read property 'set' of undefined" at&amp;nbsp;this._versionTextBox.set.&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/420434_console1.jpg" /&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/420435_console2.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864995#M12251</guid>
      <dc:creator>AndrewHayden1</dc:creator>
      <dc:date>2018-08-23T22:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864996#M12252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also can't get this to work.&amp;nbsp; I tried it in WAB 2.12 and it would not let me click the OK button or enter a version number. So it couldn't be added. Just keeps displaying the animated progress bar gif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I dropped it in WAB 2.4 and it worked fine. So something changed I suppose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 17:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/is-using-a-cookie-a-good-way-to-check-if-an-app/m-p/864996#M12252</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-28T17:47:50Z</dc:date>
    </item>
  </channel>
</rss>

