Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

138275
767
10-25-2010 02:13 PM
RobertScheitlin__GISP
MVP Emeritus
All Here is my next widget in the FlexViewer 2.1 series

Special thanks to Erwan Caradec for contributing to this code.

The Enhanced Search Widget extends the standard search widget with a floating data grid and a new spatial query w/buffering.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
Tags (2)
0 Kudos
767 Replies
StuartBlumberg
Emerging Contributor
Thanks Robert, I found the Help Doc.
0 Kudos
StuartBlumberg
Emerging Contributor
Robert,

I had this working, stepped away from my desk, and now I can't get it to find dates again!  Here is my expression:
<expression alias="DATE" textsearchlabel="Search Citations by Date" field="DATE" usedomain="true">datefield = date 'yyyy-mm-dd'</expression>

What am I doing wrong?  Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Stuart,


   Try:

<expression alias="DATE" textsearchlabel="Search Citations by Date" field="DATE" usedomain="false">DATE = date '[value]'</expression>
0 Kudos
StuartBlumberg
Emerging Contributor
That worked, thanks.  Why doesn't it work using the sample from the Help Doc?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Stuart,

   Because [value] is what gets replaced with what the use types.
0 Kudos
StuartBlumberg
Emerging Contributor
Robert,

I just noticed this morning that when I enter a date it returns the records of the previous day.  For example if I type 3/15/2011 it returns all the citations for 3/14/2011.  Am I still missing something?  Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Stuart,

   Try adding a time to the query also:

<expression alias="DATE" textsearchlabel="Search Citations by Date" field="DATE" usedomain="false">DATE = date '[value] 12:14:25'</expression>
0 Kudos
StuartBlumberg
Emerging Contributor
I added the time to the expression, however the query returns zero results now.  Without the time in the expression, it seems to want to roll the date back by one day, I tried entering 3/1/2011, it returns all the incidents from 3/1 however it displays the date in the results window as 2/28 (I dont have any incidents prior to 3/1).  Strange.
0 Kudos
StuartBlumberg
Emerging Contributor
Robert,

I also noticed this behavior when I use the graphical search tool.  When I select an incident from 4/1/2011, the info window displays the it as 3/31/2011.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Stuart,

    Some work on your end... but can you test the date with the standard ESRI search widget and see if it has the same behavior?
0 Kudos