Select to view content in your preferred language

Info Window in Sample Flex Viewer 2.1 Question

1186
3
10-25-2010 01:41 PM
EmilyLaMunyon
Deactivated User
Hello,

I am using the Search widget in the Sample Flex Viewer 2.1, and would like to add more information/attributes to the info window that appears when a feature is found. Currently, it is only displaying one attribute. How would I go about this?

Thanks!
Tags (2)
0 Kudos
3 Replies
JoshTanner
Deactivated User
Edit the SearchWidget.xml file.

<configuration>
<layers>
<layer>
<name>Parcels</name>
<url>http://173.15.61.163/ArcGIS/rest/services/Website/MapServer/4</url>
<expression>macongis.SDE.Parcels.PIN = '[value]'</expression>
<textsearchlabel>Search by Parcel ID [ Example: 12-15-284-010 ]:</textsearchlabel>
<graphicalsearchlabel>Use one of the graphical search tools to select parcels</graphicalsearchlabel>
<titlefield>Parcel</titlefield>
<linkfield></linkfield>
<fields all="false">
<field name="macongis.SDE.Parcels.PIN" alias="PIN"/>
<field name="macongis.SDE.ParcelDataccWeb.PrimaryName" alias="Owner"/>
<field name="macongis.SDE.ParcelDataccWeb.SiteAddress" alias="Address"/>
</fields> </layer>
</layers>
<zoomscale>5000</zoomscale>
<info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>

The part in red is my fields that show up. You just need to add in the fields that you want to see.
0 Kudos
EmilyLaMunyon
Deactivated User
Thanks Josh. I have tried that and still no luck. Do I need to recompile the swf?
0 Kudos
EmilyLaMunyon
Deactivated User
Nevermind..figured it out, thanks!
0 Kudos