Select to view content in your preferred language

Search Widget  FV2.5

857
2
Jump to solution
01-19-2012 09:55 AM
GrantWills
Deactivated User
I was wondering if anyone could give me a sample code for setting up a link field within the Search widget for FV 2.5 I have it working well in FV 2.3 but I am in the process of migrating to 2.5 and am having some problems getting it to operate as it did for 2.3 My mind might be a little fryed at this point so any help from somone else might get me straightened out. Thanks

[/HR]

    <layers>
        <layer>
            <name>Find by House Number</name>
             <url>http://mapping.huntingdoncounty.net/ArcGIS/rest/services/HuCoInternalFlex/MapServer/15</url>
            <expression>ADDRESS like '[value]%'</expression>
            <textsearchlabel>Enter House #  [Example: 123]</textsearchlabel>
            <titlefield>HSENUMBER</titlefield>
            <linkfield>WebPhoto</linkfield>
            <fields all="false">
                <field name="ADDRESS" alias="Full Address"/>
  <field name="MUNI" alias="Municipality"/>
     </fields>
        </layer>

[/HR]

Above is the code I am using, which is also the same code I am using in 2.3 that works.

Thanks
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Grant,

   Sure this is what you need:

<?xml version="1.0" ?> <configuration label="Louisville Parcels and Police">     <initialview>text</initialview>     <layers>         <layer>             <name>Find by House Number</name>             <url>http://mapping.huntingdoncounty.net/ArcGIS/rest/services/HuCoInternalFlex/MapServer/15             </url>             <expression>ADDRESS like '[value]%'</expression>             <textsearchlabel>Enter House # [Example: 123]</textsearchlabel>             <titlefield>HSENUMBER</titlefield>             <linkfield>WebPhoto</linkfield>             <fields all="false">                 <field name="ADDRESS" alias="Full Address" />                 <field name="MUNI" alias="Municipality" />                 <field name="WebPhoto" alias="Photo" />             </fields>         </layer>     </layers>     <zoomscale>10000</zoomscale> </configuration>  <!--     See Search widget tag reference at     http://links.esri.com/searchwidget -->


Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Grant,

   Sure this is what you need:

<?xml version="1.0" ?> <configuration label="Louisville Parcels and Police">     <initialview>text</initialview>     <layers>         <layer>             <name>Find by House Number</name>             <url>http://mapping.huntingdoncounty.net/ArcGIS/rest/services/HuCoInternalFlex/MapServer/15             </url>             <expression>ADDRESS like '[value]%'</expression>             <textsearchlabel>Enter House # [Example: 123]</textsearchlabel>             <titlefield>HSENUMBER</titlefield>             <linkfield>WebPhoto</linkfield>             <fields all="false">                 <field name="ADDRESS" alias="Full Address" />                 <field name="MUNI" alias="Municipality" />                 <field name="WebPhoto" alias="Photo" />             </fields>         </layer>     </layers>     <zoomscale>10000</zoomscale> </configuration>  <!--     See Search widget tag reference at     http://links.esri.com/searchwidget -->


Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:
0 Kudos
GrantWills
Deactivated User
Well that was easy. Thanks for showing me my error. I was quite sure it was something like that, that I was missing.
0 Kudos