<?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 Draw widget custom list reverting to esri default once published in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-custom-list-reverting-to-esri-default/m-p/1046049#M20638</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some trouble with the Draw/eDraw widgets. I added some custom images (rough details below):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;\jimu.js\dijit\SymbolsInfo - added a custom *.json with my data&lt;/LI&gt;&lt;LI&gt;\jimu.js\dijit\SymbolChooser.js - changed _isOnline to false, and changed DEFAULT_PORTAL_URL to my portal&lt;/LI&gt;&lt;LI&gt;\jimu.js\dijit\templates\SymbolChooser.html - Referenced my custom *.json and marked it as "selected"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything works perfectly in the WAB. Once I export this app from the WAB, toss it into wwwroot, and register it in portal, the Draw/eDraw widget reverts back to esri defaults...&lt;/P&gt;&lt;P&gt;All of my apps and customizations (including Draw/eDraw) are there and work correctly. But when I click on "point" within the Draw/eDraw widget, the drop-down contains all the esri default items.&lt;/P&gt;&lt;P&gt;Has anyone experienced this or have a solution?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 19:27:17 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2021-04-12T19:27:17Z</dc:date>
    <item>
      <title>Draw widget custom list reverting to esri default once published</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-custom-list-reverting-to-esri-default/m-p/1046049#M20638</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some trouble with the Draw/eDraw widgets. I added some custom images (rough details below):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;\jimu.js\dijit\SymbolsInfo - added a custom *.json with my data&lt;/LI&gt;&lt;LI&gt;\jimu.js\dijit\SymbolChooser.js - changed _isOnline to false, and changed DEFAULT_PORTAL_URL to my portal&lt;/LI&gt;&lt;LI&gt;\jimu.js\dijit\templates\SymbolChooser.html - Referenced my custom *.json and marked it as "selected"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything works perfectly in the WAB. Once I export this app from the WAB, toss it into wwwroot, and register it in portal, the Draw/eDraw widget reverts back to esri defaults...&lt;/P&gt;&lt;P&gt;All of my apps and customizations (including Draw/eDraw) are there and work correctly. But when I click on "point" within the Draw/eDraw widget, the drop-down contains all the esri default items.&lt;/P&gt;&lt;P&gt;Has anyone experienced this or have a solution?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 19:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-custom-list-reverting-to-esri-default/m-p/1046049#M20638</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2021-04-12T19:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Draw widget custom list reverting to esri default once published</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-custom-list-reverting-to-esri-default/m-p/1047286#M20655</link>
      <description>&lt;P&gt;I've been able to get this working. Disclaimer: Likely not the most elegant solution.&lt;/P&gt;&lt;P&gt;After some testing, the problem was clearly that once published, the Draw app was pulling the list for points from an outside source. I had hoped that setting &lt;EM&gt;isOnline&lt;/EM&gt; to false would work, but it had no effect.&lt;/P&gt;&lt;P&gt;What I ended up doing was commenting out a block of code in the SymbolChooser.js that was calling this outside list. See below:&lt;/P&gt;&lt;PRE&gt;if(!this._symbolTypes){&lt;BR /&gt;// // fetch symbol types from portal&lt;BR /&gt;// this._initPortal()&lt;BR /&gt;//Added this line:&lt;BR /&gt;this._offLineGetSymbols(fileName);&lt;BR /&gt;// .then(lang.hitch(this, this._fetchSymbolTypes))&lt;BR /&gt;// .then(lang.hitch(this, function(types){&lt;BR /&gt;// if(!this.domNode){&lt;BR /&gt;// return;&lt;BR /&gt;// }&lt;BR /&gt;// // create options&lt;BR /&gt;// this._clearOptions();&lt;BR /&gt;// this._createOptions(types);&lt;BR /&gt;// // fetch symbols from portal&lt;BR /&gt;// this._handleGetPointSymbols(lang.hitch(this, this._getPortalSymbolsByType), fileName);&lt;BR /&gt;// }), lang.hitch(this, function(err){&lt;BR /&gt;// if(!this.domNode){&lt;BR /&gt;// return;&lt;BR /&gt;// }&lt;BR /&gt;// if(window.isXT){&lt;BR /&gt;// this._offLineGetSymbols(fileName);&lt;BR /&gt;// }else{&lt;BR /&gt;// this.loadingShelter.hide();&lt;BR /&gt;// console.error('Fetching symbols failed', err);&lt;BR /&gt;// }&lt;BR /&gt;// }));&lt;BR /&gt;&lt;BR /&gt;}else{&lt;BR /&gt;// // fetch symbols from portal&lt;BR /&gt;this._handleGetPointSymbols(lang.hitch(this, this._getPortalSymbolsByType), fileName);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;},&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 20:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-custom-list-reverting-to-esri-default/m-p/1047286#M20655</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2021-04-14T20:57:15Z</dc:date>
    </item>
  </channel>
</rss>

