POST
|
Chris, I thank you for the answer. This is working fine, and only took 30 seconds to implement. I hope you have a nice weekend. jw
... View more
09-18-2015
10:38 AM
|
0
|
0
|
811
|
POST
|
Chris, Thank you for your response. That is surely an approach I could take here. My problem with it is that it seems a little confusing to the public (who will be using the site). The feedback I get from users is that simple is better, and that concepts like appraisal year, are best left to the appraisal experts. Just one school of thought though... Would be ideal, if it were as simple is just entering an ID and being directed to the property. Thanks again... 1st time poster! jw
... View more
09-18-2015
09:15 AM
|
0
|
3
|
811
|
POST
|
I am attempting to implement a search widget to search for a parcel ID on the map. The feature layer I am using has multiple rows per polygon based on what appraisal year we are interested in. For other query tasks I am able to specify a where clause that limits returned rows to a specific year. I do not seem to have that same level of control with the sources for the search widget. Here is the search widget initiating code I am using; var s = new Search({ enableButtonMode: true, //this enables the search widget to display as a single button enableLabel: false, enableInfoWindow: true, showInfoWindowOnSelect: true, map: map }, "search"); Here is the source I am using to perform the search against the feature layer; var sources = []; sources.push({ featureLayer: new FeatureLayer("http://xxx.xxx.xxx/arcgis/rest/services/xxx/MapServer/1"), searchFields: ["xxx.dbo.map_property_data_vw.prop_id"], displayField: "xxx.dbo.map_property_data_vw.prop_id", exactMatch: false, name: "propSearch", outFields: ["*"], placeholder: "Enter a property ID...", maxResults: 6, maxSuggestions: 6, infoTemplate: infoTemplateQuery, enableSuggestions: false, minCharacters: 2 }); s.set("sources", sources); s.startup(); The search works as expected and opens to appropriate infoWindow, however the data displayed is not from the correct year, thus not providing the latest information in some cases. I have no control over the REST service, or I would just alter the query to be more suitable for this application. I am hoping to implement something similar to how I filter other feature layer queries; query.where = "xxx.dbo.map_property_data_vw.prop_val_yr = '" + 2015 + "'"; Is this possible, or should I be taking another approach? Thank you in advance. jw
... View more
09-18-2015
08:49 AM
|
0
|
5
|
4046
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|