Enhanced Search Widget Version 2.23.1 - 11/22/22

534857
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

Hi, Robert,

Thanks for your wonderful widget! It really helps me a lot!

I would like to add the searching results of eSearch to the LayerList Widget every time after we finish one search (even for the same searching layer). 

Currently, for each searching layer the eSearch widget will provide only one operational layers in LayerList Widget and only one attribute table tab (in AttributeTable Widget). Can we have as many operational layers as we start a new search each time, and each searching result can have a separate attribute table (same as current ESRI’ s search widget)?

Now the eSearch widget clears the previous search results and update the new search results to the Layer List every time when users start a searching for one searching layer (I understand this is actually a big improvement). Are there any codes to change to get the above effect? Thanks!

Annina,

  If you are not using the search by shape or using any buffering then you should not need the proxy.

Peter,

  I would remove the eSearch widget and see if your app begins to operate again. You can check your browsers web console to see what the error is.

Jake,

  I considered this in my initial development of the widget but decided against this path due to the complexity of managing the various search results and knowing the next thing would people would want is to be able to modify one of those existing searches. The other issue is how would you determine which results are displayed in the widgets results tab. I will not be able to provide any code for your desired path as this would be a drastic code change to the way the widget is currently written.

Hi Robert,

Thanks for your answer. I removed eSearch widget but nothing has happened. I'll check the browser's console to debug the error. Hopefully that helps.

Peter

Thanks, Robert, good to hear 😉

Hi Scott,

I'm also looking for a way to start editing a feature directly from the popup box.  Just wonder if you already figured it out ?  If you did could you please share it with me ?

Thank you.

Helen

Robert

Hi My name is Devarsi and I am using your enahnced widget with webapp builder 1.2 I am new to the developer scene and  I have a problem where when i add a new layer  to the exisiting enhanced tool when i go to search it fails. I am thinking that it may have to do with the  sql script. Can you please help me with this. I have added a general utility reports layer from which we are trying to search by record number and it  doesnt allow us to search yet the script run correctly.   thank you

devarsi

Devarsi,

  I replied to your other thread.

Anonymous User

Hi Robert,

Thanks for your work on the eSearch widget and the many others. It sure makes our lives easier here at the county.

We've currently been migrating over from our flex viewer web maps and as I was testing out the eSearch widget before launch, I came across a problem involving the "Export all to CSV" option after the "Add to current results" was used. When trying to export the results, only the most recently added search results (by value or shape) are exported, rather than all the results. I could also repeat this on the Live Preview Site. Is there something I'm doing wrong or is this just an unintended error? Any help would be appreciated.

Thanks,

Brock

Hi Brock,

You are correct.

You are not doing anything wrong.

This is a known issue with Enhanced Search Widget version 2.0.1.4.

Robert knows about this.

Hi Robert,

I am having some strange issues when trying to print when there are results from the search widget from my web app builder application that lives on a server in house. I normally would not bug you about printing but the error only appears when the user has preformed a search using the enhanced search widget, otherwise printing works just fine. I have set up a proxy and it still does not seem to work, if you have any ideas as to what may be causing this I would love to hear them. I have been stuck for days trying to figure this out. Thanks!

https://slco.org/surveyor/surveymonument/map.html

Emily,

  I have updated my live preview site to include the print widget and it works just fine with eSearch Results showing. Sorry I am not sure what to tell you.

Robert,

Emily may be correct. See attached

I posted the same issue a while ago

Richard

Hi Richard,

I may be missing something but I do not see an attachment. Have you found a solution?

Thanks!

I have a layer that comes from a secured service, which is authenticated thru the proxy.  The print widget won't work with this layer turned on.  Perhaps this thread will be of help:

https://community.esri.com/message/598929

Rich,

you can not do attachments in document comments.

No solution but same problem, this happens with the eSearch and Search widget.Picture0002.jpgPicture0003.jpg

The Problem may not be the eSearch Widget.

I posted the same “Error” that I get with the Search widget and the Print Plus widget.

I think I may know what is happening and would be curious to know if this happens for others. I have my esearch widget add my results as an operational layer to the map, if this is turned on in the layer list, the print fails, if I uncheck it, the printing seems to work. Have any of you noticed this as well?

Emily,

  The traffic cameras get added as an operational layer on my live preview site as well and the print still works. What about Ryan comment about secured layers?

I read through the thread he posted but these layers are not secured, they are public.

Emily,

  Do your ArcGIS server logs give you any clue?

That is a good question, I will have to check with our server admin and see. This is just a guess, but for some reason our server must be seeing that layer as a cross origin attack.

Hi Robert

Like many others I want to thank you so much for the work you've done on this and all your other widgets.
Have you considered implementing functionality to select multiple criteria from the drop-down boxes? Example: there is a 'day' field in the data and a user wants to select multiple days.

Cheers, Hamish

Hamish,

  I have considered this in the past but the Level of Effort was more then I had time for currently.

Hi Robert,

Sorry to border you with a lot of question, using the search widget, is there part of the code that i can modify to keep the graphics used in doing the "By Shape" selection?

Regards

Baba

I am having an issue with links in the results. If I set up the Link Type as text, everything works as expected. If I change the Link Type to Image, the link content does not come through in the application. I did have this working in an older version of the eSearch Widget (either 1.2 or 1.3....I cannot recall which).

Eric,

Sorry to hear that you are having an issue. Can you provide the json for the layer you have configured the link for so I can look at it?

Here is the json:

"layers": [

{

"name": "Subdivision Plat Search",

"url": "https://arcgiswadev/arcgis/rest/services/Planning/CLE_PLSSCadastralParcels/MapServer/19",

"definitionexpression": "",

"spatialsearchlayer": true,

"export2Csv": false,

"zoomScale": 10000,

"forceZoomScale": false,

"shareResult": false,

"addToAttrib": false,

"expressions": {

"expression": [

{

"alias": "Subdivision Plat Name",

"textsearchlabel": "Search by Subdivision Plat Name",

"values": {

"value": [

{

"fieldObj": {

"name": "PlatName",

"label": "PlatName",

"shortType": "string",

"type": "esriFieldTypeString"

},

"valueObj": {

"value": ""

},

"prompt": "PlatName is",

"textsearchhint": "Select a Plat",

"sqltext": "PlatName = '[value]'",

"operation": "stringOperatorIs",

"uniquevalsfromfield": "PlatName"

}

]

}

}

]

},

"titlefield": null,

"fields": {

"all": false,

"field": [

{

"name": "PlatName",

"alias": "PlatName"

},

{

"name": "PlatCode",

"alias": "PlatCode"

}

]

},

"links": {

"link": [

{

"alias": "TestImage",

"disablelinksifnull": true,

"disableinpopup": false,

"popuptype": "image",

"content": "http://images.stlouiscountymn.gov/GetPlatDocuments/GetPlatDocuments.aspx?PlatNumber={PlatCode}",

"icon": "../11/widgets/eSearch/images/pdf_icon.png"

},

{

"alias": "TestText",

"disablelinksifnull": true,

"disableinpopup": false,

"popuptype": "text",

"content": "http://images.stlouiscountymn.gov/GetPlatDocuments/GetPlatDocuments.aspx?PlatNumber={PlatCode}",

"icon": ""

}

]

},

"orderByFields": [

"PlatName ASC"

],

"layersymbolfrom": "server"

}

]

CONGRATULATIONS ROBERT!!!

You are the first place winner of the GeoNet MVP Award of 2016.

Jack was on stage with his directors at the Closing Ceremony of UC 2016 today. Everyone in the audience clapped in appreciation when your name came up on the big screen.

GeoNet MVPs 1.JPG

GeoNet MVPs 2.JPG

There is no other person more deserving than you, and we are delighted and grateful for all your contributions to the GeoNet Community.

Runners-up were Dan Patterson and Rebecca Strauch.

Derek Law, Moxie Zhang, and Julie Powell personally thanked you and Rebecca at every Web AppBuilder session at the User Conference.

It seems every person who has used the Web AppBuilder knows about your Enhanced Search Widget and Customization Resource List maintained by Rebecca.

We have greatly benefited from your custom widgets. We won the SAG Award this year.

SAG Award.JPG

The dates for the next User Conference is July 10 - July 14, 2017.

4.JPG

Hope to see you at the ESRI Dev Summit in March!

I concur Tapas, well done Robert and Rebecca, keep up the good work. Your certainly contributing to business work flow efficiencies.

cheers

Rod

Eric,

  what does one of your plat codes look like?

Hi Robert,

Thanks for posting this awesome widget!

I have a quick question though. I was trying to modify the text "Clear Fields" under the By Value search tab. I went in the string.js inside the nls folder and assigned a new string to clearfields. But the change couldn't seem to be recognized by the widget when added to WAB.

I'm very new to Javascript so any pointers will be greatly appreciated!

Thank you!

Lesi

Lesi,

  When you create a new app it copies the eSearch widget from the stemapp widgets folder into the new apps widgets folder. so any change you make in the stemapp widgets folder will only affect new apps and not apps already created. To change an app that is already created you need to go to the [install dir]/server/apps/[app #]/widgets/eSearch/nls/strings.js and make that change.

Hi Robert,

Thanks for the quick reply! Now I'm able to make the changes needed!

Thanks for your help!

Lesi

Robert,

First time commenter, long time appreciator. This eSearch widget is fantastic. Thank you for your work on it. Is there a way to use the print plus widget to print a buffered area? Whenever I click on another widget, I lose the buffer. Anyway I can have a nice printed PDF that includes a buffer from the eSearch widget?

I am not a Print plus user but the removal of the buffer when the eSearch is closed is something you can configure by going to the widgets setting page and clicking on the "Edit Default Buffer Properties" link and check the "Add the buffer layer to the maps legend". This is add the buffer as a operational layer and it will remain in the map when you switch to another widget.

Excellent. Thank you!

Robert-

The Plat Code looks like this:

  • PlatCode ( type: esriFieldTypeString , alias: PlatCode , length: 6 )

But is actually a six digit number…ie “123456”

Eric,

  I really need an actual number so I can test the returned object on my end.

Oh, sorry☺

104520

Eric,

  A PDF document has never been allowed to be shown as an image in the eSearch.

I guess I am confused then…

I was expecting to be able to have my link content (http://images.stlouiscountymn.gov/GetPlatDocuments/GetPlatDocuments.aspx?PlatNumber=<http://images.stlouiscountymn.gov/GetPlatDocuments/GetPlatDocuments.aspx?PlatNumber=%7bPlatCode%7d>)

have a link icon Content (an Icon image that I choose) that would be the link to open a different web page (the scanned PDF plat document).

On your demo site, didn’t the camera icon in the results (view traffic photo) simply open an new tab or window in the browser to show the traffic picture?? When I try that now, I get javascript:void(0);

Eric,

  Yes I see that is an issue in the latest release. Thanks for letting me know. Search for this portion of text in the List.js file:

var linkImg = domConstruct.toDom("<a href='javascript:void(0);' target='_blank' title='"

and replace it with this:

var linkImg = domConstruct.toDom("<a href='" + link.link + "' target='_blank' title='"

I will get this fixed for the next release

Robert,

I have 2 layers used in eSearch, If I set the 'Auto Zoom to Search Result', both layers will do the auto zoom to search result. Is that  possible to modify the code to control the individual layer instead of both. I only need one layer to do the auto zoom to.

Thanks

Zhujing

Zhujing,

  As you know there is no configuration for this so you would have to modify the _zoomAndClose and _openResultInAttributeTable function to only execute the zoomall function if it is that one layer you are wanting.

Hi Robert,

I just discovered two typos in \setting\nls\strings.js:

  • editResultFormat: "Edit Result Formating", > Formatting
  • fromatTooltip: "The formtting set here will affect the result popups and widget result text",  > formatting (and maybe you want to correct also the formatTooltip

Then I have another question:

Is there a way to rename the "Override 1" next to the search result in the Legend when printing? I would like to call it "Search result" or let it empty:

Thanks a lot,

Annina

Annina,

  Thanks for the info on the spelling corrections. Unfortunately I have dealt with esri on this legend issue already and it is a ArcGIS Server print task issue I have no control over.

Robert Scheitlin, GISP​ is there anything you can think of that would cause the "Export All to CSV" to work from the WAB but not once a site goes live?

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