The Enhanced Search widget allows you to retrieve information from source data by executing a predefined query(s).
The Enhanced Search widget serves as a query builder during configuration, allowing you to define the query by specifying the map service layer url, filter expression, and displaying fields in query results. Each Search works with a single layer. However, you can define multiple searches for a single application, and data layers can be from multiple sources.
The following steps indicate how to create a search. Repeat these steps if you need to define multiple searches.
The configuration window for this widget opens.
A file explorer window opens allowing you to browse to a local image file to use as the widget icon.
The new search dialog opens. Now enter the Search URL of the service layer that you wish to use in the search.
Once you have entered the url, click into the next field or press enter in order to load the layers fields into the Available Fields grid.
This will bring up this dialog to allow you to add fields and choose the sort direction.
The Definition Expression is a string that will validate to an actual SQL expression (i.e. Upper(Field_Name) = 'ROBERTS').
Give the link an alias and configure the other link options like Disable Link if Null which will prevent the link from showing in the widget if the link field is null, and Disable link in PopUp (self-explanatory), and PopUp Link Type which assigns the link as a text hyperlink in the popup or and image link.
Set the Link Content by assigning static text that represents the link url (i.e. http://www.esri.com) or clicking the Plus button to add a field from the search layer that contains the link url. Do the same for the Link Icon Content.
Give the Relate an alias and add the fields you want to appear in the results.
Enter an Expression Alias and a Search Label
Next click the Add Expression Value to display the expression value builder.
The default symbology dialog opens, allowing you to choose the color and style for the search result symbol if the map service to not return this information.
The default buffer properties dialog opens, allowing you to choose the color and style for the buffer symbol, the buffer units, the WKID of the buffer, the default buffer distance, and whether the buffer layer is added to the legend (and thus print output).
The spatial search properties dialog opens, allowing you to choose from a list of available spatial search operations that will be made available to the user in the widget.
The graphical search options dialog opens, allowing you to choose from a list of available graphical search drawing tools that will be made available to the user in the widget.
The disabled tab(s) dialog opens, allowing you to choose from a list of tabs that you want to disable to the user in the widget.
The result formatting dialog opens, allowing you to choose the color and style for the identify result text.
Clicking the Enhanced Search widget in your application displays the widget. Depending on the Initial View choice that was made during configuration the By Attribute or the By Shape view will be visible.
The By Attribute view has a dropdown list of predefined search layers. Selecting a search layer updates the dropdown list of search aliases for that layer (search expressions):
By default all searches create a new result set. But to change the selection dropdown to Add or Remove the search results from the current result set.
The By Shape view has a dropdown list of predefined search layers and draw tools for drawing on the map to search for features that intersect the drawn graphics.
The By Spatial view has buffering options, a dropdown list of predefined search layers and spatial operation buttons.
The Results view displays the features returned from the search, and use an alternating color scheme.
The URL Search capability can be used by following these guidelines
This is what's new.