Roberts Custom WAB Widgets

313714
475
12-31-2014 11:28 AM
RobertScheitlin__GISP
MVP Emeritus
475 Replies
ZhujingXia
Frequent Contributor

Robert,

Would your Esearch work in the WAB 2.0 version?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zhujing,

  Yes it does.

ZhujingXia
Frequent Contributor

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

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zhujing,

  The eSearch is designed to capable of beinf added multiple times without having to copy the widget and renaming it (with will be very problematic). All you need to do is add it to your adds widgets again in the WAB UI.

ZhujingXia
Frequent Contributor

Roberts.

OK. What if I'd like to customize the 2nd search? For instance, I add report button in the first search, but I no need the report button on this 2nd search.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zhujing,

  Then you have a lot of work ahead of you as the eSearch widget name is hard coded into multiple js files, html files, css rules, etc.

JamesCrandall
MVP Alum

Edit: I see there is one already that I overlooked!

Any plans or insights on creating an Attribute Editor widget?

0 Kudos
JeffGuyer
New Contributor

Mr Scheitlin,

​I'm using an older version of your eSearch widget v1.3.0.2 with WebAppBuilder 1.3.  A have a popup configured on one of my layers that when clicked, shows custom HTML.  When using your eSearch widget and clicking on a result, I see a popup that displays, but it appears to be using the default ESRI popup design. I see in your change log for v2.0 the following line, "Enabled default layer popups for search layer if thelayer is already part of the map and has a popup configured."  Does this mean that the newest version your eSearch widget will use the custom defined popup that I have configured, instead of the default?

​Thank You

​Jeff Guyer

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jeff,

  Yes that is correct if you configured a popup in the web map for the layer that you are using in the eSearch then it will use the web maps configured popup.

0 Kudos
MatthewCieri
Regular Contributor

Does this happen automatically or do you have to change a setting?  When i say Disable search results pop up i actually get a popup and when its unchecked I get a popup for the map with my custom popup and a popup for the graphic that looks like it comes from the included fields from the configuration.

In other words when i click on a parcel i get 2 returns not the expected 1.

Thanks for you help and insight these widgets are awesome!

0 Kudos