Enhanced Search Widget Version 2.23.1 - 11/22/22

532994
2821
07-14-2014 03:57 PM
Labels (1)

Enhanced Search Widget Version 2.23.1 - 11/22/22

Live Preview Site

Web AppBuilder for ArcGIS | Help - Enhanced Search widget

 

List of the latest enhancements and changes:

  1. Fixed issue with Spatial Relationship settings

Older enhancements or changes

Check the "Older enhancements or changes.txt" in the download for a complete list.

 

Older Versions

Last 2.21 version

Last 2.17 version

Last 2.13 version

Last 2.12 version

Last 2.11 version

Last 2.9 version

Last 2.7 version

Last 2.6 version

Last 2.5 version

Labels (1)
Attachments
Comments

i was afraid of that.

maybe it is useful for the users but is a pain for me.

i put a call into esri.

maybe they will know of switch that can be used to disable it.

Glenn,

See this discussion for how to disable the setting:

How to turn off new "auto saved map extent and layer visibility" in Nov 2015 update?

Hello Robert... Just like everyone else, I appreciate the hard work you have done.  I have downloaded and installed the Enhanced search widget.  I now have it working on my layers.  However when I go to remove the default layers (from your Louisville demo), or even just promote mine above yours, I get a "Required Value Missing" error that says "You have failed to enter one or more required values".

Any thoughts?

Promote.JPG

error.JPG

thanks

Robert Scheitlin, GISP

Kinley,

   You should only get this message when you have set a field as required in the widget settings dialog (i.e. Value is required to be entered to enable search) and then attempt to execute a search without providing a value for that expression value.

Hmm.. I see. However it works fine when "Traffic Cameras" is on the top.  When I just promote, my layers to the top and rerun the select by shape (or remove "traffic cameras"), I get this "required" error.

Kinley,

   Hmm... Please start a new discussion using the below link that way you can use the advanced editor in GeoNet and attach your config_Enhanced Search.json.

https://community.esri.com/discussion/create.jspa?containerType=700&containerID=1294

Downloaded WAB 1.3 and the new eSearch widget. Set the widget up with no problems. Thanks for the excellent documentation. I've got a few layers with spatial search turned on. I am only able to get the first search layer to return results. It doesn't matter what layer I select in the drop down menu. For example, I have a value search for Town Range and Section. That search returns the section polygon as expected. I then try to use that resulting polygon to search for the section corners. This search returns only parcels, which is my 1st search layer in the list, and not the section corners. This occurs even though the corners were selected in the drop down menu. I can repeat this behavior by changing the order of the search list.

Justin,

   I can reproduce the issue you are reporting. Sorry about that I not sure when this broke but I will fix it for the next release. If you want to add the one line fix before the next release is out then just open the widget.js file and find the _initLayerSelect function and add this line:

this.own(on(this.selectLayerSpatial, "change", lang.hitch(this, this.onSpatialLayerChange)));

I would personally put it near the other change listeners for the other drop downs towards the end of the function but it should work anywhere in that function.

That did the trick!

Millions of lines of code, one of them is bound to inexplicably disappear, right?

Thanks for all you do.

Hi Robert,

I had this same question for your Identify tool, so sorry if I sound like a broken record but I have to ask ... does this search tool work on related feature classes, or feature classes that have relationships built into their gdb?  Thanks so much,

Megan

Megan,

   The only widget out there currently that supports relationships is the OTB Query widget.

Hi Robert,

I would like to take advantage of the 'Export Search URL' that you have added to your esearch widget. However it appears that when you copy and paste the exported search URL into your browser it does not actually zoom to the selected feature. Is this what the intended functionality is supposed to do?

Thanks!

Melissa

Melissa,

   You can see this url works fine http://gis.calhouncounty.org/WAB/V1.3/widgets/eSearch/?esearch=I-64&slayer=1&exprnum=0 which I produced from the Export Search Url link on my live preview site. Likely your issue is you are trying to use this feature on a non-deployed app (i.e. gislap183:3344/webappbuilder/apps/3/). I thought I discussed this in the help doc but now I can not find it mentioned there. I need to add this info back to the help doc

Thanks Robert for your help! Does this mean that I have to set up a proxy page on my production server to gain access to my services on our portal and then make the proxy page a web application?

Melissa,

   No. Let me explain a standard workflow. Web AppBuilder is installed on a machine where the application will be developed and configured. Once you are done configuring the app the way you want it, you download the application from WAB (which minimizes the code) and then you take the resulting zip file and unzip it on your production web server (normally not the same machine). The app will no longer run in WAB it will be a independent web site that will have a url that will not contain a port number (like webappbuilder:3344) in the url (in most cases). This fully deployed web site on your web server will now support the use of the "Export Search URL".

You will need to deploy a Proxy on your web server if you plan to allow people to use a buffer as a selection means in the widget though, as the max character count of a html GET will likely be exceeded when using a buffer for searching and the proxy gets past this by switching to html POST instead.

Ok thanks for the explanation Robert! Would there be any other reason for the search URL to not work then on both my development machine and my production one? Do I need to have the layer visibility turned on?

I use the esearch tool to select a watershed unit:

I then select the option to export search url and then paste the following into my browser https://www.mapservices.ca/EBM_WAB/?esearch=3&slayer=0&exprnum=0

The web map loads but just zooms to the initial extent rather than the selected polygon:

Melissa,

   OK you must have missed the part where the eSearch widget must be set to pre-load for the url search to work. When you "Export Search Url" you are using the Widgets URL search capability.

Brilliant..yes I did miss this Robert! Thank you…that did the trick☺

Hi Robert,

Can the esearch widget search on attribute tables? I see that it does not support related tables but am wondering if an attribute table can be searched if I pointed to it via the rest endpoint. The only other work around I can think of to get access to related tables is to create a View using SQL express and publish that.

Thanks,

Melissa

Melissa,

   No non-spatial tables are not yet supported in the widget. It is on the list though.

Robert,

I've got a single parameter search that uses unique values.  The data that is being searched was edited and now contains fewer records than before.  The eSearch now won't proceed beyond "Processing unique values" (i.e., Processing unique values: 5667 of 5673).

This can be fixed by clearing the browser's cache, but I really want to avoid situations where I have to instruct users to clear their cache.  So for now I'm going to setup my search without unique values, but I really do like using them, it's a great feature!

Never mind my fault

Ryan,

I had a similar issue with unique values. It would display 'processing' and the processing indicator and stay at that.

I removed eSearch from the WAB and redownloaded it again. I don't know if it was a real issue, but my WAB was secured through SSL and my layers were not secure on my server. I switched the WAB back to regular HTTP and moved the newly downloaded eSearch back to my WAB. It worked after that.

I'm not sure if these suggestions will help you in any way, but it worked for me.

Thanks for the fix Robert.  Thought I was loosing my mind....

As always awesome widget!!!!!

Thanks again for your hard work.

Ned

Hi Robert how are you! Great Widget thanks!

I am using the "By Spatial" search after selecting a feature "By Shape". I have found that when performing "search entities of" intersecting a buffer, the resultant selection is always from the first/top feature class in the drop down list even if i have selected a different layer.

In other words, I can select any feature by shape or attribute from any of three search layers, but when i go to select spatially based on a buffer, the first layer in the search entities list has the selection performed on it. If I go into the widgets user config and change the order of the search layers, the new top item is always selected (even if i choose a different layer).

It may be important to note that i am running Enhanced Search Widget Version 1.3.0.1 - 1/11/16, within Web appbuilder D.E. 1.2

Any thoughts on this?

Thanks!

I am currently runing 1.3.01-11/11/16 and i noticed that when i preform a search that the search parcel doesn't get highlighted it just take me to the area. the Edit Default Search Symbology is set. Am i missing something?

thanks for the observation.  I didn't catch on that it was using the top layer innthe stack,  But that is exactly what it is doing.  And. I am seeing the same behavior in version 1.2.  I thought that checking/unchecking "Search Layer" would determine if it was used for the query but it isn't.  I am looking forward to responses to your item.  Thanks again for posting.

Hi 2CDSD 2C, have you tried changing the layer symbology to "from layer" and then selecting "Add\Edit Layer specific symbology"? This is in the widgets configuration for each layer

Capture.PNG

Dan Norman and Stephen Czajkowski,

   this is a known issue, and will be fixed in the 1.3.0.2 release but you can look at this reply for the fix if you want to make it yourself before the next release

https://community.esri.com/docs/DOC-1731#comment-20581

Ryan,

   I will look into this as it seems like it is a caching issue and I have a good idea what it is.

Hi Robert, sorry for not looking back far enough to catch that comment. I will implement it now, thanks so much!

for some weird reason i can't get the eSearch to find a parcel.When i do a search I get the "search faild!".

weird thing is that i have the Roberts Identify widget using the same layer and it works but it won't find the parcel with the same layer using the eSearch widget. I know the parcel exists because i added the Web appbuilder's "Query" widget and it found the parcel on the same layer. I am not sure what's going on.Image2.jpgImage6.jpgImage4.jpg

2CDSD 2C,

   Looks like you are using a secure FeatureService. I don't believe I have ever tested the eSearch in this scenario.

It's worked in the past builds, so i wasn't sure if it was just me.

You are saying it worked in 1.2?

i am using 1.3.0.1- 1/11/16

I know you are using 1.3.0.1 as you mentioned that in previous posts.

I and questioning this statement:

It's worked in the past builds, so i wasn't sure if it was just me.

oh my bad. yes it worked in 1.2. i am wondering if it is just Arcgis Online that is having issues.

Was it secured in 1.2 as well?

it was feature service on arcgis online, i don't have server so all my data is on arcgis online.

many of your services are not secured though. Did you always have this particular one secured even in 1.2?

no it was not. I am removing all the services and I am going to readd them and see if the issues still exists.

Hi Robert,

Is it possible to add a link or some other text when "No results" are found? We would like to direct our users to another site that may be helpful when they cannot find something on ours.

Thanks!

Emily,

   I like the idea. I will have to look into this. In the mean time if you just want to switch the text "No Results" to something more meaningful then open the [install dir]\server\apps\[App #]\widgets\eSearch\nls\strings.js and replace the noResults property value.

Thanks Robert! I will stand by and see if this is possible and thanks for letting me know how to change the existing text.

after clicking on "From Defults" the parcel was highlighted from the search.

It was ArcGIS online, after removing the feature services and re-adding them and recreating the app seem to work. I am not sure why it was acting up but all seems good now.

Thanks Robert.

Emily,

   Can you give me an example of the text and link you would want to replace the "No results"?

Yes, thank you. Something like...

"No results" or if possible "No survey found"

"Please visit the Salt Lake County Assessor's site (link) for more information on your property."

Link : http://slco.org/assessor/new/query/intropage.cfm

Hi Robert,

I am not sure if this is a bug or not but when i do an eSearch By Shape the map screen truns red and zooms out. Here is how i am doing the eSerch. 1st I select I click on the eSearch Widget, Layer 1 on Search Layer, and select features by " Point" then select a feature on Layer 1 on the map, then use "By Spatial" and "apply a search Distance buffer", then search entities of Layer 2, click on "Intersected by". The features on Layer 2 get selected but the map screen turns red and zooms out all the way.

I also noticed that when you do the eSearch By Spatial and select any layer it doesn't the the spaital search for they layer you selected in Search entities of:. it seems to only search the first layer that you added when you configure the eSearch widget.

Image4.jpg

Image2.jpg

Version history
Last update:
‎11-22-2022 07:31 AM
Updated by: