Select to view content in your preferred language

Error 1010 - Enhanced Search Widget

808
2
Jump to solution
03-15-2012 11:46 AM
AshleyPeters
Frequent Contributor
While adding in layers to the graphical search option, my search widget began throwing error 1010 - term undefined and has no properties. I used a file I had previously created and tested after I added each layer. Once I added the second layer, I received the 1010 error.

I assume I've missed something simple, but I just don't see it.

I can post all of the code if needed, but here's the portion of the .xml where I began receiving the error:

<layer>    <definitionexpression></definitionexpression>    <enableexport>true</enableexport>    <name>Forever Wild Land Trust</name>    <url>http://maps.dcnr.alabama.gov/adcnrweb/rest/services/ForeverWild/MapServer/0</url>    <graphicalsearchlabel>Draw a graphic using one of the search tools below to select Forever Wild Land Trust tracts</graphicalsearchlabel>    <spatialsearchlayer>false</spatialsearchlayer>    <titlefield>NameLookup</titlefield>    <fields all="false">     <field name="NameLookup" alias="Name"/>     <!-- <field name="County" alias="County"/>     <field name="Date" alias="Acquisition Date"/>     <field name="PDFAcres" alias="Number of Acres"/> -->    </fields>    <links>     <link includeinresults="false" field="" alias="">      <linkprefix></linkprefix>      <linksuffix></linksuffix>      <iconfield></iconfield>      <iconprefix></iconprefix>      <iconsuffix></iconsuffix>     </link>    </links>    <zoomscale usegeometry="true">10000</zoomscale>   </layer>   <layer>    <definitionexpression></definitionexpression>    <enableexport>true</enableexport>    <name>Inshore Artificial Reefs</name>    <url>http://maps.dcnr.alabama.gov/adcnrweb/rest/services/Fishing_DCNR/MapServer/1</url>    <graphicalsearchlabel>Draw a graphic using one of the search tools below to select inshore artificial reefs</graphicalsearchlabel>    <spatialsearchlayer>false</spatialsearchlayer>    <titlefield>Name</titlefield>    <fields all="false">     <field name="Name" alias="Name"/>     <!-- <field name="County" alias="County"/>     <field name="Date" alias="Acquisition Date"/>     <field name="PDFAcres" alias="Number of Acres"/> -->    </fields>    <links>     <link includeinresults="false" field="" alias="">      <linkprefix></linkprefix>      <linksuffix></linksuffix>      <iconfield></iconfield>      <iconprefix></iconprefix>      <iconsuffix></iconsuffix>     </link>    </links>    <zoomscale usegeometry="true">10000</zoomscale>   </layer>   <layer>    <definitionexpression></definitionexpression>    <enableexport>true</enableexport>    <name>Public Lakes</name>    <url>http://maps.dcnr.alabama.gov/adcnrweb/rest/services/ForeverWild/MapServer/1</url>    <graphicalsearchlabel>Draw a graphic using one of the search tools below to select Public Lakes</graphicalsearchlabel>    <spatialsearchlayer>false</spatialsearchlayer>    <titlefield>Name</titlefield>    <fields all="false">     <field name="Name" alias="Name"/>    </fields>    <links>     <link includeinresults="false" field="" alias="">      <linkprefix></linkprefix>      <linksuffix></linksuffix>      <iconfield></iconfield>      <iconprefix></iconprefix>      <iconsuffix></iconsuffix>     </link>    </links>    <zoomscale usegeometry="true">10000</zoomscale>   </layer>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Some how you managed to delete the expressions parent tag and all it children from each of those layers so the widget has no idea what to do with them.

            <expressions>                 <expression alias="Forever Wild Tract Outline" textsearchlabel="Forever Wild Tract Outline by name...[ Example: FW 33 - Weeks Bay Harris and Worcester Tracts or FW 33 %]">Name like '[value]%'</expression>             </expressions>


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

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Some how you managed to delete the expressions parent tag and all it children from each of those layers so the widget has no idea what to do with them.

            <expressions>                 <expression alias="Forever Wild Tract Outline" textsearchlabel="Forever Wild Tract Outline by name...[ Example: FW 33 - Weeks Bay Harris and Worcester Tracts or FW 33 %]">Name like '[value]%'</expression>             </expressions>


Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
AshleyPeters
Frequent Contributor
Ah! I'll get that code added in. Thanks Robert!
0 Kudos