Michipoo

JSON QueryTask operators

Discussion created by Michipoo on Jan 17, 2012
Latest reply on Jan 26, 2012 by russell_roberts-esristaff
Is it possible to write a string query that ignores case in your json file? I would like the value "Bob Smith" returned if the user enters "bob"

"tasks" : {
        "queryTasks" : [{
            "displayField" : "NAME",
            "name" : "Officer",
            "parameters" : [{
                "defaultValue" : "",
                "field" : "NAME",
                "operator" : "like",
                "prompt" : "Enter an Officer's Name"
            }],
            "url" : "http://myserver/ArcGIS/rest/services/maps/myservice/MapServer/3",
            "visibleFields" : ["NAME"],
            "whereClause" : "{0}"
        }]
    }


Thanks

Outcomes