Select to view content in your preferred language

flex query time

584
3
09-30-2010 01:21 AM
yanli
by
Emerging Contributor
how do i difinite the "query.where"   according  to  time type?


  var  query:Query = new Query();
                   queryparam.geometry= myextent;
                   queryparam.outFields = ["SHAPE.AREA","time"];
                //for example the time is "2010/9/20"........
                queryparam.where = "time>2010/9/20";  //here is error...


how do write the "  time conditions "? if i want query the geomety the time later to "2010/9/20"
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
JimWelsh
Deactivated User
Robert,

Can you help me with where and how to define the timeextent?  I've looked at the page you linked and attempted a few different ways, but no joy.

I have the timeslider working, but I would really rather set the timeextent via hardcode (for now).

I was hoping someone had a working example of the timeextent, without using a slider.

Thank you (or anyone else) in advance.
0 Kudos
DasaPaddock
Esri Regular Contributor
You can create a TimeExtent with a start and end date and then set Query.timeExtent:
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/supportClasses/Query.html#timeExtent
0 Kudos