<?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: web appbuilder in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871735#M12962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;Should have looked up syntax...&lt;/P&gt;&lt;P&gt;Thanks so much Robert I really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 15:14:29 GMT</pubDate>
    <dc:creator>MonaBrisco</dc:creator>
    <dc:date>2017-10-16T15:14:29Z</dc:date>
    <item>
      <title>web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871729#M12956</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;&lt;/P&gt;&lt;P&gt;I am trying to get a custom widget(CW) to work that uses a map click event.&amp;nbsp; The widget works as standalone but if also using the OOTB measurement widget(MW) I get weird behavior.&amp;nbsp; If I use the OOTB MW before I use the CW then I get expected behavior for both tools.&amp;nbsp; However, if I use the&amp;nbsp;CW followed by the MW, when I close the CW the symbol it uses is cleared from the map but when using the MW the symbol replaces esri greenpin, the line segments disappear on dbl-clicks, and when MW is closed, the CW symbol remains.&amp;nbsp; Any ideas on how to resolve other than re-implement the OOTB MW(and I did not want to edit the OOTB MW code)?&amp;nbsp; I thought by using onClose() in CW to remove graphic/clear&lt;/P&gt;&lt;P&gt;map would resolve since graphic was removed(but looks like both widgets are bound to event).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:41:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871729#M12956</guid>
      <dc:creator>MonaBrisco</dc:creator>
      <dc:date>2017-10-13T20:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871730#M12957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Mona,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;I sounds like you are forgetting to remove to map click event handler on your CW onClose Event. When you add the map on click event you can assign the click event handler to a var and then your you onClose you can call the .remove() method on the event.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 23:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871730#M12957</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-13T23:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871731#M12958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forgot to add…I received the error:&lt;/P&gt;&lt;P&gt;fail to close widget XY Tool. TypeError: Object doesn't support property or method 'remove'&lt;/P&gt;&lt;P&gt;So I am still researching…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871731#M12958</guid>
      <dc:creator>MonaBrisco</dc:creator>
      <dc:date>2017-10-16T13:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871732#M12959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you assigning a event handler var to your map click event? Maybe you should have some code here to make this easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871732#M12959</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T13:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871733#M12960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;My 1st response with code didn't make it through I guess...apologies.&lt;/P&gt;&lt;P&gt;startup: function () {&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tmp = this.own(on(myMap, "click", lang.hitch(this, this.on_myMapClick)));&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClose: function() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onClose');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.graphics.clear();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //console.dir(myMap);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //console.dir(graphicsLayer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(graphicsLayer)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.remove(this._myMarkerSymbol);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.setInfoWindowOnClick(true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tmp.remove();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871733#M12960</guid>
      <dc:creator>MonaBrisco</dc:creator>
      <dc:date>2017-10-16T14:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871734#M12961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The var for the event handler is in the wrong position:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;this.own(tmp = on(myMap, "click", lang.hitch(this, this.on_myMapClick)));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871734#M12961</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871735#M12962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;Should have looked up syntax...&lt;/P&gt;&lt;P&gt;Thanks so much Robert I really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871735#M12962</guid>
      <dc:creator>MonaBrisco</dc:creator>
      <dc:date>2017-10-16T15:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871736#M12963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;If I close the widget and re-open to use, the widget is no longer functional.&lt;/P&gt;&lt;P&gt;If I wanted to re-use the tool n times after it is closed, is there another suggested workflow to implement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871736#M12963</guid>
      <dc:creator>MonaBrisco</dc:creator>
      <dc:date>2017-10-16T15:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871737#M12964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;On open you need to re add the event listener if the tmp is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 16:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871737#M12964</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-16T16:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871738#M12965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great!  You’ve been awesome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 16:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871738#M12965</guid>
      <dc:creator>MonaBrisco</dc:creator>
      <dc:date>2017-10-16T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: web appbuilder</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871739#M12966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, I have spent two days on this issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 10:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder/m-p/871739#M12966</guid>
      <dc:creator>FranciscoCaldeira</dc:creator>
      <dc:date>2018-07-04T10:18:03Z</dc:date>
    </item>
  </channel>
</rss>

