Select to view content in your preferred language

search fails in enhanced search tool widget

3496
11
Jump to solution
06-06-2016 12:59 PM
devarsimajumder2
Emerging Contributor

Robert Scheitlin, GISP

Hello Robert

First of all Thanks for the enhanced search tool. It is a great tool to use. I have used this layer to make certain search layers  through the use of our basemap layers which is pulling from our server. I have added two new layers one being ownership and the other one being utility reports. I have made the search tools yet when we try to search by  record number or owner name the search fails. is there a way you can help me with this? Thank you.

Devarsi

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Devarsi,

  You have "Ownership Search" in the layers Definition Expression field. If you look at the widgets help document then you will see that this field is not suppose to be any type of label. It is only suppose to be a true SQL expression (if you need/want to define a definition expression).

View solution in original post

11 Replies
RobertScheitlin__GISP
MVP Emeritus

Devarsi,

  There is not enough information here for me to provide much guidance, Can you attach your config_Enhanced Search.json file for me to look at?

0 Kudos
devarsimajumder2
Emerging Contributor

yeah i can do that.. how do you want me to attach it. do you want me to email it to you or post it  here on a thread?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Devarsi,

  I like to maintain all communication on GeoNet.

0 Kudos
devarsimajumder2
Emerging Contributor

i pasted the config file below. Thanks for your help in this matter. I appreciate it.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Devarsi,

So the last search layer that allows to search by Account Number or Owner Name, you have that setup where the entered name must equal the data in the ownername filed. Normally you would want to configure this to use the contains operator instead of equals.

0 Kudos
devarsimajumder2
Emerging Contributor

Hey robert

still shows that it is failing.. Could it be something with the website itself from where the server is pulling the layer? The other layers are working fine again I have pasted the  config file below thanks for the help

{

  "layers": [

    {

      "name": "Louisville Zoning",

      "url": "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/M...",

      "definitionexpression": "ZONING_TYPE = 'RESIDENTIAL'",

      "spatialsearchlayer": true,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Zoning Type",

            "textsearchlabel": "Search by Zoning Type",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ZONING_TYPE",

                    "label": "ZONING_TYPE",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Zoning Type is",

                  "textsearchhint": "Example: RESIDENTIAL",

                  "sqltext": "ZONING_TYPE = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ZONING_TYPE"

                },

                {

                  "fieldObj": {

                    "name": "ZONING_NAME",

                    "label": "ZONING_NAME",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Zoning Name is",

                  "textsearchhint": "Example: RES SINGLE FAMILY",

                  "sqltext": "ZONING_NAME = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ZONING_NAME",

                  "operator": "AND"

                }

              ]

            }

          }

        ]

      },

      "titlefield": "ZONING_NAME",

      "fields": {

        "all": false,

        "field": [

          {

            "name": "ZONING_NAME",

            "alias": "ZONING_NAME"

          },

          {

            "name": "ZONING_CODE",

            "alias": "ZONING_CODE",

            "popuponly": true

          },

          {

            "name": "ZONING_TYPE",

            "alias": "ZONING_TYPE",

            "popuponly": true

          }

        ]

      },

      "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"

    },

    {

      "name": "Tax Sales",

      "url": "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/TaxParcel/AssessorsLiveLayers/MapServer/1",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Deed Type",

            "textsearchlabel": "Search By Deed Type",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "DOCNAME",

                    "label": "Document Name",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Document Name is",

                  "textsearchhint": "Choose From List",

                  "sqltext": "DOCNAME = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "DOCNAME"

                }

              ]

            }

          },

          {

            "alias": "Site Address",

            "textsearchlabel": "Search By Site Address",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "SITEADDRESS",

                    "label": "Full Site Address",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Full Site Address contains",

                  "textsearchhint": "1702 Hickory Bark Ln",

                  "sqltext": "Upper(SITEADDRESS) LIKE Upper('%[value]%')",

                  "operation": "stringOperatorContains"

                }

              ]

            }

          }

        ]

      },

      "titlefield": "PARCELID",

      "fields": {

        "all": false,

        "field": [

          {

            "name": "PARCELID",

            "alias": "Parcel Identification Number"

          },

          {

            "name": "SITEADDRESS",

            "alias": "Full Site Address"

          },

          {

            "name": "DOCNAME",

            "alias": "Document Name"

          },

          {

            "name": "RECORDDT",

            "alias": "Date Recorded",

            "isdate": true

          },

          {

            "name": "TRANSDT",

            "alias": "Transaction Date",

            "isdate": true

          },

          {

            "name": "GRANTOR",

            "alias": "Grantor"

          },

          {

            "name": "GRANTEE",

            "alias": "Grantee"

          },

          {

            "name": "LIBER",

            "alias": "Liber"

          },

          {

            "name": "PAGE",

            "alias": "Page"

          },

          {

            "name": "SALEAMNT",

            "alias": "Sale Amount",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "layersymbolfrom": "server"

    }

  ],

  "initialView": "text",

  "enablePopupsOnResultClick": true,

  "limitsearch2mapextentchecked": false,

  "autozoomtoresults": true,

  "mouseovergraphics": false,

  "toleranceforpointgraphicalselection": 6,

  "bufferDefaults": {

    "addtolegend": false,

    "bufferUnits": {

      "bufferUnit": [

        {

          "name": "UNIT_FOOT",

          "label": "Feet"

      }, {

          "name": "UNIT_STATUTE_MILE",

          "label": "Miles"

      }, {

          "name": "UNIT_METER",

          "label": "Meter"

      }

    ]

    },

    "bufferDefaultValue": 5,

    "bufferWKID": 102003,

    "simplefillsymbol": {

      "color": [

        1,

        185,

        253,

        128

      ],

      "outline": {

        "color": [

          1,

          185,

          253,

          204

        ],

        "width": 1,

        "type": "esriSLS",

        "style": "esriSLSSolid"

      },

      "type": "esriSFS",

      "style": "esriSFSSolid"

    }

  },

  "spatialrelationships":{

    "spatialrelationship":[

      {

        "name":"esriSpatialRelContains",

        "label":"entirely contained in"

      },{

        "name":"esriSpatialRelIntersects",

        "label":"intersected by"

      },{

        "name":"esriSpatialRelEnvelopeIntersects",

        "label":"intersected by envelope of"

      }

    ]

  },

  "graphicalsearchoptions":{

    "enablepointselect": true,

    "enablelineselect": true,

    "enablepolylineselect": true,

    "enableextentselect": true,

    "enablecircleselect": true,

    "enablepolyselect": true,

    "showmultigraphicsgraphicaloption": true,

    "showaddtolerancegraphicaloption": true,

    "showaddsqltextgraphicaloption": true,

    "showbuffergraphicaloption": true,

    "buffercheckedbydefaultgraphicaloption": false,

    "multipartgraphicsearchchecked": false,

    "addpointtolerancechecked": false,

    "keepgraphicalsearchenabled": true

  },

  "symbols": {

    "simplemarkersymbol": null,

    "picturemarkersymbol": {

      "url": "images/i_search.png",

      "height": "20",

      "width": "20",

      "type": "esriPMS",

      "angle": "0"

    },

    "simplelinesymbol": {

      "type": "esriSLS",

      "style": "esriSLSSolid",

      "color": [

        255,

        0,

        0,

        204

      ],

      "width": 2

    },

    "simplefillsymbol": {

      "color": [

        255,

        0,

        0,

        128

      ],

      "outline": {

        "color": [

          255,

          0,

          0,

          204

        ],

        "width": 2,

        "type": "esriSLS",

        "style": "esriSLSSolid"

      },

      "type": "esriSFS",

      "style": "esriSFSSolid"

    }

  }

}

0 Kudos
devarsimajumder2
Emerging Contributor

{

  "layers": [

    {

      "name": "Parcels",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/BaseMap/MapServer/1",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": true,

      "addToAttrib": true,

      "expressions": {

        "expression": [

          {

            "alias": "Parcel Search",

            "textsearchlabel": "Parcel Search",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ExtendedSU",

                    "label": "ExtendedSU",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Subdivision",

                  "textsearchhint": "Select a Subdivision or Unit",

                  "sqltext": "ExtendedSU = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ExtendedSU"

                },

                {

                  "fieldObj": {

                    "name": "Block",

                    "label": "Block",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Block",

                  "textsearchhint": "Block",

                  "sqltext": "Upper(Block) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                },

                {

                  "fieldObj": {

                    "name": "Lot",

                    "label": "Lot",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Lot",

                  "textsearchhint": "Lot",

                  "sqltext": "Upper(Lot) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                },

                {

                  "fieldObj": {

                    "name": "Par",

                    "label": "Par",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Par",

                  "textsearchhint": "Par",

                  "sqltext": "Upper(Par) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                },

                {

                  "fieldObj": {

                    "name": "Tr",

                    "label": "Tr",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Tract",

                  "textsearchhint": "Tract",

                  "sqltext": "Upper(Tr) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "WaterServ",

            "alias": "Water Service Provider"

          },

          {

            "name": "SewerServ",

            "alias": "Sewer Service Provider"

          },

          {

            "name": "Feature",

            "alias": "Feature"

          },

          {

            "name": "LegalDesc",

            "alias": "LegalDesc"

          },

          {

            "name": "Subd",

            "alias": "Subd"

          },

          {

            "name": "Block",

            "alias": "Block"

          },

          {

            "name": "Lot",

            "alias": "Lot"

          },

          {

            "name": "Par",

            "alias": "Par"

          },

          {

            "name": "Tr",

            "alias": "Tr"

          },

          {

            "name": "ExtendedSU",

            "alias": "ExtendedSU"

          },

          {

            "name": "BookPg",

            "alias": "BookPg"

          },

          {

            "name": "Override",

            "alias": "Override"

          },

          {

            "name": "Address",

            "alias": "Address"

          },

          {

            "name": "PreDir",

            "alias": "PreDir"

          },

          {

            "name": "StrName",

            "alias": "StrName"

          },

          {

            "name": "StrSuffix",

            "alias": "StrSuffix"

          },

          {

            "name": "StrDir",

            "alias": "StrDir"

          },

          {

            "name": "StrAddr",

            "alias": "StrAddr"

          },

          {

            "name": "ZipCode",

            "alias": "ZipCode"

          },

          {

            "name": "Acres",

            "alias": "Acres",

            "isnumber": true

          },

          {

            "name": "Alias",

            "alias": "Alias"

          },

          {

            "name": "CoDate",

            "alias": "CoDate",

            "isdate": true

          },

          {

            "name": "PermitDate",

            "alias": "PermitDate",

            "isdate": true

          },

          {

            "name": "PropertyCode",

            "alias": "PropertyCode"

          },

          {

            "name": "LandUse",

            "alias": "LandUse"

          },

          {

            "name": "PropertyName",

            "alias": "PropertyName"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Subdivisions",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/37",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Subdivision",

            "textsearchlabel": "Subdivision",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ExtendedSub",

                    "label": "ExtendedSub",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Subdivision",

                  "textsearchhint": "Select a Subdivision",

                  "sqltext": "ExtendedSub = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ExtendedSub"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Subd",

            "alias": "Subd"

          },

          {

            "name": "ExtendedSub",

            "alias": "ExtendedSub"

          },

          {

            "name": "Status2",

            "alias": "Status2"

          },

          {

            "name": "Status1",

            "alias": "Status1"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          },

          {

            "name": "Shape_Length",

            "alias": "Shape_Length",

            "isnumber": true

          },

          {

            "name": "Shape_Area",

            "alias": "Shape_Area",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "City Facilities",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/2",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "City Facilities",

            "textsearchlabel": "City Facilities",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "Name",

                    "label": "Name",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Select A Facility",

                  "textsearchhint": "Select A Facility",

                  "sqltext": "Name = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "Name"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Name",

            "alias": "Name"

          },

          {

            "name": "Address",

            "alias": "Address"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Record Drawing Asbuilts",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/7",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Asbuilt",

            "textsearchlabel": "Search for record drawing",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "Title",

                    "label": "Title",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Title is",

                  "textsearchhint": "Title is",

                  "sqltext": "Title = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "Title"

                },

                {

                  "fieldObj": {

                    "name": "EngineerFirm",

                    "label": "EngineerFirm",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": "D"

                  },

                  "prompt": "Engineer Firm",

                  "textsearchhint": "Engineer Firm",

                  "sqltext": "EngineerFirm = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "EngineerFirm",

                  "operator": "OR"

                },

                {

                  "fieldObj": {

                    "name": "PlanType",

                    "label": "PlanType",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Plan Type",

                  "textsearchhint": "Plan Type",

                  "sqltext": "PlanType = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "PlanType",

                  "operator": "OR"

                },

                {

                  "fieldObj": {

                    "name": "PlanNumber",

                    "label": "PlanNumber",

                    "shortType": "number",

                    "type": "esriFieldTypeSmallInteger"

                  },

                  "valueObj": {

                    "value": null

                  },

                  "prompt": "Plan Number",

                  "textsearchhint": "Plan Number",

                  "sqltext": "PlanNumber = [value]",

                  "operation": "numberOperatorIs",

                  "operator": "OR"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "PlanType",

            "alias": "PlanType"

          },

          {

            "name": "EngineerFirm",

            "alias": "EngineerFirm"

          },

          {

            "name": "Subdivision",

            "alias": "Subdivision"

          },

          {

            "name": "Title",

            "alias": "Title"

          },

          {

            "name": "DateFyComplete",

            "alias": "DateFyComplete",

            "isdate": true

          },

          {

            "name": "DateLastApproval",

            "alias": "DateLastApproval",

            "isdate": true

          },

          {

            "name": "ProjectManager",

            "alias": "ProjectManager"

          },

          {

            "name": "ProjectNumber",

            "alias": "ProjectNumber"

          },

          {

            "name": "UtilityExtension",

            "alias": "UtilityExtension"

          },

          {

            "name": "RecDrawAsbuilt",

            "alias": "RecDrawAsbuilt"

          },

          {

            "name": "TIA",

            "alias": "TIA"

          },

          {

            "name": "DrainageRpt",

            "alias": "DrainageRpt"

          },

          {

            "name": "GeoReport",

            "alias": "GeoReport"

          },

          {

            "name": "ControlNumber",

            "alias": "ControlNumber"

          },

          {

            "name": "Inspector",

            "alias": "Inspector"

          },

          {

            "name": "Inspector2",

            "alias": "Inspector2"

          },

          {

            "name": "Inspector3",

            "alias": "Inspector3"

          },

          {

            "name": "NMDotCN",

            "alias": "NMDotCN"

          },

          {

            "name": "ProjectFiles",

            "alias": "ProjectFiles"

          },

          {

            "name": "ProjFilesDisp",

            "alias": "ProjFilesDisp"

          },

          {

            "name": "PlanNumber",

            "alias": "PlanNumber",

            "isnumber": true

          },

          {

            "name": "SHAPE_STArea__",

            "alias": "SHAPE.STArea()",

            "isnumber": true

          },

          {

            "name": "SHAPE_STLength__",

            "alias": "SHAPE.STLength()",

            "isnumber": true

          },

          {

            "name": "Hyperlink",

            "alias": "Hyperlink"

          },

          {

            "name": "Hyperlink2",

            "alias": "Hyperlink2"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          },

          {

            "name": "SHAPE_Length",

            "alias": "SHAPE_Length",

            "isnumber": true

          },

          {

            "name": "SHAPE_Area",

            "alias": "SHAPE_Area",

            "isnumber": true

          },

          {

            "name": "ProjectFileLocation",

            "alias": "ProjectFileLocation"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Maintenance Connection",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/4",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Problem:",

            "textsearchlabel": "Problem",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "Problem",

                    "label": "Problem",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Select a problem",

                  "textsearchhint": "Select a problem",

                  "sqltext": "Problem = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "Problem"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "WorkOrder",

            "alias": "WorkOrder"

          },

          {

            "name": "AssetName",

            "alias": "AssetName"

          },

          {

            "name": "Location",

            "alias": "Location"

          },

          {

            "name": "Type",

            "alias": "Type"

          },

          {

            "name": "Category",

            "alias": "Category"

          },

          {

            "name": "Priority",

            "alias": "Priority"

          },

          {

            "name": "Repair_Ctr",

            "alias": "Repair_Ctr"

          },

          {

            "name": "Status",

            "alias": "Status"

          },

          {

            "name": "Stat_Date",

            "alias": "Stat_Date"

          },

          {

            "name": "Labor",

            "alias": "Labor"

          },

          {

            "name": "Problem",

            "alias": "Problem"

          },

          {

            "name": "Failure",

            "alias": "Failure"

          },

          {

            "name": "Solution",

            "alias": "Solution"

          },

          {

            "name": "LaborCost",

            "alias": "LaborCost",

            "isnumber": true

          },

          {

            "name": "PartsCost",

            "alias": "PartsCost",

            "isnumber": true

          },

          {

            "name": "TotalCost",

            "alias": "TotalCost",

            "isnumber": true

          },

          {

            "name": "WO_Issued",

            "alias": "WO_Issued"

          },

          {

            "name": "WO_Compl",

            "alias": "WO_Compl"

          },

          {

            "name": "WO_Closed",

            "alias": "WO_Closed"

          },

          {

            "name": "xcoord",

            "alias": "xcoord",

            "isnumber": true

          },

          {

            "name": "ycoord",

            "alias": "ycoord",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Traffic Impact Analysis",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/8",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Traffic Impact Analysis",

            "textsearchlabel": "Traffic Impact Analysis",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ReportTitle",

                    "label": "ReportTitle",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Traffic Impact Analysis",

                  "textsearchhint": "Traffic Impact Analysis",

                  "sqltext": "ReportTitle = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ReportTitle"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Id",

            "alias": "Id",

            "isnumber": true

          },

          {

            "name": "EngineerFirm",

            "alias": "EngineerFirm"

          },

          {

            "name": "AcceptDate",

            "alias": "AcceptDate",

            "isdate": true

          },

          {

            "name": "ReportTitle",

            "alias": "ReportTitle"

          },

          {

            "name": "Catalogue",

            "alias": "Catalogue"

          },

          {

            "name": "Subdivision",

            "alias": "Subdivision"

          },

          {

            "name": "Hyperlink",

            "alias": "Hyperlink"

          },

          {

            "name": "ReportVersion",

            "alias": "ReportVersion"

          },

          {

            "name": "Shape_STArea__",

            "alias": "Shape.STArea()",

            "isnumber": true

          },

          {

            "name": "Shape_STLength__",

            "alias": "Shape.STLength()",

            "isnumber": true

          },

          {

            "name": "Hyperlink2",

            "alias": "Hyperlink2"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          },

          {

            "name": "Shape_Length",

            "alias": "Shape_Length",

            "isnumber": true

          },

          {

            "name": "Shape_Area",

            "alias": "Shape_Area",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Utility Reports",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/11",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": true,

      "addToAttrib": true,

      "expressions": {

        "expression": [

          {

            "alias": "Utility Reports",

            "textsearchlabel": "Utility Reports",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "EngineeringFirm",

                    "label": "EngineeringFirm",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Engineering Firm",

                  "textsearchhint": "Engineering Firm",

                  "sqltext": "EngineeringFirm = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "EngineeringFirm"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "EngineeringFirm",

            "alias": "EngineeringFirm"

          },

          {

            "name": "AcceptDate",

            "alias": "AcceptDate",

            "isdate": true

          },

          {

            "name": "ReportTitle",

            "alias": "ReportTitle"

          },

          {

            "name": "CatalogueNumber",

            "alias": "CatalogueNumber"

          },

          {

            "name": "ReportVersion",

            "alias": "ReportVersion"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Ownership",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/BaseMap/MapServer/2",

      "definitionexpression": "Ownership Search",

      "spatialsearchlayer": true,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Ownership Search",

            "textsearchlabel": "Search by Ownership",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ACCOUNTNUM",

                    "label": "ACCOUNTNUM",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Account Number",

                  "textsearchhint": "Account Number",

                  "sqltext": "Upper(ACCOUNTNUM) = Upper('[value]')",

                  "operation": "stringOperatorIs"

                },

                {

                  "fieldObj": {

                    "name": "OWNERNAME",

                    "label": "OWNERNAME",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Owner Name",

                  "textsearchhint": "Owner Name",

                  "sqltext": "Upper(OWNERNAME) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "OR"

                }

              ]

            }

          }

        ]

      },

      "titlefield": "Account_No",

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Account_No",

            "alias": "Account_No"

          },

          {

            "name": "Parcel_ID",

            "alias": "Parcel_ID"

          },

          {

            "name": "OWNERNAME",

            "alias": "OWNERNAME"

          },

          {

            "name": "OWNERADD_1",

            "alias": "OWNERADD_1"

          },

          {

            "name": "SUBDIVISIO",

            "alias": "SUBDIVISIO"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    }

  ],

  "initialView": "text",

  "enablePopupsOnResultClick": true,

  "exportsearchurlchecked": true,

  "limitsearch2mapextentchecked": false,

  "autozoomtoresults": true,

  "mouseovergraphics": false,

  "bufferDefaults": {

    "bufferUnits": {

      "bufferUnit": [

        {

          "label": "Feet",

          "name": "UNIT_FOOT"

        },

        {

          "label": "Meter",

          "name": "UNIT_METER"

        },

        {

          "label": "Miles",

          "name": "UNIT_STATUTE_MILE"

        }

      ]

    },

    "bufferDefaultValue": 5,

    "bufferWKID": 102003,

    "simplefillsymbol": {

      "color": [

        1,

        185,

        253,

        128

      ],

      "outline": {

        "color": [

          1,

          185,

          253,

          204

        ],

        "width": 0.75,

        "type": "esriSLS",

        "style": "esriSLSSolid"

      },

      "type": "esriSFS",

      "style": "esriSFSSolid"

    },

    "addtolegend": true

  },

  "spatialrelationships": {

    "spatialrelationship": [

      {

        "label": "entirely contained in",

        "name": "esriSpatialRelContains"

      },

      {

        "label": "intersected by",

        "name": "esriSpatialRelIntersects"

      },

      {

        "label": "intersected by envelope of",

        "name": "esriSpatialRelEnvelopeIntersects"

      }

    ]

  },

  "graphicalsearchoptions": {

    "enablepointselect": true,

    "enablelineselect": true,

    "showmultigraphicsgraphicaloption": true,

    "showaddtolerancegraphicaloption": true,

    "showaddsqltextgraphicaloption": true,

    "showbuffergraphicaloption": true,

    "buffercheckedbydefaultgraphicaloption": false,

    "multipartgraphicsearchchecked": false,

    "addpointtolerancechecked": false,

    "toleranceforpointgraphicalselection": 6,

    "keepgraphicalsearchenabled": false

  },

  "symbols": {

    "simplemarkersymbol": null,

    "picturemarkersymbol": {

      "angle": 0,

      "xoffset": 0,

      "yoffset": 0,

      "type": "esriPMS",

      "url": "http://localhost:3344/webappbuilder/apps/6/widgets/eSearch/http://localhost:3344/webappbuilder/apps/...",

      "width": 20.00025,

      "height": 20.00025

    },

    "simplelinesymbol": {

      "color": [

        255,

        0,

        0,

        204

      ],

      "width": 2.25,

      "type": "esriSLS",

      "style": "esriSLSSolid"

    },

    "simplefillsymbol": {

      "color": [

        242,

        247,

        233,

        128

      ],

      "outline": {

        "color": [

          255,

          0,

          0,

          204

        ],

        "width": 1.5,

        "type": "esriSLS",

        "style": "esriSLSSolid"

      },

      "type": "esriSFS",

      "style": "esriSFSSolid"

    }

  }

}

0 Kudos
devarsimajumder2
Emerging Contributor

here is the updated config file for the esearch tool sorry pasted the wrong config file

{

  "layers": [

    {

      "name": "Parcels",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/BaseMap/MapServer/1",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": true,

      "addToAttrib": true,

      "expressions": {

        "expression": [

          {

            "alias": "Parcel Search",

            "textsearchlabel": "Parcel Search",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ExtendedSU",

                    "label": "ExtendedSU",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Subdivision",

                  "textsearchhint": "Select a Subdivision or Unit",

                  "sqltext": "ExtendedSU = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ExtendedSU"

                },

                {

                  "fieldObj": {

                    "name": "Block",

                    "label": "Block",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Block",

                  "textsearchhint": "Block",

                  "sqltext": "Upper(Block) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                },

                {

                  "fieldObj": {

                    "name": "Lot",

                    "label": "Lot",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Lot",

                  "textsearchhint": "Lot",

                  "sqltext": "Upper(Lot) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                },

                {

                  "fieldObj": {

                    "name": "Par",

                    "label": "Par",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Par",

                  "textsearchhint": "Par",

                  "sqltext": "Upper(Par) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                },

                {

                  "fieldObj": {

                    "name": "Tr",

                    "label": "Tr",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Tract",

                  "textsearchhint": "Tract",

                  "sqltext": "Upper(Tr) = Upper('[value]')",

                  "operation": "stringOperatorIs",

                  "operator": "AND"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "WaterServ",

            "alias": "Water Service Provider"

          },

          {

            "name": "SewerServ",

            "alias": "Sewer Service Provider"

          },

          {

            "name": "Feature",

            "alias": "Feature"

          },

          {

            "name": "LegalDesc",

            "alias": "LegalDesc"

          },

          {

            "name": "Subd",

            "alias": "Subd"

          },

          {

            "name": "Block",

            "alias": "Block"

          },

          {

            "name": "Lot",

            "alias": "Lot"

          },

          {

            "name": "Par",

            "alias": "Par"

          },

          {

            "name": "Tr",

            "alias": "Tr"

          },

          {

            "name": "ExtendedSU",

            "alias": "ExtendedSU"

          },

          {

            "name": "BookPg",

            "alias": "BookPg"

          },

          {

            "name": "Override",

            "alias": "Override"

          },

          {

            "name": "Address",

            "alias": "Address"

          },

          {

            "name": "PreDir",

            "alias": "PreDir"

          },

          {

            "name": "StrName",

            "alias": "StrName"

          },

          {

            "name": "StrSuffix",

            "alias": "StrSuffix"

          },

          {

            "name": "StrDir",

            "alias": "StrDir"

          },

          {

            "name": "StrAddr",

            "alias": "StrAddr"

          },

          {

            "name": "ZipCode",

            "alias": "ZipCode"

          },

          {

            "name": "Acres",

            "alias": "Acres",

            "isnumber": true

          },

          {

            "name": "Alias",

            "alias": "Alias"

          },

          {

            "name": "CoDate",

            "alias": "CoDate",

            "isdate": true

          },

          {

            "name": "PermitDate",

            "alias": "PermitDate",

            "isdate": true

          },

          {

            "name": "PropertyCode",

            "alias": "PropertyCode"

          },

          {

            "name": "LandUse",

            "alias": "LandUse"

          },

          {

            "name": "PropertyName",

            "alias": "PropertyName"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Subdivisions",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/37",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Subdivision",

            "textsearchlabel": "Subdivision",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ExtendedSub",

                    "label": "ExtendedSub",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Subdivision",

                  "textsearchhint": "Select a Subdivision",

                  "sqltext": "ExtendedSub = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ExtendedSub"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Subd",

            "alias": "Subd"

          },

          {

            "name": "ExtendedSub",

            "alias": "ExtendedSub"

          },

          {

            "name": "Status2",

            "alias": "Status2"

          },

          {

            "name": "Status1",

            "alias": "Status1"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          },

          {

            "name": "Shape_Length",

            "alias": "Shape_Length",

            "isnumber": true

          },

          {

            "name": "Shape_Area",

            "alias": "Shape_Area",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "City Facilities",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/2",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "City Facilities",

            "textsearchlabel": "City Facilities",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "Name",

                    "label": "Name",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Select A Facility",

                  "textsearchhint": "Select A Facility",

                  "sqltext": "Name = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "Name"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Name",

            "alias": "Name"

          },

          {

            "name": "Address",

            "alias": "Address"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Record Drawing Asbuilts",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/7",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Asbuilt",

            "textsearchlabel": "Search for record drawing",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "Title",

                    "label": "Title",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Title is",

                  "textsearchhint": "Title is",

                  "sqltext": "Title = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "Title"

                },

                {

                  "fieldObj": {

                    "name": "EngineerFirm",

                    "label": "EngineerFirm",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": "D"

                  },

                  "prompt": "Engineer Firm",

                  "textsearchhint": "Engineer Firm",

                  "sqltext": "EngineerFirm = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "EngineerFirm",

                  "operator": "OR"

                },

                {

                  "fieldObj": {

                    "name": "PlanType",

                    "label": "PlanType",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Plan Type",

                  "textsearchhint": "Plan Type",

                  "sqltext": "PlanType = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "PlanType",

                  "operator": "OR"

                },

                {

                  "fieldObj": {

                    "name": "PlanNumber",

                    "label": "PlanNumber",

                    "shortType": "number",

                    "type": "esriFieldTypeSmallInteger"

                  },

                  "valueObj": {

                    "value": null

                  },

                  "prompt": "Plan Number",

                  "textsearchhint": "Plan Number",

                  "sqltext": "PlanNumber = [value]",

                  "operation": "numberOperatorIs",

                  "operator": "OR"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "PlanType",

            "alias": "PlanType"

          },

          {

            "name": "EngineerFirm",

            "alias": "EngineerFirm"

          },

          {

            "name": "Subdivision",

            "alias": "Subdivision"

          },

          {

            "name": "Title",

            "alias": "Title"

          },

          {

            "name": "DateFyComplete",

            "alias": "DateFyComplete",

            "isdate": true

          },

          {

            "name": "DateLastApproval",

            "alias": "DateLastApproval",

            "isdate": true

          },

          {

            "name": "ProjectManager",

            "alias": "ProjectManager"

          },

          {

            "name": "ProjectNumber",

            "alias": "ProjectNumber"

          },

          {

            "name": "UtilityExtension",

            "alias": "UtilityExtension"

          },

          {

            "name": "RecDrawAsbuilt",

            "alias": "RecDrawAsbuilt"

          },

          {

            "name": "TIA",

            "alias": "TIA"

          },

          {

            "name": "DrainageRpt",

            "alias": "DrainageRpt"

          },

          {

            "name": "GeoReport",

            "alias": "GeoReport"

          },

          {

            "name": "ControlNumber",

            "alias": "ControlNumber"

          },

          {

            "name": "Inspector",

            "alias": "Inspector"

          },

          {

            "name": "Inspector2",

            "alias": "Inspector2"

          },

          {

            "name": "Inspector3",

            "alias": "Inspector3"

          },

          {

            "name": "NMDotCN",

            "alias": "NMDotCN"

          },

          {

            "name": "ProjectFiles",

            "alias": "ProjectFiles"

          },

          {

            "name": "ProjFilesDisp",

            "alias": "ProjFilesDisp"

          },

          {

            "name": "PlanNumber",

            "alias": "PlanNumber",

            "isnumber": true

          },

          {

            "name": "SHAPE_STArea__",

            "alias": "SHAPE.STArea()",

            "isnumber": true

          },

          {

            "name": "SHAPE_STLength__",

            "alias": "SHAPE.STLength()",

            "isnumber": true

          },

          {

            "name": "Hyperlink",

            "alias": "Hyperlink"

          },

          {

            "name": "Hyperlink2",

            "alias": "Hyperlink2"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          },

          {

            "name": "SHAPE_Length",

            "alias": "SHAPE_Length",

            "isnumber": true

          },

          {

            "name": "SHAPE_Area",

            "alias": "SHAPE_Area",

            "isnumber": true

          },

          {

            "name": "ProjectFileLocation",

            "alias": "ProjectFileLocation"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Maintenance Connection",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/4",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Problem:",

            "textsearchlabel": "Problem",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "Problem",

                    "label": "Problem",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Select a problem",

                  "textsearchhint": "Select a problem",

                  "sqltext": "Problem = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "Problem"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "WorkOrder",

            "alias": "WorkOrder"

          },

          {

            "name": "AssetName",

            "alias": "AssetName"

          },

          {

            "name": "Location",

            "alias": "Location"

          },

          {

            "name": "Type",

            "alias": "Type"

          },

          {

            "name": "Category",

            "alias": "Category"

          },

          {

            "name": "Priority",

            "alias": "Priority"

          },

          {

            "name": "Repair_Ctr",

            "alias": "Repair_Ctr"

          },

          {

            "name": "Status",

            "alias": "Status"

          },

          {

            "name": "Stat_Date",

            "alias": "Stat_Date"

          },

          {

            "name": "Labor",

            "alias": "Labor"

          },

          {

            "name": "Problem",

            "alias": "Problem"

          },

          {

            "name": "Failure",

            "alias": "Failure"

          },

          {

            "name": "Solution",

            "alias": "Solution"

          },

          {

            "name": "LaborCost",

            "alias": "LaborCost",

            "isnumber": true

          },

          {

            "name": "PartsCost",

            "alias": "PartsCost",

            "isnumber": true

          },

          {

            "name": "TotalCost",

            "alias": "TotalCost",

            "isnumber": true

          },

          {

            "name": "WO_Issued",

            "alias": "WO_Issued"

          },

          {

            "name": "WO_Compl",

            "alias": "WO_Compl"

          },

          {

            "name": "WO_Closed",

            "alias": "WO_Closed"

          },

          {

            "name": "xcoord",

            "alias": "xcoord",

            "isnumber": true

          },

          {

            "name": "ycoord",

            "alias": "ycoord",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Traffic Impact Analysis",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/8",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Traffic Impact Analysis",

            "textsearchlabel": "Traffic Impact Analysis",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ReportTitle",

                    "label": "ReportTitle",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Traffic Impact Analysis",

                  "textsearchhint": "Traffic Impact Analysis",

                  "sqltext": "ReportTitle = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "ReportTitle"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Id",

            "alias": "Id",

            "isnumber": true

          },

          {

            "name": "EngineerFirm",

            "alias": "EngineerFirm"

          },

          {

            "name": "AcceptDate",

            "alias": "AcceptDate",

            "isdate": true

          },

          {

            "name": "ReportTitle",

            "alias": "ReportTitle"

          },

          {

            "name": "Catalogue",

            "alias": "Catalogue"

          },

          {

            "name": "Subdivision",

            "alias": "Subdivision"

          },

          {

            "name": "Hyperlink",

            "alias": "Hyperlink"

          },

          {

            "name": "ReportVersion",

            "alias": "ReportVersion"

          },

          {

            "name": "Shape_STArea__",

            "alias": "Shape.STArea()",

            "isnumber": true

          },

          {

            "name": "Shape_STLength__",

            "alias": "Shape.STLength()",

            "isnumber": true

          },

          {

            "name": "Hyperlink2",

            "alias": "Hyperlink2"

          },

          {

            "name": "created_user",

            "alias": "created_user"

          },

          {

            "name": "created_date",

            "alias": "created_date",

            "isdate": true

          },

          {

            "name": "last_edited_user",

            "alias": "last_edited_user"

          },

          {

            "name": "last_edited_date",

            "alias": "last_edited_date",

            "isdate": true

          },

          {

            "name": "GlobalID",

            "alias": "GlobalID"

          },

          {

            "name": "Shape_Length",

            "alias": "Shape_Length",

            "isnumber": true

          },

          {

            "name": "Shape_Area",

            "alias": "Shape_Area",

            "isnumber": true

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Utility Reports",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/publicworksflex/MapServer/11",

      "definitionexpression": "",

      "spatialsearchlayer": false,

      "zoomScale": 10000,

      "shareResult": true,

      "addToAttrib": true,

      "expressions": {

        "expression": [

          {

            "alias": "Utility Reports",

            "textsearchlabel": "Utility Reports",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "EngineeringFirm",

                    "label": "EngineeringFirm",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "Engineering Firm",

                  "textsearchhint": "Engineering Firm",

                  "sqltext": "EngineeringFirm = '[value]'",

                  "operation": "stringOperatorIs",

                  "uniquevalsfromfield": "EngineeringFirm"

                }

              ]

            }

          }

        ]

      },

      "titlefield": null,

      "fields": {

        "all": false,

        "field": [

          {

            "name": "EngineeringFirm",

            "alias": "EngineeringFirm"

          },

          {

            "name": "AcceptDate",

            "alias": "AcceptDate",

            "isdate": true

          },

          {

            "name": "ReportTitle",

            "alias": "ReportTitle"

          },

          {

            "name": "CatalogueNumber",

            "alias": "CatalogueNumber"

          },

          {

            "name": "ReportVersion",

            "alias": "ReportVersion"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    },

    {

      "name": "Ownership",

      "url": "http://65.123.159.55/arcgis/rest/services/Flexviewers/BaseMap/MapServer/2",

      "definitionexpression": "Ownership Search",

      "spatialsearchlayer": true,

      "zoomScale": 10000,

      "shareResult": false,

      "addToAttrib": false,

      "expressions": {

        "expression": [

          {

            "alias": "Ownership Search",

            "textsearchlabel": "Search by Ownership",

            "values": {

              "value": [

                {

                  "fieldObj": {

                    "name": "ACCOUNTNUM",

                    "label": "ACCOUNTNUM",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "ACCOUNTNUM contains",

                  "textsearchhint": "Account Number",

                  "sqltext": "Upper(ACCOUNTNUM) LIKE Upper('%[value]%')",

                  "operation": "stringOperatorContains"

                },

                {

                  "fieldObj": {

                    "name": "OWNERNAME",

                    "label": "OWNERNAME",

                    "shortType": "string",

                    "type": "esriFieldTypeString"

                  },

                  "valueObj": {

                    "value": ""

                  },

                  "prompt": "OWNERNAME contains",

                  "textsearchhint": "Owner Name",

                  "sqltext": "Upper(OWNERNAME) LIKE Upper('%[value]%')",

                  "operation": "stringOperatorContains",

                  "operator": "OR"

                }

              ]

            }

          }

        ]

      },

      "titlefield": "Account_No",

      "fields": {

        "all": false,

        "field": [

          {

            "name": "Account_No",

            "alias": "Account_No"

          },

          {

            "name": "Parcel_ID",

            "alias": "Parcel_ID"

          },

          {

            "name": "OWNERNAME",

            "alias": "OWNERNAME"

          },

          {

            "name": "OWNERADD_1",

            "alias": "OWNERADD_1"

          },

          {

            "name": "SUBDIVISIO",

            "alias": "SUBDIVISIO"

          }

        ]

      },

      "links": {

        "link": []

      },

      "orderByFields": [],

      "layersymbolfrom": "server"

    }

  ],

  "initialView": "text",

  "enablePopupsOnResultClick": true,

  "exportsearchurlchecked": true,

  "limitsearch2mapextentchecked": false,

  "autozoomtoresults": true,

  "mouseovergraphics": false,

  "bufferDefaults": {

    "bufferUnits": {

      "bufferUnit": [

        {

          "label": "Feet",

          "name": "UNIT_FOOT"

        },

        {

          "label": "Meter",

          "name": "UNIT_METER"

        },

        {

          "label": "Miles",

          "name": "UNIT_STATUTE_MILE"

        }

      ]

    },

    "bufferDefaultValue": 5,

    "bufferWKID": 102003,

    "simplefillsymbol": {

      "color": [

        1,

        185,

        253,

        128

      ],

      "outline": {

        "color": [

          1,

          185,

          253,

          204

        ],

        "width": 0.75,

        "type": "esriSLS",

        "style": "esriSLSSolid"

      },

      "type": "esriSFS",

      "style": "esriSFSSolid"

    },

    "addtolegend": true

  },

  "spatialrelationships": {

    "spatialrelationship": [

      {

        "label": "entirely contained in",

        "name": "esriSpatialRelContains"

      },

      {

        "label": "intersected by",

        "name": "esriSpatialRelIntersects"

      },

      {

        "label": "intersected by envelope of",

        "name": "esriSpatialRelEnvelopeIntersects"

      }

    ]

  },

  "graphicalsearchoptions": {

    "enablepointselect": true,

    "enablelineselect": true,

    "showmultigraphicsgraphicaloption": true,

    "showaddtolerancegraphicaloption": true,

    "showaddsqltextgraphicaloption": true,

    "showbuffergraphicaloption": true,

    "buffercheckedbydefaultgraphicaloption": false,

    "multipartgraphicsearchchecked": false,

    "addpointtolerancechecked": false,

    "toleranceforpointgraphicalselection": 6,

    "keepgraphicalsearchenabled": false

  },

  "symbols": {

    "simplemarkersymbol": null,

    "picturemarkersymbol": {

      "angle": 0,

      "xoffset": 0,

      "yoffset": 0,

      "type": "esriPMS",

      "url": "http://localhost:3344/webappbuilder/apps/6/widgets/eSearch/http://localhost:3344/webappbuilder/apps/...",

      "width": 20.00025,

      "height": 20.00025

    },

    "simplelinesymbol": {

      "color": [

        255,

        0,

        0,

        204

      ],

      "width": 2.25,

      "type": "esriSLS",

      "style": "esriSLSSolid"

    },

    "simplefillsymbol": {

      "color": [

        242,

        247,

        233,

        128

      ],

      "outline": {

        "color": [

          255,

          0,

          0,

          204

        ],

        "width": 1.5,

        "type": "esriSLS",

        "style": "esriSLSSolid"

      },

      "type": "esriSFS",

      "style": "esriSFSSolid"

    }

  }

}

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Devarsi,

  You have "Ownership Search" in the layers Definition Expression field. If you look at the widgets help document then you will see that this field is not suppose to be any type of label. It is only suppose to be a true SQL expression (if you need/want to define a definition expression).