Select to view content in your preferred language

eSearch 2.3 No Image In Popup Window

3088
19
05-02-2011 05:43 AM
JosVroegop
Deactivated User
I have been using eSearch for some time and it is a great widget!
In the lastest version 2.3 i have a problem with the popup window not showing a preview image. See the attached screenshot for more info. I also added my configuration.

I tried the flexviewer 2.3 and 2.3.1 sc with the same results. I must be doing something wrong, can anyone help me out?

    <layer>
     <definitionexpression></definitionexpression>
     <enableexport>true</enableexport>
     <name>GPS Camera</name>
       <url>http://gistest.railinfra.local/ArcGIS/rest/services/GPSCamera_Data/MapServer/0</url>
       <expressions>
       <expression alias="Objecttype" textsearchlabel="Zoek op Objecttype  [ Voorbeeld: ES-Las ]">upper(Memo_Value_1) LIKE upper('%[value]') OR upper(Memo_Value_1) LIKE upper('[value]%') OR upper(Memo_Value_1) = upper('[value]')</expression>
       <expression alias="Locatie" textsearchlabel="Zoek op Locatie  [ Voorbeeld: 001-RC ]">upper(Memo_Value_2) LIKE upper('%[value]') OR upper(Memo_Value_2) LIKE upper('[value]%') OR upper(Memo_Value_2) = upper('[value]')</expression>
       </expressions>
       <graphicalsearchlabel>Gebruik onderstaande tools om foto's te selecteren</graphicalsearchlabel>
 <spatialsearchlayer>true</spatialsearchlayer>
 <titlefield>Memo_Value_1</titlefield>
       <fields all="false">
 <field name="Memo_Value_1" alias="Objecttype" gridfield="true"/>
 <field name="Camera_DateTimeOrginal" alias="Datum" gridfield="true"/>
 <field name="Memo_Value_2" alias="Locatie" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_3" alias="Vraag 3" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_3" alias="Antwoord 3" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_4" alias="Vraag 4" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_4" alias="Antwoord 4" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_5" alias="Vraag 5" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_5" alias="Antwoord 5" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_6" alias="Vraag 6" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_6" alias="Antwoord 6" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_7" alias="Vraag 7" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_7" alias="Antwoord 7" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_8" alias="Vraag 8" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_8" alias="Antwoord 8" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_9" alias="Vraag 9" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_9" alias="Antwoord 9" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Name_10" alias="Vraag 10" gridfield="true" gridfieldonly="true"/>
         <field name="Memo_Value_10" alias="Antwoord 10" gridfield="true" gridfieldonly="true"/>
         <field name="Opmerking" gridfield="true" gridfieldonly="true"/>
         <field name="Hyperlink" hyperlinkgridfield="true"/>
       </fields>
       <linkfield>Hyperlink</linkfield>
        <icon></icon>
        <zoomscale>1000</zoomscale>
    </layer>
Tags (2)
0 Kudos
19 Replies
JosVroegop
Deactivated User
Robert,

The layer is based on a polyline featureclass and is part of a standard mapservice. All my data has the same spatial reference, WGS_1984_Web_Mercator_Auxiliary_Sphere.

The weird thing is that i don't have this issue with layers that are based on polygon or point featureclasses in the same mapservice, just the polyline ones.

When search results are displayed, the graphics layer shows all found features perfectly. After clicking on a single result, the viewer zooms in to the extent of that feature and the graphics layer also shows the feature. When clicking on another result though, it seems like the graphics layer is cleared and not redrawn.

If you want, i could send you a part of the polyline featureclass for testing.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jos,

     I have tested with a map service that has line and point and polygons, so I guess it would be best for you to send a part of the polyline featureclass for testing.
0 Kudos
JosVroegop
Deactivated User
I added some polylines in a .zip file for testing.

The issue should occur when you select all of the features with eSearch, then click on a couple of results to zoom around in the map.

Many thanks on helping me with this!!
0 Kudos
JosVroegop
Deactivated User
Hello Robert,

Any luck duplicating the issue with our data?

I also have a question about empty geometry. I use liniair referencing to create points and lines and use the eSearch widget to locate them in the flexviewer. Sometimes empty geometry is created and when these items are clicked in the eSearch results, the flexviewer crashes. Where would i need to add some error handling to the code to solve this?

Thanks for all your great widgets and code, it has been a massive help in creating our customised webviewer.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jos,

    I already have a part of the clickSearchResult function that tests for the existence of the geometry so I am not sure where the error would be occurring. If you can debug and step through the code and let me know where in the code it is erroring than I can likely give you a solution. I have not had time to test your data 😞
0 Kudos
JosVroegop
Deactivated User
Robert,

I added printscreens of the errors from the debugging session. Hope you can help me, thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jos,

   The screenshots are to low of resolution for me to make out the error lines. Can you post again and just have the error lines visible?
0 Kudos
JosVroegop
Deactivated User
Sure, sorry 🙂
0 Kudos
JosVroegop
Deactivated User
Or did you mean like this?

Error when clicked on result in list
ArgumentError: Error #2004: Een van de parameters is ongeldig.
 at flash.display::Graphics/drawRect()
 at com.esri.ags.layers::Layer/drawBitmap()
 at com.esri.ags.layers::Layer/updateDisplayList()
 at mx.core::UIComponent/validateDisplayList()
 at mx.managers::LayoutManager/validateDisplayList()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()


Error when clicked on result in grid
TypeError: Error #1009: Kan geen eigenschap of methode benaderen via een verwijzing naar een object dat null is.
 at widgets.eSearch::SearchWidgetFloatDG/clickRow()
 at widgets.eSearch::SearchWidgetFloatDG/__resultsGrid_itemClick()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.controls.listClasses::ListBase/mouseClickHandler()
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jos,

   Inside the createSearchResults function find the:

for each (var graphic:Graphic in featureSet.features)

and add this to the first line of that for loop and see if it helps.

if(graphic.geometry) continue;
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos