David,
Thanks for the advice. It worked, although the line number references didn't match. I'm pasting the code for reference to others:
config_Search.json ([app]/configs/Search]):
{
"allPlaceholder": "Property Search",
"showInfoWindowOnSelect": true,
"sources": [
{
"layerId": null,
"url": "https://[website]/arcgis/rest/services/Tax_Assessment/Parcels/MapServer/0",
"name": "Property Address",
"placeholder": "310 Allen Road",
"searchFields": [
"SITUS"
],
"displayField": "SITUS",
"suggestionTemplate": "${SITUS}, ${MUNI_NAME}",
"exactMatch": false,
"searchInCurrentMapExtent": false,
"zoomScale": 50000,
"maxSuggestions": 8,
"maxResults": 8,
"type": "query"
},
{
}
]
}
Widget.js ([app]/widgets/Search):
_convertConfig: function(config) {
else if (source && source.url && source.type === 'query') {
this.own(on(searchLayer, 'load', lang.hitch(this, function(results) {
var convertedSource = {
featureLayer: flayer,
outFields: ["*"],
searchFields: fNames,
displayField: source.displayField || "",
exactMatch: !!source.exactMatch,
name: jimuUtils.stripHTML(source.name || ""),
placeholder: jimuUtils.stripHTML(source.placeholder || ""),
maxSuggestions: source.maxSuggestions || 6,
maxResults: source.maxResults || 6,
zoomScale: source.zoomScale || 50000,
infoTemplate: template,
useMapExtent: !!source.searchInCurrentMapExtent,
_featureLayerId: source.layerId,
suggestionTemplate: source.suggestionTemplate || ""
};
})));
}