Select to view content in your preferred language

Search widget Zoom To Issue

713
1
Jump to solution
06-27-2014 06:29 AM
TylerDunn2
Regular Contributor
So I'm having an issue with the Zoom To function of the Search widget. In my map, I have 3 searches, and 2 of them allow me to zoom to my results. The 3rd doesn't. I cannot seem to find out where the issue is in the code. The service is dynamic, it has a FID, so I really don't know where else to look. Here's the code for the Search Widget:

<?xml version="1.0" ?>
<configuration>
<initialview>text</initialview>
    <layers>
        <layer>   

<name>ADCO PIN</name>

<url>http://ap-gisweb:6080/arcgis/rest/services/ADCOParcels/MapServer/0</url>
            <expression>PARCELNB like '%[value]%'</expression>
            <textsearchlabel>Search ADCO PINs [ Example: 0157107000022 ]</textsearchlabel>
            <titlefield>PARCELNB</titlefield>
            <linkfield></linkfield>
            <fields all="false">
      <field name="SITE_ADDRE" alias= "Property Address"/>
            <field name="OWNER" alias= "Property Owner"/>
            <field name="ADDRESS" alias= "Owner Address"/>
     <field name="CITY" alias= "Owner City"/>
     <field name="STATE" alias= "Owner State"/>
     <field name="ZIPCODE" alias= "Owner Zipcode"/>
    </fields>
</layer>
      <layer>     


<name>ADCO Owner</name>

<url>http://ap-gisweb:6080/arcgis/rest/services/ADCOParcels/MapServer/0</url>
            <expression>UPPER(OWNER) like UPPER('%[value]%')</expression>
            <textsearchlabel>Search ADCO OWNERS [ Example: Stonehocker Farms LLC ]</textsearchlabel>
            <titlefield>OWNER</titlefield>
            <linkfield></linkfield>
            <fields all="false">
     <field name="PARCELNB" alias= "Parcel ID"/>
      <field name="SITE_ADDRE" alias= "Property Address"/>
            <field name="ADDRESS" alias= "Owner Address"/>
     <field name="CITY" alias= "Owner City"/>
     <field name="STATE" alias= "Owner State"/>
     <field name="ZIPCODE" alias= "Owner Zipcode"/>
    </fields>
</layer>
<layer>     


<name>ADCO Address</name>

<url>http://ap-gisweb:6080/arcgis/rest/services/ADCOParcels/MapServer/0</url>
            <expression>UPPER(SITE_ADDRE) like UPPER('%[value]%')</expression>
            <textsearchlabel>Search ADCO ADDRESS [ Example: 11151 Colorado Blvd ]</textsearchlabel>
            <titlefield>SITE_ADDRE</titlefield>
            <linkfield></linkfield>
            <fields all="false">
     <field name="PARCELNB" alias= "Parcel ID"/>
            <field name="ADDRESS" alias= "Owner Address"/>
     <field name="CITY" alias= "Owner City"/>
     <field name="STATE" alias= "Owner State"/>
     <field name="ZIPCODE" alias= "Owner Zipcode"/>
    </fields>
</layer>
</layers>

    <zoomscale>10000</zoomscale>
<info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>


I'll post what's in my config file, but it's pretty standard:
<widget label="ADCO Property Search" right="10" top="550"
                icon="assets/images/adcoImg3.png"
                config="widgets/Search/SearchWidget_ADCO_DATA.xml"
                url="widgets/Search/SearchWidget.swf"/>


Anyone have any suggestions? Need more info? Anything would be awesome

Thanks
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
TylerDunn2
Regular Contributor
Figured out my own issue. The {shape} field was hidden in the .mxd when being published. If anyone has this issue, hopefully that's the answer

View solution in original post

0 Kudos
1 Reply
TylerDunn2
Regular Contributor
Figured out my own issue. The {shape} field was hidden in the .mxd when being published. If anyone has this issue, hopefully that's the answer
0 Kudos