Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Individual layer symbology problem with eSearch widget 3.010

$
0
0
Hey everyone.

I know I must have a simple syntax error, but I just can't figure it out. I am running Robert Scheitlin's excellent eSearch widget on a beta site, here. The widget is labeled "Search HPO Data" and is the first icon - the red arrow - in the toolbar.

The widget is working fine, except the individual layer symbology is not displaying. I have followed Robert's XML Configuration PDF and thought that I placed the <symbols> code in the correct places for this to work.

My file has another <symbols> code at the end, which makes the red arrow appear for all search types. If I comment this out, I get a syntax error message: "A problem occurred while parsing the configuration file widgets/eSearch/eSearchWidget_AllLayers.xml
Error #1085"

If you look at the second tool in the toolbar ("Searches"), you'll see the icons that should display. The image files are all in the correct folder.

What did I get wrong?
--ASE.


Code:

<?xml version="1.0" ?>
<!-- See Enhanced Search Widget XML Configuration.pdf for detailed explanation -->
<configuration>
        <layers>
               
                <layer>
                        <definitionexpression></definitionexpression>
                        <enableexport>true</enableexport>
                        <name>All designated resources</name>
                        <url>http://gis.ncdcr.gov/ArcGIS/rest/services/NC_NR-SL-DOE_Designations/MapServer/0</url>
                        <expressions>
                                <expression alias="ALLsearch" textsearchlabel="Search NR, SL, and DOE resources using multiple attributes"  isvaluerequired="false">
                                        <values>
                                                <value prompt="Below, enter site name.  Example: Church"  isvaluerequired="false">SITE_NAME LIKE '%[value]%'</value>
                                                <value prompt="Below, enter site ID.  Example: DH0001"  isvaluerequired="false" operator="AND">SITE_ID LIKE '%[value]%'</value>
                                                <value prompt="Below, enter year designated.  Example: 2001"  isvaluerequired="false" operator="AND">YearListed LIKE '%[value]%'</value>
                                                <value prompt="Pick county from the list below."  userlist="Alamance, Alexander, Alleghany, Anson, Ashe, Avery, Beaufort, Bertie, Bladen, Brunswick, Buncombe, Burke, Cabarrus, Caldwell, Camden, Carteret, Caswell, Catawba, Chatham, Cherokee, Chowan, Clay, Cleveland, Columbus, Craven, Cumberland, Currituck, Dare, Davidson, Davie, Duplin, Durham, Edgecombe, Forsyth, Franklin, Gaston, Gates, Graham, Granville, Greene, Guilford, Halifax, Harnett, Haywood, Henderson, Hertford, Hoke, Hyde, Iredell, Jackson, Johnston, Jones, Lee, Lenoir, Lincoln, Macon, Madison, Martin, McDowell, Mecklenburg, Mitchell, Montgomery, Moore, Nash, New Hanover, Northampton, Onslow, Orange, Pamlico, Pasquotank, Pender, Perquimans, Person, Pitt, Polk, Randolph, Richmond, Robeson, Rockingham, Rowan, Rutherford, Sampson, Scotland, Stanly, Stokes, Surry, Swain, Transylvania, Tyrrell, Union, Vance, Wake, Warren, Washington, Watauga, Wayne, Wilkes, Wilson, Yadkin, Yancey"  isvaluerequired="false" operator="AND">County = '[value]'</value>
                                                <value prompt="Below, enter descriptive term.  Example: Queen Anne, or 1889"  isvaluerequired="false" operator="AND">DESCRIPTIO LIKE '%[value]%'</value>
                                                <value prompt="Below, enter note.  Example: moved"  isvaluerequired="false" operator="AND">NOTES LIKE '%[value]%'</value>
                                                <value prompt="Below, enter quad name.  Example: South"  isvaluerequired="false" operator="AND">QUAD_NAME LIKE '%[value]%'</value>
                                                <value prompt="Pick status" userlist="NRD, NRHD, SLDOE"  isvaluerequired="false" operator="AND">STATUS = '[value]'</value>
                                        </values>
                                </expression>
                        </expressions>
                        <graphicalsearchlabel>Use one of the graphical search tools to select a Parcel</graphicalsearchlabel>
                        <spatialsearchlayer>true</spatialsearchlayer>
                        <titlefield>SITE_NAME</titlefield>
                        <fields all="false">
                                <field name="SITE_NAME" alias="Site Name" gridfield="true" />
                                <field name="SITE_ID" alias="Site ID" gridfield="true" />
                                <field name="County" alias="County" gridfield="true" />
                                <field name="DESCRIPTIO" alias="Description" gridfield="true" />
                                <field name="YearListed" alias="Year Listed" gridfield="true" />
                                <field name="YearSL" alias="Year SL" gridfield="true" />
                                <field name="YearDOE" alias="Year DOE" gridfield="true" />
                                <field name="NOTES" alias="Notes" gridfield="true" />
                                <field name="Status" alias="Status" gridfield="false" />
                                <field name="QUAD_NAME" alias="Quad Name" gridfield="true" />
                                <!-- field name="LinkPath" gridfield="true" / -->
                                <field name="LocalLink" alias="Local Info" hyperlinkgridfield="true" visible="false" />
                                        <!-- hyperlinkaliastext="Click to view local info" -->
                        </fields>
                        <links>
                                <link alias="View the NR nomination form">
                                        <![CDATA[http://www.hpo.ncdcr.gov/nr/{SITE_ID}.pdf]]>
                                        <icon><![CDATA[assets/images/i_pdf2.png]]></icon>
                                </link>
                                <link alias="View local information">
                                        <![CDATA[{LocalLink}]]>
                                        <icon><![CDATA[assets/images/w_link.png]]></icon>
                                </link>
                        </links>
                        <zoomscale usegeometry="true" zoompercent="1.6" />
                        <autoopendatagrid>true</autoopendatagrid>
                        <relates />
                        <queryattachments>false</queryattachments>

                        <symbols>
                                <simplefillsymbol color="0xff0000" alpha="0.5">
                                        <outline color="0xff0000" alpha="0.8" width="2"/>
                                </simplefillsymbol>
                                <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol
                                        defined for your point results NOT BOTH. picturemarkersymbol will override simplemarkersymbol
                                        if you do not have it commented out. -->
                                <!-- <simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5" xoffset="0" yoffset="0" angle="0">
                                        <outline style="solid" color="0x000000" alpha="1" width="1"/>
                                </simplemarkersymbol> -->
                               
                                <picturemarkersymbol url="assets/images/ALLsearch-45.png" height="30" width="30" xoffset="-20" yoffset="20" />
                               
                                <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>
                        </symbols>
                </layer>



                <!-- Additional layers in the file following the same order. 
                    I've edited them out to fit the 10,000 character limit to ArcGIS forum posts -->


               

        </layers>


                        <symbols>
                                <simplefillsymbol color="0xff0000" alpha="0.5">
                                        <outline color="0xff0000" alpha="0.8" width="2"/>
                                </simplefillsymbol>
                                <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol
                                        defined for your point results NOT BOTH. picturemarkersymbol will override simplemarkersymbol
                                        if you do not have it commented out. -->
                                <!-- <simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5" xoffset="0" yoffset="0" angle="0">
                                        <outline style="solid" color="0x000000" alpha="1" width="1"/>
                                </simplemarkersymbol>-->
                               
                                <picturemarkersymbol url="assets/images/SearchContainer-45.png" height="30" width="30" xoffset="-20" yoffset="20" />
                               
                                <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>
                        </symbols>


</configuration>


Viewing all articles
Browse latest Browse all 2097

Trending Articles