Enhanced Search Widget 2.4.0.2 for FlexViewer 2.4 not showing  photo

897
8
08-06-2011 10:35 PM
AhmedGholami
New Contributor
Dear all,

I have made changes to  Enhanced Search Widget so that it can search on my landmarks data ,then show the attributes and photo in the Info Popup window.

The issue is that the photo dose not appear in Info Popup window. It shows only blank icon.
Attached are screen capture of the incident have pasted down contents of SearchWidget.xml


<?xml version="1.0" ?>
<!--
See Enhanced Search Widget XML Configuration.pdf for deatiled explanation
-->

<configuration>
<layers>
 
 
  <layer>
   <definitionexpression></definitionexpression>
   <enableexport></enableexport>
   <name>Landmarks Symbols</name>
   <url>http://2nd-5201/ArcGIS/rest/services/Landmarks/MapServer/0</url>
   <expressions>
    <expression>upper(NAME) like upper('%[value]%') or lower(NAME) like lower('%[value]%')</expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Traffic Cameras</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>NAME</titlefield>
   <fields all="false">
    <field name="NAME" alias="NAME" gridfield="true"/>
                                <field name="ANAME" alias="ANAME" gridfield="true" gridfieldonly="true"/>
    <field name="SUBCATEGOR" alias="SUBCATEGOR" gridfield="true" gridfieldonly="true"/>
                                <field name="PHOTO_URL" alias="Show Image" hyperlinkgridfield="true" hyperlinkaliastext="Get Traffic Image"/>
   </fields>
   <linkfield>PHOTO_URL</linkfield>
   <icon isfield="false">assets/images/i_camera.png</icon>
   <zoomscale>2000</zoomscale>
  </layer>
 
  <!--<layer>
   <definitionexpression></definitionexpression>
   <name>Owner Parcels</name>
   <enableexport>true</enableexport>
   <url>http://gislap134/ArcGIS/rest/services/Join_Test/MapServer/0</url>
   <expressions>
    <expression alias="Parcel PPIN" textsearchlabel="Search Parcel by PPIN... [ Example: 1234 ]">Upper(parcels2.NAME) LIKE Upper('[value]%')</expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Parcel</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>Objectid</titlefield>
   <fields all="false">
    <field name="parcels2.PPIN" gridfield="true" />
    <field name="parcels2.NAME" gridfield="true" />
    <field name="parcels2.STREET_ADDRESS" gridfield="true" />
    <field name="parcels2.USE_CODE" gridfield="true" />
    <field name="parcels2.CALC_ACRES" gridfield="true" />
    <field name="parcels2.EXEMPTION_CODE1" gridfield="true" />
    <field name="parcels2.ADDRESS_1" gridfield="true" gridfieldonly="true" />
    <field name="parcels2.ADDRESS_3" gridfield="true" gridfieldonly="true" />
    <field name="parcels2.PRIOR_TAX_YEAR" gridfield="true" />
    <field name="parcels2.SALE_DATE" gridfield="true" dateformat="MM/DD/YYYY"/>
    <field name="parcels2.LAST_DEED_BOOK" gridfield="true"/>
    <field name="parcels2.LAST_DEED_PAGE" gridfield="true"/>
    <field name="parcels2.ZIPCODE_1" gridfield="true" gridfieldonly="true"/>
    <field name="parcels2.NEIGHBORHOOD" gridfield="true" gridfieldonly="true"/>
    <field name="parcels2.SUBDIVISION" gridfield="true"/>
    <field name="parcels2.SALE_PRICE" gridfield="true" currencyformat="$|2|,|." sum="true" sumlabel="Sales Price: "/>
    <field name="parcels2.TOTAL_TRUE" gridfield="true" currencyformat="$|2|,|." />
    <field name="parcels2.LAND_PRICE" gridfield="true" currencyformat="$|2|,|." />
    <field name="parcels2.IMPR_PRICE" gridfield="true" currencyformat="$|2|,|." />
    <field name="parcels2.ADJ_PRICE" gridfield="true" currencyformat="$|2|,|." />
    <field name="parcels2.OVER_COND" alias="PAPA Website Link" hyperlinkgridfield="true" hyperlinkaliastext="Click here for document" linkprefix="http://someWebSite/aspx/web/details.aspx?p_entity=" linksuffix=""/>
    <field name="ADJUSTMENT PRICE" gridfield="true"/>
   </fields>
   <linkfield linkprefix="http://someWebSite/aspx/web/details.aspx?p_entity=" linksuffix="">parcels2.OVER_COND</linkfield>
   <icon isfield="true"></icon>
   <zoomscale>5000</zoomscale>
  </layer>-->
</layers>
<spatialrelationships>
  <!-- possible spatial relationships  
   esriSpatialRelIntersects | esriSpatialRelContains | esriSpatialRelCrosses | esriSpatialRelEnvelopeIntersects | esriSpatialRelIndexIntersects | esriSpatialRelOverlaps | esriSpatialRelTouches | esriSpatialRelWithin
  
   currently unavailable:
    esriSpatialRelRelation
  -->
  <spatialrelationship>
   <name>esriSpatialRelContains</name>
   <label>entirely contained in</label>
  </spatialrelationship>
  <spatialrelationship>
   <name>esriSpatialRelIntersects</name>
   <label>interssected by</label>
  </spatialrelationship>
  <spatialrelationship>
   <name>esriSpatialRelEnvelopeIntersects</name>
   <label>intersected by envelop of</label>
  </spatialrelationship>
</spatialrelationships>
<bufferunits>
  <bufferunit>
   <name>UNIT_FOOT</name>
   <label>Feet</label>
  </bufferunit>
  <bufferunit>
   <name>UNIT_STATUTE_MILE</name>
   <label>Miles</label>
  </bufferunit>
  <bufferunit>
   <name>UNIT_METER</name>
   <label>Meters</label>
  </bufferunit> 
  <bufferunit>
   <name>UNIT_KILOMETER</name>
   <label>Kilometers</label>
  </bufferunit>
</bufferunits>
<tolerance>6</tolerance>
<spatialReference>102003</spatialReference>
<zoomscale>2400</zoomscale>
<geometryservice>http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>
<csvSeparator>,</csvSeparator>
<toleranceforpointgraphicalselection>3</toleranceforpointgraphicalselection><!-- value is in screen pixels -->
<disablebuttons></disablebuttons><!--possible values one or more not all three search types comma sepearted text,graphic,spatial,grid -->
<defaultselectionoption>textInput</defaultselectionoption><!--possible values only one graphicalInput or textInput or spatialInput -->
<enabledrawgraphicbutton>true</enabledrawgraphicbutton>
<enablebuffergraphicbutton>true</enablebuffergraphicbutton>
<selectedgraphicaltool></selectedgraphicaltool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
<multipartgraphicsearch>false</multipartgraphicsearch>
<floatorfixed>float</floatorfixed><!-- possible values are fixed and float -->
<labels>
  <addtolerance>Add search tolerance to point selection</addtolerance>
  <existingdrawgraphicslabel>Use Existing eDraw Widget Graphics</existingdrawgraphicslabel>
  <existingbuffergraphicslabel>Use Existing Point Buffer Widget Graphics</existingbuffergraphicslabel>
  <graphicalsearchlabel>Graphical Search</graphicalsearchlabel>
  <textsearchlabel>Text Search</textsearchlabel>
  <resultslabel>Results</resultslabel>
  <layerlabel>Search Layer:</layerlabel>
  <layerfieldlabel>Search Layer Field:</layerfieldlabel>
  <nolayerlabel>No search layer defined.</nolayerlabel>
  <submitlabel>Search</submitlabel>
  <pointlabel>Select by Point</pointlabel>
  <linelabel>Select by Line</linelabel>
  <rectanglelabel>Select by Rectangle</rectanglelabel>
  <polygonlabel>Select by Polygon</polygonlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
  <selectionlabel>Features Selected:</selectionlabel>
  <gridresultsLabel>Show Results in Grid</gridresultsLabel>
  <csvdefaultname>Selected Records</csvdefaultname>
  <exportbtnlabel>Export...</exportbtnlabel>
  <export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
  <export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
  <bufferLabel>apply a search distance:</bufferLabel>
  <spatialsearchLabel>Spatial search</spatialsearchLabel>
  <applybufferlabel>Apply buffer</applybufferlabel>
  <searchlayerlabel>Search entities of:</searchlayerlabel>
  <enablemultipartsearch>enable multi-part graphics</enablemultipartsearch>
  <zoomalllabel>Zoom</zoomalllabel>
  <zoomalltip>Zoom to all results</zoomalltip>
  <bufferalpha>Adjust buffer alpha</bufferalpha>
  <buffercolor>Select buffer color</buffercolor>
</labels>
<symbols>
     <simplefillsymbol color="0xff0000" alpha="0.5">
      <outline color="0xff0000" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol
          defined for your point results NOT BOTH. picturemarkersymbol will override simplemarkersymbol
          if you do not have it commented out. -->
     <!--<simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0x000000" alpha="1" width="1"/>
     </simplemarkersymbol>-->
     <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>
    </symbols>
</configuration>
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Ahmed,

  Can you post an example of the content that is in one of the features PHOTO_URL field?
0 Kudos
AhmedGholami
New Contributor
Robert
An example of a feature attribute
Photo_url: http://2nd_5201/qland/pictures/0302134.jpg
Moreover.this photo url shows up in the browser window when
clicking the hyperlink Icon in search widget
Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ahmed,

   What is the pixel height and width of the image?
0 Kudos
AhmedGholami
New Contributor
Robert

The image specifications are :
72x72 dots per inch
Width  220 Hieght 165
Size 37.4 KB

Regards
0 Kudos
AhmedGholami
New Contributor
Robert
I am able to show this the Url Photo in the Identify Widget 2.4.0.1 for FlexViewer 2.4 while it's not working for Enhanced Search Widget 2.4.0.2 for FlexViewer 2.4
Attached is a screen capture of the Identify Widget result
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ahmed,

   I have not seen this issue before so it has to be something simple I am missing. Can you post your IdentifyWidget.xml?
0 Kudos
AhmedGholami
New Contributor
Robert.
I have changed parameters paased through these sub tags under  identify layer tag
Name : landmarks symbols
Titlefield : name
Fields : aname.photo_url
Linkfield : photo_url
i will post identifywidget.xml tomorrow once i will be at office
Thanks allotted for your support
0 Kudos
AhmedGholami
New Contributor
Robert
Find below identify.xml file content for your review.
Sorry for any inconveinience
<?xml version="1.0" ?>
<configuration>
<betareturngeometryfix>false</betareturngeometryfix>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>false</keepidentifyactive>
<returngeometryforzoom>true</returngeometryforzoom>
<autoactivatedtool></autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
<labels>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify by Point</pointlabel>
  <linelabel>Identify by Polyline</linelabel>
  <rectlabel>Identify by Rectangle</rectlabel>
  <polylabel>Identify by Polygon</polylabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
</labels>
<useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
</useproxy>
<layers onlythese="false">
 

  <layer>
   <name>landmarks symbols</name>
   <fields>name,aname,photo_url</fields>
   <linkfield>photo_url</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix>http://gis.calhouncounty.org/FlexViewer2.4/assets/images/i_camera.png</iconsuffix>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <!--<layer>
   <name>Weather Observations</name>
   <fields>Icon_used,URL,Type,OBJECTID</fields>
   <linkfield>URL</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield>Icon_used</iconfield>
   <iconprefix>http://gislap134/FlexViewer2.4/assets/images/i_</iconprefix>
   <iconsuffix>.png</iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>-->
</layers>
<symbols>
     <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
      <outline color="0x448ccb" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
     </simplemarkersymbol>
     <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>
0 Kudos