<?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 Configure weather widget  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/configure-weather-widget/m-p/92787#M8439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I use Operations Dashboard, and use&amp;nbsp;weather widget from&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/dashboard-samples/tree/master/weatherWidget" title="https://github.com/Esri/dashboard-samples/tree/master/weatherWidget"&gt;dashboard-samples/weatherWidget at master · Esri/dashboard-samples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The widget as is runs very well - I have wundreground key and can add it to my operation view.&lt;/P&gt;&lt;P&gt;Then I try to add configuration&amp;nbsp;page to the widget.&lt;/P&gt;&lt;P&gt;I do next:&lt;BR /&gt;- in manifest weather.json I changed the title, and added&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"path": "WeatherWidgetConfig.html" &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- I created simple WeatherWidgetConfig.html&lt;BR /&gt;- I created simple WeatherWidgetConfig.js file with only &lt;BR /&gt; hostReady: function () &lt;BR /&gt; {&lt;BR /&gt; this.readyToPersistConfig(true); &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;Now when widget started I in debugger in weather.js hostReady see that this.mapWidgetProxy === undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I try next modifications to hostReady:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hostReady: function () &lt;BR /&gt; {&lt;BR /&gt; var self=this;&lt;BR /&gt; this.getMapWidgetProxies().then(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;function(mapWidgetProxies){ &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("getMapWidgetProxies", mapWidgetProxies[0]);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;self.config.mapWidgetProxy = mapWidgetProxies[0];&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;self.readyToPersistConfig(true);&lt;BR /&gt; }, &lt;BR /&gt; function(err){console.log(err);});&lt;BR /&gt; }...&lt;BR /&gt; &lt;BR /&gt;now in weather.js hostReady I see that this.mapWidgetProxy has value, but nevertheless &lt;BR /&gt; this.mapWidgetProxy.subscribeToMapEvents(); &lt;BR /&gt;failed (endless cycle).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I receive valid mapWidgetProxy from configuration page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached source files.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vadim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 19:20:40 GMT</pubDate>
    <dc:creator>VadimShu</dc:creator>
    <dc:date>2017-05-18T19:20:40Z</dc:date>
    <item>
      <title>Configure weather widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/configure-weather-widget/m-p/92787#M8439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I use Operations Dashboard, and use&amp;nbsp;weather widget from&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/dashboard-samples/tree/master/weatherWidget" title="https://github.com/Esri/dashboard-samples/tree/master/weatherWidget"&gt;dashboard-samples/weatherWidget at master · Esri/dashboard-samples · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The widget as is runs very well - I have wundreground key and can add it to my operation view.&lt;/P&gt;&lt;P&gt;Then I try to add configuration&amp;nbsp;page to the widget.&lt;/P&gt;&lt;P&gt;I do next:&lt;BR /&gt;- in manifest weather.json I changed the title, and added&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;"path": "WeatherWidgetConfig.html" &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- I created simple WeatherWidgetConfig.html&lt;BR /&gt;- I created simple WeatherWidgetConfig.js file with only &lt;BR /&gt; hostReady: function () &lt;BR /&gt; {&lt;BR /&gt; this.readyToPersistConfig(true); &lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;Now when widget started I in debugger in weather.js hostReady see that this.mapWidgetProxy === undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I try next modifications to hostReady:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hostReady: function () &lt;BR /&gt; {&lt;BR /&gt; var self=this;&lt;BR /&gt; this.getMapWidgetProxies().then(&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;function(mapWidgetProxies){ &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;console.log("getMapWidgetProxies", mapWidgetProxies[0]);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;self.config.mapWidgetProxy = mapWidgetProxies[0];&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;self.readyToPersistConfig(true);&lt;BR /&gt; }, &lt;BR /&gt; function(err){console.log(err);});&lt;BR /&gt; }...&lt;BR /&gt; &lt;BR /&gt;now in weather.js hostReady I see that this.mapWidgetProxy has value, but nevertheless &lt;BR /&gt; this.mapWidgetProxy.subscribeToMapEvents(); &lt;BR /&gt;failed (endless cycle).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I receive valid mapWidgetProxy from configuration page?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached source files.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vadim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 19:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/configure-weather-widget/m-p/92787#M8439</guid>
      <dc:creator>VadimShu</dc:creator>
      <dc:date>2017-05-18T19:20:40Z</dc:date>
    </item>
  </channel>
</rss>

