Select to view content in your preferred language

Link Issues in eSearch Widget

937
4
Jump to solution
02-15-2012 06:00 AM
NicholasBarger
Frequent Contributor
I've read the multiple posts by others experiencing problems with getting Links to appear in the eSearch Widget and I really didn't see any answers other that someone did not compile the XMXL in their project.

At this point I am dealing with the compiled version.  I downloaded Roberts eSearch widget, which works very well, and I have all of my searches working correctly.  My problem is with the links.  I have placed the links in my XML but I cannot get anything to appear in the results window or in the popup.

Any ideas???

<layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>Parcels</name>
   <url>http://gissites.co.centre.pa.us/ArcGIS/rest/services/Webia/MapServer/9
   </url>
   <expressions>
    <expression alias="Parcel ID" textsearchlabel="Search by Parcel ID  [ Example: 01-001-,001-,0000- or 01-001A,001A,0000- or 01-]:">upper (TAXIDNUM) LIKE upper('%[value]%')</expression>
   </expressions>

   <expressions>
    <expression alias="Owner Name" textsearchlabel="Search by Owner Name  [ Example: Doe, John or Doe, J]:">upper(NAME) LIKE upper('%[value]%')</expression>
   </expressions>

   <expressions>
    <expression alias="Municipality" textsearchlabel="Search by Municipality  [ Example: Bellefonte or Spring Twp]:">upper(TOWNSHIP) LIKE upper ('%[value]%')</expression>
   </expressions>  

   <graphicalsearchlabel>Use one of the graphical search tools to select
    parcels</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>TAXIDNUM</titlefield>
   <fields all="false">
    <field name="TAXIDNUM" alias="Tax ID Number" gridfield="true"/>
    <field name="NAME" alias="Owner Name" gridfield="true"/>
    <field name="CAMA_ACRES" alias="Deeded Acreage" gridfield="true"/>
    <field name="TOWNSHIP" alias="Municipality" gridfield="true"/>
    <field name="LOCATION" alias="Site Address" gridfield="true"/>
    <field name="ASSVAL" alias="Assessed Value" gridfield="true"/>
    <field name="FMV" alias="Fair Market Value" gridfield="true"/>
    <field name="CAREOF" alias="Care Of" gridfield="true"/>
    <field name="MAIL" alias="Mailing Address" gridfield="true"/>
    <field name="POSTOFFICE" alias="Post Office" gridfield="true"/>
    <field name="ZIP" alias="Zip Code" gridfield="true"/>
    <field name="TYPE" alias="Property Type" gridfield="true"/>
    <field name="PHOTOID" alias="Show Image" hyperlinkgridfield="true"hyperlinkaliastext="Get Image"/>
   </fields> 
  
   <links>
    <link includeinresults="true" field="TAXIDNUM" alias="WebIA Parcel Info">
    <linkprefix>http://webia.co.centre.pa.us/ccg/cam/camrsp2.asp?parcel=</linkprefix>
    <linksuffix></linksuffix>
    <iconfield></iconfield>
    <iconprefix></iconprefix>
    <iconsuffix>assets/images/i_lego.png</iconsuffix>
    </link>
   </links>
  
   <icon isfield="true"></icon>
   <zoomscale usegeometry="true">40000</zoomscale>
  </layer>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
NicholasBarger
Frequent Contributor
I figured out the problem.

It appears that I had never copied over the new swf files for the updated esearch widget.  I just did this and it works fine now.

Thanks for the help Robert.

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Nick,


   I just took a quick glance and sujest that you change your
<titlefield>TAXIDNUM</titlefield>
don't use the TAXIDNUM as the titlefield and also try to use it as a link.
0 Kudos
NicholasBarger
Frequent Contributor
That didn't work.  I changed the Title field to the owner name.  THis displayed the correct information but did notdisplay the link.

[ATTACH=CONFIG]11988[/ATTACH]
0 Kudos
NicholasBarger
Frequent Contributor
I figured out the problem.

It appears that I had never copied over the new swf files for the updated esearch widget.  I just did this and it works fine now.

Thanks for the help Robert.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nick,

  Glad you got it. You need to look at your SearchWidget.xml in a web browser and it will tell you that you have a syntax issue or two (needing whitespace between attributes). You also need to put the new link syntax in your other layers as well and delete the old link and icon elements.
0 Kudos