error #1010 - graphical search on esearch widget

910
5
Jump to solution
01-09-2013 11:06 AM
MayJeff
Occasional Contributor
I keep getting error #1010: A term is undefined and has no properties message when using graphical search on esearch widget.  No problem on text search at all and work ok on previous version 3.0x.  In order to able to use graphical search, I have to set spatialsearchlayer to true.  Do you know why?
See below for my xml file:
<layer>
         <token/>
         <useproxy>true</useproxy>
   <definitionexpression></definitionexpression>
   <enableexport>false</enableexport>
   <name>Subdivision</name>
   <url>http://webmap/ArcGIS/rest/services/Internet/MapServer/12</url>
   <expressions>
    <expression alias="Subdivision" textsearchlabel="Search Subdivision by">
     <values>
      <value prompt="[Example: Sunset]" isvaluerequired="false">Lower(SUB_NAME) LIKE ('%[value]%')</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Subdivision</graphicalsearchlabel>
   <spatialsearchlayer>false</spatialsearchlayer>
   <titlefield>Subdivision</titlefield>
   <fields all="false">
     <field name="SUB_NAME" alias="Subdivision Name" gridfield="true"/>
   </fields>
   <links/>
   <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
   <autoopendatagrid>false</autoopendatagrid>
   <queryattachments>false</queryattachments>
   <relates/>
   <symbology>
    <simplefillsymbol color="0x0000ff" alpha="0">
     <outline color="0x00ffff" alpha="0.8" width="2" />
    </simplefillsymbol>
   </symbology>
  </layer>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
May Jeff,

   I can not duplicate the issue you are reporting in the latest 3.1.2 version of the widget...

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
May Jeff,

   I can not duplicate the issue you are reporting in the latest 3.1.2 version of the widget...
0 Kudos
MagalyC_
Occasional Contributor
Hi Robert!

I have the same problem!
After clicking on the dategrid results, i have this error:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
 at widgets.eSearch::eSearchWidget/highlightDataGroupItemByOID()
 at widgets.eSearch::SearchWidgetFloatDG/onItemRollOver()
 at widgets.eSearch::SearchWidgetFloatDG/__resultsGrid_gridRollOver()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at spark.components::Grid/dispatchGridEvent()
 at spark.components::Grid/grid_mouseMoveHandler()


Ligne 4883 :
for (var i:Number = 0; i < searchResultAC.length; i++){


Thanks for help! :)c
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   Version 3.1.4 should take care of this.
0 Kudos
MagalyC_
Occasional Contributor
Oups I've forgotten to give you the version I use: 3.1.4!

I solved the problem with (line 3059):
if(configSpatialSearchLayers.length && configSpatialSearchLayers.symbology){


configSpatialSearchLayers.symbology doesn't exist if configSpatialSearchLayers.length == 0.
But i am not sure it's the best solution... (i do the same line 3027, 3043)
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Magaly,

   OK, I thought that you were hitting a different issue. Thanks, your fix is exactly what is need. It is hard for me to determine how some one might configure this widget now that it has so many configuration options. I always have at least one spatial serach layer on.
0 Kudos