Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

QueryCommand

RSS
Modified on Wednesday, 21 August 2013 02:12 PM by 156.75.200.241 Categorized as Commands, Query
FDOT.GIS.Client.Components.Commands.QueryCommand allows you to perform queries on mapServices. It returns a QueryResult object.


CommandVerb

"query"

Parameters

NameTypeDescription
ClientDataobjectAllows data to be sent along with the query for use on the client.
OptionsQueryParametersThe actual parameters being passed into query.

Code Sample


FDOT.Map.executeCommand('query',
    {"ClientData":
    {
        "Key":"FOO",
        "Title": "Test query",
        "Id":1,
        "Caption":"This is the table's caption."
    },
    "Options":
    {
        "FeatureType":{"Id":"gev-dynamic|1"},
        "QueryCriteria":
        {
            "Attribute": { "Name":"CONTYDOT" },
            "Value":"26",
            "ComparisonType":0
        },
        "SecondaryCriteria":
        [
            {   
                "Attribute": { "Name":"LGHTCOND" },
                "Value":"01",
                "ComparisonType":0,
                "Operator":0
            },
            {
                "Attribute": { "Name":"WEATCOND" },
                "Value":"01",
                "ComparisonType":0,
                "Operator":0
            }
        ],
        "GeometryCriteria":
        {
            "Geometry":
                    {
                        "Xmin":-9191487.6328293085,
                        "Xmax":-9146480.03070931,
                        "Ymin":3423668.6900953464,
                        "Ymax":3484832.8673353465
                    }
        }
    }},
            function(a) {
                var queryResult = a.Result;
//Do Something!!!!!
            });



See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.