Duplicating the ExB Analysis widget (Developer Edition)

2960
11
01-15-2024 03:00 PM
JoeRogan
Regular Contributor

Hi, I am trying to make a copy of the Analysis widget that comes with v1.13 of Experience Builder Developer Edition. The workflow is as follows, and we have no issues making copies of the sample widget or the map widget using these steps.

  1. Make a copy of client\dist\widgets\arcgis\analysis to client\your-extensions\widgets
  2. Rename the new analysis folder under client\your-extensions\widgets to analysis-custom
  3. Modify client\your-extensions\widgets\analysis-custom\manifest.json so that the widget's name is analysis-custom
  4. npm start in the client folder

For other widgets after this step it will detect them and they will be available in the builder once that's started. However for the Analysis widget I'm getting 16 errors during the client's start, related to dependencies. Most of these dependencies seem to have names matching folders in this location: client\dist\arcgis-amd-packages, but not all of them.

The default Analysis widget that comes with ExB works fine, so the dependencies must be available somehow.

I've tried reaching out to Esri Canada support with this as a case but was turned away for an unsupported workflow, and they linked me to the guide on how to create a custom widget.  I'd rather not recreate the Analysis/GP widget from scratch.

0 Kudos
11 Replies
Andrew_Hu
New Contributor

Hi @Wei_Ying

Following up on this old thread - any update or plan to release the Analysis widget supporting components/libraries so that we can customize the Analysis widget?

Thank you!

Andrew

0 Kudos
Andrew_Hu
New Contributor

Quite frankly, I'd prefer a complete separate GP widget like we used to have in the WAB. 

I have a few GP tools requires drawing points and polygons on screen to select data for analysis. The GP tool implementation in WAB works perfectly. I found a number of functions are currently missing in the Analysis widget to migrate successfully:

1)  limit drawing options to GP tool supported geometry only - the Analysis widget show all geometry types in drawing tool

2) allow symbology selection for input geometry (including features created by drawing tool) - critical to drawing different type of feature points in an isolation tracing workflow, otherwise they all look the same on the screen

3) need a Clear drawing button to clear drawing features on screen

4) The drawing tool on Analysis widget stays active even after the widget is closed - need to reset it to default cursor after user closes the tool

Thank you!

Andrew      

0 Kudos