<?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: Edit Widget in Launchpad theme not closing properly in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76705#M2177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You would add a postCreate function and the aspect require to the edit widgets Widget.js file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define([
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/declare',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/lang',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/html',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/i18n!esri/nls/jsapi',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/on',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/query',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dijit/_WidgetsInTemplateMixin',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'jimu/BaseWidget',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'jimu/MapManager',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/dijit/editing/Editor',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/layers/FeatureLayer',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/aspect'
&amp;nbsp; ],
&amp;nbsp; function(declare, lang, html, esriBundle, on, query, _WidgetsInTemplateMixin,
&amp;nbsp;&amp;nbsp;&amp;nbsp; BaseWidget, MapManager, Editor, FeatureLayer, aspect) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return declare([BaseWidget, _WidgetsInTemplateMixin], {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: 'Edit',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseClass: 'jimu-widget-edit',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor: null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _defaultStartStr: "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _defaultAddPointStr: "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resetInfoWindow: {},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _sharedInfoBetweenEdits: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editCount: 0,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resetInfoWindow: null
&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; postCreate: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Workaround for the LanunchPad theme not firing onClose and onOpen for the widget*/&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(this.appConfig.theme.name === "LaunchpadTheme"){&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tPanel = this.getPanel();&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(tPanel){&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(tPanel, "onClose", lang.hitch(this, this.onClose));&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(tPanel, "onOpen", lang.hitch(this, this.onOpen));&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; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*end work around for LaunchPad*/
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:57:54 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-10T22:57:54Z</dc:date>
    <item>
      <title>Edit Widget in Launchpad theme not closing properly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76704#M2176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a version of the Launchpad theme and would like to use the Edit Widget, however when testing the widget acts really flaky.&amp;nbsp; The most irritating issue is that when I close the Edit Widget window it doesn't end the editing mode, ie. when I click on a feature it still brings up the editor window instead of the standard popup window. When I reopen the Edit widget window, none of my templates show up.&amp;nbsp; Also, if I open the Edit widget the first time before my editable layers are turned on, the templates will never appear in the widget after I have turned the layers on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this post describing a different issue with the Edit widget (&lt;A href="https://community.esri.com/thread/164057"&gt;Edit Widget from Web AppBuilder for ArcGIS (Developer Edition) V1.2 takes the attribute from search Widget instead of it own.&lt;/A&gt; ) and loaded the fixed version of the Edit widget to no avail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then came across this post (&lt;A href="https://community.esri.com/thread/163869"&gt;Widget's callback functions in Launchpad theme not working?&lt;/A&gt;), leading me to believe it is an issue with the theme rather than the widget.&amp;nbsp; The onOpen and onClose functions not firing properly would seem to explain all of the issues described above.&amp;nbsp; I'm not sure exactly though how or where to implement the solution Robert proposed in that post to the Edit widget or somewhere else in the app to ensure the widget is closing properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 13:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76704#M2176</guid>
      <dc:creator>DavidMann1</dc:creator>
      <dc:date>2015-10-27T13:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Widget in Launchpad theme not closing properly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76705#M2177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You would add a postCreate function and the aspect require to the edit widgets Widget.js file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define([
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/declare',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/lang',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/html',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/i18n!esri/nls/jsapi',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/on',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/query',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dijit/_WidgetsInTemplateMixin',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'jimu/BaseWidget',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'jimu/MapManager',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/dijit/editing/Editor',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri/layers/FeatureLayer',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/aspect'
&amp;nbsp; ],
&amp;nbsp; function(declare, lang, html, esriBundle, on, query, _WidgetsInTemplateMixin,
&amp;nbsp;&amp;nbsp;&amp;nbsp; BaseWidget, MapManager, Editor, FeatureLayer, aspect) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return declare([BaseWidget, _WidgetsInTemplateMixin], {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: 'Edit',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseClass: 'jimu-widget-edit',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor: null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _defaultStartStr: "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _defaultAddPointStr: "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resetInfoWindow: {},
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _sharedInfoBetweenEdits: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editCount: 0,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resetInfoWindow: null
&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; postCreate: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Workaround for the LanunchPad theme not firing onClose and onOpen for the widget*/&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(this.appConfig.theme.name === "LaunchpadTheme"){&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tPanel = this.getPanel();&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(tPanel){&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(tPanel, "onClose", lang.hitch(this, this.onClose));&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(tPanel, "onOpen", lang.hitch(this, this.onOpen));&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; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*end work around for LaunchPad*/
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76705#M2177</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T22:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Widget in Launchpad theme not closing properly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76706#M2178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt reply, Robert.&amp;nbsp; That was the guidance I was looking for, I was confused at first because there was not a postCreate function already so I wasn't sure if it was in another file somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I got that code added and it is behaving &lt;EM&gt;differently&lt;/EM&gt;, but still not correctly.&amp;nbsp; Now when I exit the Edit widget window, the edit attributes popup no longer displays, but neither does the standard popup window, just a popup heading with no content.&amp;nbsp; Also, the shape is still in edit mode, displaying the vertices that can still be adjusted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm considering just taking the widget out of the Launchpad bar and just having it on screen, as everything appears to work as expected when placed there.&amp;nbsp; Since I didn't realize until today that it was a theme issue rather than the widget itself, I hadn't tried that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76706#M2178</guid>
      <dc:creator>DavidMann1</dc:creator>
      <dc:date>2015-10-27T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Widget in Launchpad theme not closing properly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76707#M2179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes I would recommend using the on screen widget place holder until the next release where they should have this theme issue fixed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/edit-widget-in-launchpad-theme-not-closing/m-p/76707#M2179</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-27T15:51:18Z</dc:date>
    </item>
  </channel>
</rss>

