<layer> <name>Parcels</name> <enableexport>true</enableexport> <url>http://hmapapp-v/ArcGIS/rest/services/Parcels_2010/MapServer/1</url> <expressions> <expression>AIN='[value]'</expression> <textsearchlabel>Search Parcel by AIN [ Example: 2004005006 ]"</textsearchlabel> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Parcel</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>AIN</titlefield> <fields all="false"> <field name="APN" alias="APN" gridfield="true" /> <field name="OWNER" alias="Owner's Name" gridfield="true" /> <field name="HOUSENUM" alias="House" gridfield="true" /> <field name="STR_NAME" alias="Street Name" gridfield="true" /> <field name="STR_TYPE" alias="Street Type" gridfield="true" /> <field name="CITY" alias="City" gridfield="true" /> <field name="ZIP" alias="ZIP Code" gridfield="true" /> <field name="TRA_1" alias="Tax Rate Area" gridfield="true" /> <field name="ZONING" alias="Zoning" gridfield="true" /> <field name="LBVAL" alias="Base Land Value" gridfield="true" currencyformat="$|2|,|."/> <field name="IBVAL" alias="Base Impr Value" gridfield="true" currencyformat="$|2|,|."/> <field name="USECODE_1" alias="Use Code" gridfield="true" /> <field name="TYPE" alias="Use Type" gridfield="true" /> <field name="PARCELID" alias="Get Map Page" hyperlinkgridfield="true" hyperlinkaliastext="Click here for document" gridfield="true" /> </fields> <linkfield>PARCELID</linkfield> <icon isfield="true"></icon> <zoomscale>5000</zoomscale> </layer>
You need to look at the example SearchWidget.xml file and read the Enhanced Search Widget XML Configuration.pdf...
Meghan,
It is in the Zip file I just checked the download...
http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
Intranet should not matter, but the hyperlink still needs to be a valid URL
Emilio,
Untested...
Find this code in the SearchWidget.mxml, createSearchResults function:if (fieldName.toUpperCase() == queryLinkField.toUpperCase()) { //concatenate link = queryLinkPre + value + queryLinkSuffix; }
Replace with:if (fieldName.toUpperCase() == queryLinkField.toUpperCase()) { if(fieldName.toUpperCase() == "PARCELID"){ var url:String = "http://maps.assessor.lacounty.gov/mapping/viewAssessorMapPDF.asp?val="; var AINlink:String = value; var dashes:RegExp = /-/g; AINlink = AINlink.replace(dashes, ""); var spaces:RegExp = / /g; AINlink = AINlink.replace(spaces, ""); AINlink = AINlink.substr(0,4) + "-" + AINlink.substr(4,3); url = url + AINlink; link - url; }else{ //concatenate link = queryLinkPre + value + queryLinkSuffix; } }