Roberts,
That is great. I also try to add the eSearch as another widget(eSearch2) in WAB. User likes to have two different tools for different search, it is much easier for them to use.
I copied the eSearch folder into \client\stemapp\widgets\ and named it as eSearch2, then changed manifest.json and widget.js file. I only changed the name property to 'eSearch2' in both files. Then in the design mode of WAB I add in the eSearch2 widget, edit the widget. But when I run the widget the search i always get' Search Failed' message.
Here is the error message from the developer tool of Goggle chrome, it seems it still use the eSearch.
at declare._setCurentLayerRenderer (http://zhujingx:3344/webappbuilder/apps/2/widgets/eSearch/Widget.js:2386:31)
at declare._onSearchFinish (http://zhujingx:3344/webappbuilder/apps/2/widgets/eSearch/Widget.js:2121:41)
Please advise.
Thanks