The clear link on the by value tab does not show until there are results to be cleared. You can check which version you have by holding the Alt key and click in the the widget some where.
Yes. I did replace the whole folder twice each with different downloads. I restarted web app builder both times. Removed the widget and restarted. Could it be web appbuilder's issue?
Your situation is strange. I just downloaded WAB Developer to a new machine and then downloaded eSearch 1.2.0.6 to that machine as well and extracted the eSearch folder to the stemapp widgets folder and it is definitely the correct version with symbology from layer, etc, etc.
After downloading the widget again and creating a new service, I was able to successfully install the eSearch app. It works great!
How difficult would it be to make it so when you apply a search distance, you can export your results to either a usable GIS file or at least export the table? Does this functionality already exist somewhere?
Robert Scheitlin, GISP & the eSearch Crew: Question, or if anyone point me in the right direction:
Let's say I have an attribute field with links to files. They are all stored like so: file://myserver.name.local/folder/filename.pdf
In our legacy viewer I used javascript to trim off the first part, file://myserver.internalname.local, and replace it with the name of the server, so it would be http://subdomain.publicname.local/folder/filename.pdf. The reason for this is while 'file://..' links work perfectly fine for IE even IE 11, they do not open in Chrome, as it's a different domain. Hence I trim the name via code, swapping the internal for the external name. It works.
Now, I get to Builder. Using Robert's Identify and eSearch.
I put the link in the Link the "Identify Link(s)" and eSearch Link settings. I put {filepath} in. It of course puts in the URL. But it is not clickable, it will not open, because it is the file:// url.
How can I modify the contents of an attribute for these Links? In other words, the filepath is a string in an attribute field. How can I modify it for Identify and/or eSearch? Can I use Regular Expressions in the Link field in the widget settings, to trim the url string? Or, should I delve into the Identify or eSearch code? Which approach do you think is quicker and/or do you recommend?
If you can change the fields data then I would go with what Tapas details. But if you need to leave the fields value alone and just manipulate the value to remove the file portion then that will need to be done in the eSearch code, just search for this comment in the code "//work with the links now"
TAPAS DAS that's exactly how I had it, for the regular website, and it worked perfectly. Thank you for explaining this in very well-written detail, for anyone else doing this. I have a virtual directory already on IIS, we'll call it WEBSITE. so previously, I snipped out the "file://site.internalsite.local/" ...and replace it with the website url: "oursubdomain.internalsitename.local/". The virtual directory was needed because the files were on a different server than the website code. That's a no-no, linking to file:// on a different machine, for security reasons. Browsers will intentionally not open the links as clickable. (You can of course manually open them in a new tab by copy and pasting but my task was making clickable links) Although IE does not obey this rule, and it would have actually worked just having the file:// links. But, now in WAB, no browsers will open file:// links from WAB. So, your approach would be perfect, but I can't change the attribute values in our LINK field. The users can't change how they are doing things and have to keep doing file:// for the time being.
So... my mission is to modify the file:// links with code before they get put into the eSearch popup. I am going to investigate Robert's note on manipulating it in code.
I just want to let you know that I love this widget and it has worked well for me so far. I do have a question. I am adding a link using a field as a url parameter in the Search Links section, the weird thing is that when I do this, the field(page_id) shows up in the attribute table of results. I do not have the attribute table widget or pop-ups configured to show this field, it only appears when I add it as a parameter in my url link. I have tested it several times and this seems to be what is causing it. What am I missing? Thanks!! Emily
I will need to look into this but likely the reason is that when you add the page_id field to the link I have to add this to the outFields for the Query and the results layer (or else I would not get that data to use in the link). I need to think about this some more to see if there is anything I can do differently to prevent it from showing in the attribute table widget if someone does not want it to. Bottom line is your not doing anything wrong.
Thanks Robert! It is not the end of the world, I know it can be hidden if the user knows where to show/hide fields, although that is somewhat hidden. I appreciate you looking into this.
I entered some predefined values in the the Update Expression Value window to build the SQL statement, but we have a Zone Type called M&G. The widget doesn't like the "&" sign and it will not search that layer. Is there a way to get around this and search this layer with it being predefined?
I was able to get it to work by setting the field to Predifined Value "Unique", but using the Predefined doesn't work. Thanks for the quick response!!! You make some awesome widgets!!
I always take new versions and install on the same machine in a new folder (i.e. WAB1.3 or something like that) that way I can have older version on the same machine. Then I use the command line upgrade functionality to upgrade all my previous apps to the new WAB version. This does not change your old version it just copies and updates your old versions apps and widgets to the new version in the new folder. I have not begun work on testing my widgets for breaking changes in 1.3 yet so be aware of that.
Any thoughts as to why my default point symbol is not showing up properly in the results window and on the map? It should be the binoculars but it is showing as below.
I have the i_search.png file located in the widgets\eSearch\images folder.
Look in your [install dir]/server/apps/[app #]/configs/config_Enhanced Search.json at the bottom of the file you will find the symbols object and it should look like this
I am having trouble with the records in the Results tab. After having added additional features using the Add to Current Results, when I use the Remove from Current Results option to remove some, the zoom functionality stops working when you click on an item in the Results tab list. I think the index of the list items is getting messed up when certain ones are being removed from the array. Hopefully that makes sense. I was able to replicate it using your Live Preview Site on Traffic Cameras for I-64 and I-71, Thanks!
perhaps when Robert sorts out what is wrong with the esearch widget you could document the steps required to upgrade webappbuilder to the new version and the steps you took to upgrade an existing webappbuilder app to the new version.
Robert mentioned using the command line update tool referenced in the esri help but in reading your posts it looks like you are doing a bit more than that.
Thanks a million for releasing version 1.3 of your Enhanced Search Widget to quickly.
I made up a few test cases. They include all your Custom Widgets with the exception of the Identify Widget version 1.3 that you also released this afternoon.
I like the Edit Result Formatting option that you added similar to your Identify Widget.
The preview makes it very easy to dial in the colors for the Attribute Label and the Value.
I am applying this simple color scheme to differentiate between the Label text and Value text.
Label Color = RGB (100,100,100) = Light Gray
Value Color = RGB (0,110,0) = Green
Here is how last section of the config.json file for the eSearch Widget looks like:
This gets me a clean, easy-to-read attribute display.
Subtle enhancements like this makes it so much easier for the end-user.
This eliminates all confusion between the Attribute Label and the Value, even when the Value Text wraps around.
I like how the Popup information from the eSearch Widget can be shunted off to your Popup Panel Widget when opened.
This trick will come in very handy when we need to display a long list of attributes without cluttering up the graphics.
I like how my custom formatting shows up in the Popup Panel.
When I close the eSearch Widget, and click on a School, the Popup Panel shows the ESRI Popup that I had configured inside the ArcGIS Online Web Map.
Now, all the information is showing up in gray. I would have liked the gray-green color scheme.
I had an enhancement request on your Popup Panel Widget.
Would it be possible to add the Edit Result Formatting option to this widget so that I could make the color scheme match what I had configured for the eSearch Results even for ESRI Popups?
The Filter by Map Extent is a great feature now prominently displayed on the Attribute Table.
This default setting makes it so much easier to navigate through the attribute table listing.
i see you are not using the esri upgrade commandline tool but just manually reconfiguring the apps you have built.
have you tried the tool? i have some alterations to the esri widget that i could like to keep and i was thinking the upgrade tool was the best way to hold onto them without having to manually redo them.
Robert, after I select the graphical search by point, how can I change the tooltip "Click to add point"?.... I mean...is there a property? or can I force the default tooltip text inside jsapi.js?
Thanks Robert, this is the error I'm getting...I don't know why... create [widgets/eSearch/Widget] error:TypeError: Cannot read property 'draw' of undefined