<?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: Copying a common widget to be customized in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562079#M16173</link>
    <description>&lt;P&gt;The 'jimu-ui/advanced/app-item-selector' component has been moved from jimu-ui to the Print widget. I guess you copied the Print widget from the old version of dev.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 01:57:27 GMT</pubDate>
    <dc:creator>BolanChen</dc:creator>
    <dc:date>2024-11-25T01:57:27Z</dc:date>
    <item>
      <title>Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1561634#M16148</link>
      <description>&lt;P&gt;Hello, I am trying to copy the common print widget and want to customize it a little. I found it in the client/dist/widgets/common folder, copied the src folder and manifest.json, icon.svg, config.json&amp;nbsp; to client/your-extensions/widgets/CustomPrintWidget folder and changed the manifest file to match the folder name.&lt;BR /&gt;&lt;BR /&gt;Now I am getting an error when trying to build the widget:&lt;BR /&gt;&lt;SPAN&gt;ERROR in ./your-extensions/widgets/CustomPrintWidget/src/setting/component/report-template-setting.tsx 14:0-69 Module not found: Error: Can't resolve 'jimu-ui/advanced/app-item-selector' in 'D:\Users\pratybos\Desktop\ArcGIS Experience Builder Dev\ArcGISExperienceBuilder\client\your-extensions\widgets\CustomPrintWidget\src\setting\component' resolve 'jimu-ui/advanced/app-item-selector' in 'D:\Users\pratybos\Desktop\ArcGIS Experience Builder Dev\ArcGISExperienceBuilder\client\your-extensions\widgets\CustomPrintWidget\src\setting\component'&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;To my understanding this error is shown because the widget doesn't know where some modules are. How do I config it so it finds the necessary modules? Editing dependencies in manifest doesn't seem to work. Do I need to use the loadArcGISAPIModules function? Or is there some better way to point where the module is stored?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance, all help is appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 09:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1561634#M16148</guid>
      <dc:creator>LietuvosKariuomenė</dc:creator>
      <dc:date>2024-11-22T09:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562079#M16173</link>
      <description>&lt;P&gt;The 'jimu-ui/advanced/app-item-selector' component has been moved from jimu-ui to the Print widget. I guess you copied the Print widget from the old version of dev.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 01:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562079#M16173</guid>
      <dc:creator>BolanChen</dc:creator>
      <dc:date>2024-11-25T01:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562165#M16181</link>
      <description>&lt;P&gt;It might be that my Experience builder version is older, but I copied it into the same developer installation, just into 'your-extensions' folder. Should it not at least work with my current installation or am I missing something?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 12:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562165#M16181</guid>
      <dc:creator>LietuvosKariuomenė</dc:creator>
      <dc:date>2024-11-25T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562769#M16206</link>
      <description>&lt;P&gt;If you want to create a copy of one of the stock widgets, that's easy enough. But you need to do two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the name of that widget (in &lt;STRONG&gt;manifest.json&lt;/STRONG&gt;). If more than one widget has the same name, it will break things.&lt;/LI&gt;&lt;LI&gt;Using the Command Prompt, run &lt;STRONG&gt;npm start&lt;/STRONG&gt; form Experience Builder's client folder.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 26 Nov 2024 18:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1562769#M16206</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-11-26T18:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1563590#M16235</link>
      <description>&lt;P&gt;I have changed the name of the widget and I have run the npm start command in the client folder, that is exactly where I get this error that the widget can't be built because it can't find some modules, that the original widget has no issue finding.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 06:21:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1563590#M16235</guid>
      <dc:creator>LietuvosKariuomenė</dc:creator>
      <dc:date>2024-12-02T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1563729#M16243</link>
      <description>&lt;P&gt;There may be something wrong with your workflow or with your install. Compare what you are doing with the example below. If the processes match, maybe try reinstalling EB.&lt;/P&gt;&lt;P&gt;&lt;U&gt;I &lt;EM&gt;just&lt;/EM&gt; confirmed this workflow works:&lt;/U&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to widgets folder (i.e., &lt;STRONG&gt;\ArcGISExperienceBuilder\client\dist\widgets\common&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;Copy a widget (e.g., Print)&lt;/LI&gt;&lt;LI&gt;Paste copied widget into your custom widget folder (i.e., &lt;STRONG&gt;\ArcGISExperienceBuilder\client\your-extensions\widgets&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;Open the folder, locate &lt;STRONG&gt;manifest.json&lt;/STRONG&gt; and open it, and change the "name" value to something unique (e.g., I used "print2")&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1733157830148.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120656i18F0ABA24A215F40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1733157830148.png" alt="abureaux_0-1733157830148.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Update &lt;STRONG&gt;folder name&lt;/STRONG&gt; to match the name in manifest.json (e.g., "print2" in my case)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1733157954722.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120657iEB95FF93747C83F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1733157954722.png" alt="abureaux_1-1733157954722.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Open command prompt as an admin&lt;/LI&gt;&lt;LI&gt;cd into your &lt;STRONG&gt;client&lt;/STRONG&gt; directory (e.g., &lt;STRONG&gt;cd C:\Users\%username%\Desktop\ArcGISExperienceBuilder\client&lt;/STRONG&gt;)&lt;/LI&gt;&lt;LI&gt;Execute &lt;STRONG&gt;npm start&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Open EB and load a new or saved project. You should see the copied widget under "Custom"&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_4-1733158258782.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120660iBAD7E5772713F775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_4-1733158258782.png" alt="abureaux_4-1733158258782.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 02 Dec 2024 16:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1563729#M16243</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-12-02T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1563998#M16251</link>
      <description>&lt;P&gt;Seems like the issue was with my version EB, thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 08:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1563998#M16251</guid>
      <dc:creator>LietuvosKariuomenė</dc:creator>
      <dc:date>2024-12-03T08:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a common widget to be customized</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1604167#M18367</link>
      <description>&lt;P&gt;I experienced the same problem as well. It looks like that the Print widget in ExB v1.14 has missing folders&lt;BR /&gt;.\print\src\tools&lt;BR /&gt;.\print\src\setting\component\app-item-selector&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had to copy these 2 folders from ExB v1.15 and amend the layout-template-setting.tsx and report-template-setting.tsx from&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { AppItemSelector } from 'jimu-ui/advanced/app-item-selector'&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;to&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { AppItemSelector } from './app-item-selector'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 13:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/copying-a-common-widget-to-be-customized/m-p/1604167#M18367</guid>
      <dc:creator>adriancmlee</dc:creator>
      <dc:date>2025-04-09T13:29:20Z</dc:date>
    </item>
  </channel>
</rss>

