Hello again Robert,
Thanks for the recommendation. That's exactly what I'm doing. Everytime I make changes on the code, I create a new app. Read about this on one of your other posts.
After many modifications on eSearch parameters, Print layout still remains unchanged.
First I changed Search Layer parameters from the UI, tried different Search Expressions, didn't work. Then I manually edited config.json to make my Search Layer parameters similar to the others.
{
"name": "Parcels",
"url": "https://.../server/rest/.../.../MapServer/0",
"definitionexpression": "",
"spatialsearchlayer": true,
"export2Csv": false,
"export2Geo": false,
"export2FC": false,
"zoomScale": 10000,
"forceZoomScale": false,
"shareResult": true,
"addToAttrib": true,
"expressions": {
"expression": [
{
"alias": "Parcel Name",
"textsearchlabel": "Search label",
"values": {
"value": [
{
"fieldObj": {
"name": "NAME",
"label": "NAME",
"shortType": "string",
"type": "esriFieldTypeString"
},
"valueObj": {},
"prompt": "NAME starts with",
"textsearchhint": "hint",
"sqltext": "NAME LIKE '[value]%'",
"operation": "stringOperatorStartsWith",
"userlist": ""
}
]
}
}
]
},
"titlefield": "NAME",
"fields": {
"all": false,
"field": [
{
"name": "NAME",
"alias": "NAME"
},
{
"name": "ID",
"alias": "ID"
},
{
"name": "NUMBER1",
"alias": "NUMBER1",
"isnumber": true
},
{
"name": "NUMBER2",
"alias": "NUMBER2",
"isnumber": true
},
{
"name": "SHAPE.AREA",
"alias": "SHAPE.AREA",
"isnumber": true
},
{
"name": "SHAPE.LEN",
"alias": "SHAPE.LEN",
"isnumber": true
}
]
},
"links": {
"link": []
},
"orderByFields": [],
"layersymbolfrom": "config"
},
{
"name": "Traffic Cameras",
"url": "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/...",
"definitionexpression": "",
"spatialsearchlayer": true,
"zoomScale": 5000,
"shareResult": true,
"addToAttrib": true,
"expressions": {
"expression": [
{
"alias": "Traffic Camera Description",
"textsearchlabel": "Search Traffic Cameras by Location...",
"values": {
"value": [
{
"fieldObj": {
"name": "DESCRIPTION",
"label": "DESCRIPTION",
"shortType": "string",
"type": "esriFieldTypeString"
},
"valueObj": {},
"prompt": "DESCRIPTION starts with",
"textsearchhint": "Example: I-71",
"sqltext": "DESCRIPTION LIKE '[value]%'",
"operation": "stringOperatorStartsWith",
"userlist": "I-71,I-64"
}
]
}
}
]
},
"titlefield": "DESCRIPTION",
"fields": {
"all": false,
"field": [
{
"name": "DESCRIPTION",
"alias": "Description"
},
{
"name": "URL",
"alias": "Show Image",
"visible": false
},
{
"name": "ONLINE",
"alias": "Online"
},
{
"name": "LAST_UPDATED",
"alias": "Last Updated",
"dateformat": "MM/dd/yyyy",
"useutc": true,
"isdate": true
}
]
},
"links": {
"link": [
{
"alias": "View Traffic Photo",
"content": "{URL}",
"icon": "http://resources.arcgis.com/en/help/flex-viewer/live/assets/images/i_camera.png",
"disablelinksifnull": true,
"popuptype": "image"
}
]
},
"layersymbolfrom": "server"
},
Enhanced Search Widget's search function on "Parcels" is working pretty good. Finding and zooming on to the parcels starting with 'value'. However, when using Print Widget, layer name returns as undefined.