Slade, It looks like you have a 1009 error using either services... I would check the spelling (and CaSe) of the field names. Also in diagnosing ths issue it would be benifical to you to attempt the same exact query using the where clause and out fields directly from your Rest Service Directory page.
http://YourServerAddress/arcgis/sdk/index.html?catalog.html
<layer> <definitionexpression/> <enableexport>false</enableexport> <name>Pole</name> <url>http://SNEW-GIS.NORWALK2NDWATER.COM/ArcGIS/rest/services/Operational_Layers/Operational_Electric/MapServer/18</url> <expressions> <expression alias="Pole #" textsearchlabel="Search Poles by Pole Number:" isvaluerequired="true"> <values> <value prompt="Example: C9178" isvaluerequired="true">facilityID like '[value]'</value> </values> </expression> <expression alias="Street Name" textsearchlabel="Search Poles by Street:" isvaluerequired="true"> <values> <value prompt="Example: Outlook" isvaluerequired="true">street like '%[value]%'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Poles</graphicalsearchlabel> <spatialsearchlayer>false</spatialsearchlayer> <titlefield>facilityID</titlefield> <fields all="false"> <field name="comments" gridfield="true"/> <field name="subtypeCode" gridfield="true"/> <field name="facilityID" gridfield="true" sort="asc|2|string"/> <field name="poleHeight" gridfield="true"/> <field name="poleClass" gridfield="true"/> <field name="poleType" gridfield="true"/> <field name="owner" gridfield="true"/> <field name="poleUse" gridfield="true"/> <field name="circuitID" gridfield="true"/> <field name="street" gridfield="true" sort="asc|1|string"/> <field name="maintenance" gridfield="true"/> <field name="routeNumber" gridfield="true"/> <field name="poleHeightEstimated" gridfield="true"/> <field name="poleClassEstimated" gridfield="true"/> <field name="instDate" gridfield="true"/> <field name="PoleTopExtension" gridfield="true" alias="Pole Top Extension"/> </fields> <links/> <zoomscale usegeometry="true" zoompercent="1.6"/> <autoopendatagrid>true</autoopendatagrid> <relates> <relate id="5" label="Joint Use" enableexport="true" icon="assets/images/Pole.png" printitle="Joint Use" enableprintgrid="true"> <fields all="false"> <field name="poleNumber"/> <field name="jUseType"/> <field name="companyID"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6"/> </relate> </relates> <queryattachments>true</queryattachments> </layer>
<layer> <definitionexpression/> <enableexport>true</enableexport> <name>Hydrant</name> <url>http://SNEW-GIS.NORWALK2NDWATER.COM/ArcGIS/rest/services/Operational_Layers/Operational_Water/MapServer/5</url> <expressions> <expression alias="Street / Cross Street Name" textsearchlabel="Search by Street / Cross Street Name:" isvaluerequired="true"> <values> <value prompt="Example: Flax Hill" userlist="" isvaluerequired="true" operator="AND">LOCATION like '%[value]%' OR X_STREET like '%[value]%'</value> </values> </expression> <expression alias="District and Hydrant #" textsearchlabel="Search Hydrants by District and Hydrant Number:" isvaluerequired="true"> <values> <value prompt="Example: 2" userlist="2,3,5,6,W" isvaluerequired="true">DISTRICT like '[value]'</value> <value prompt="Example: 112" userlist="" isvaluerequired="true">FACILNUM like '[value]'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select hydrants</graphicalsearchlabel> <spatialsearchlayer>false</spatialsearchlayer> <titlefield>Hyperlink_Flex</titlefield> <fields all="false"> <field name="DISTRICT" gridfield="true" sort="asc|1|string"/> <field name="FACILNUM" gridfield="true" sort="asc|2|string"/> <field name="LOCATION" gridfield="true"/> <field name="X_STREET" gridfield="true"/> <field name="HY_MAKE" gridfield="true"/> <field name="PORT" gridfield="true"/> <field name="STEAMER" gridfield="true"/> <field name="BURY" gridfield="true"/> <field name="STATUS" gridfield="true"/> <field name="GATE" gridfield="true"/> <field name="CONNECTN" gridfield="true"/> <field alias="Barrel" name="BARRELL" gridfield="true"/> <field name="LAT_SIZE" gridfield="true"/> <field name="DIR_OPEN" gridfield="true"/> <field name="INST_DATE" dateformat="MM/DD/YYYY" gridfield="true"/> <field name="MN_SIZE" gridfield="true"/> <field name="MN_MTRL" gridfield="true"/> <field name="INSTL_BY" gridfield="true"/> <field name="JOB_NUM" gridfield="true"/> <field name="NXT_INSP" dateformat="MM/DD/YYYY" gridfield="true"/> <field name="F_ORDER" gridfield="true"/> <field name="DESCRIPT" gridfield="true"/> <field name="REMARKS" gridfield="true"/> <field name="Hyperlink_Flex" visible="false" gridfield="true"/> </fields> <links> <link alias="Open Hydrant Card" disablelinksifnull="true"> http://SNEW-GIS.NORWALK2NDWATER.COM/hydrants/{Hyperlink_Flex}.dwg <icon>assets/images/ACAD_icon_9_48x48x32.png</icon> </link> </links> <zoomscale usegeometry="true" zoompercent="2"/> <autoopendatagrid>true</autoopendatagrid> <queryattachments>false</queryattachments> <symbology> <simplefillsymbol color="0x0000ff" alpha="0.5"> <outline color="0x00ffff" alpha="0.8" width="2"/> </simplefillsymbol> </symbology> <relates> <relate id="0" label="Hydrant Flushing" enableexport="true" icon="widgets/eSearch/assets/images/HydrantFlushing48x48.png" printitle="Hydrant Flushing" enableprintgrid="true"> <fields all="false"> <field name="JOIN_KEY_LABEL"/> <field name="INS_DATE" sort="dsc|1|date" dateformat="MM/DD/YYYY"/> <field name="STA_PSI"/> <field name="RES_PSI"/> <field name="TEST_HY"/> <field name="INS_TYPE"/> <field name="FLOW"/> <field name="TEST_DUR"/> </fields> <zoomscale usegeometry="true" zoompercent="1.6"/> </relate> </relates> </layer
<relatetooltip>Show Related Data</relatetooltip> <relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon>
<configuration> <autohide>true</autohide> <height>200</height> <duration>3000</duration> <labels> <searchresulttab>Search Results</searchresulttab> <relateresulttab>Related Data</relateresulttab> <autohidelabel>Auto hide</autohidelabel> </labels> </configuration>
Nick, If you go to my Live Preview Site and choose County Roads and type mud. Then click the relate flag icon you will see the realted data tab label change (as designed).http://gis.calhouncounty.org/FlexViewer3.2/index.html?config=config-eSearch.xml
Nick, Are you sure you are using 3.2.3?... If you hold your Alt key and click on the widgets title a dialog with the version will display.
Yes. I was wondering the same thing as there were times before when I updated the widgets and it said they were applied to my projects, but I found that they were not. However, in this case, yes, I'm seeing: "Enhanched Search Widget Version: 3.2.3Build Date: 4/30/2013"
Nick, It sounds like you did not add the SearchWidgetFixedDG.mxml to your Projects modules list (so that Flash Builder Knows to build a swf for it).
Casey, I don't know what else to tell you as I have now setup a Featureclass, a table, and a relationship Class in an Enterprise Geodatabase and tested a link to a pdf from a field in the related table and it works fine....
<layer> <token /> <definitionexpression /> <enableexport>true</enableexport> <name>Sanitary Main</name> <url>http://GIS01.lebanon.local:6080/arcgis/rest/services/OperationalLayers/Utilities/MapServer/3</url> <expressions> <expression alias="Facility ID" textsearchlabel="Search Specific Main:" isvaluerequired="false"> <values> <value prompt="Example: 1032" isvaluerequired="false">FACILITYID = [value]</value> </values> </expression> <expression alias="Attributes" textsearchlabel="Search Mains:" isvaluerequired="false"> <values> <value prompt="Type:" isvaluerequired="false" uniquevalsfromfield="TYPE" autosubmit="false">TYPE = '[value]'</value> <value prompt="Diameter:" isvaluerequired="false" uniquevalsfromfield="DIAMETER" autosubmit="false" operator="AND">DIAMETER = [value]</value> <value prompt="Material:" isvaluerequired="false" uniquevalsfromfield="MATERIAL" autosubmit="false" operator="AND">MATERIAL = '[value]'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Main</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Sanitary Main</titlefield> <fields all="false"> <field name="FACILITYID" gridfield="true" /> <field name="TYPE" gridfield="true" /> <field name="DIAMETER" gridfield="true" /> <field name="MATERIAL" gridfield="true" /> <field name="YEARBUILT" gridfield="true" /> <field name="EDITDATE" gridfield="true" /> <field name="INSPECTIONDATE" gridfield="true" /> </fields> <links /> <zoomscale usegeometry="true" zoompercent="2" /> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates> <relate id="0" label="Asbuilts" enableprintgrid="false"> <fields all="false"> <field name="ASBUILTID" /> <field name="FILEPATH" hyperlinkgridfield="true" hyperlinkaliastext="View Asbuilt" linkprefix="http://GIS01/Asbuilts/" linksuffix=".pdf" /> </fields> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate> </relates> <symbology> <simplefillsymbol color="0xff0000" alpha="0.5"> <outline color="0xff0000" alpha="0.8" width="2"/> </simplefillsymbol> </symbology> </layer>
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Water Mains</name> <url>http://gis-01/ArcGIS/rest/services/MAP_DOCS/dmww_water_server/MapServer/23</url> <expressions> <expression alias="Material,Diameter and Install Date" textsearchlabel="Search Material:" isvaluerequired="false"> <values> <value prompt="Material" uniquevalsfromfield="MATERIAL" isvaluerequired="false">MATERIAL = '[value]'</value> <value prompt="Diameter" uniquevalsfromfield="DIAMETER" isvaluerequired="false" operator="AND">DIAMETER = [value]</value> <value prompt="Example: 01/01/2007 Install Date" isvaluerequired="false" operator="AND">INSTALLDATE >= date '[value] 00:00:00'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Water Mains</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>FACILITYID</titlefield> <fields all="false"> <field name="DIAMETER" gridfield="true" /> <field name="FACILITYID" gridfield="true" /> <field name="MATERIAL" gridfield="true" /> <field name="INSTALLDATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true" /> </fields> <links/> <zoomscale usegeometry="true" zoompercent="1.6"></zoomscale> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates/> <symbology> <simplelinesymbol color="0x00ff00" alpha="0.8" width="2" /> </symbology> </layer>
Marie, So in Version 3.0 there is some issue you are going to have to work around. You need to use uniquevalsfromfield instead of domain as using domain in 3.0 will force you to have a value for each domain field. The next issue you will have to Just deal with in version 3.0 is that once you have chosen a value from the dropdown list the search will automatically be executed (this was fixed in latter releases). I am going to assume that your diameter field is numeric and not a string and I adjusted your expression for that assumption.Here is a corrected configuration for your layer: <layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Water Mains</name> <url>http://gis-01/ArcGIS/rest/services/MAP_DOCS/dmww_water_server/MapServer/23</url> <expressions> <expression alias="Material,Diameter and Install Date" textsearchlabel="Search Material:" isvaluerequired="false"> <values> <value prompt="Material" uniquevalsfromfield="MATERIAL" isvaluerequired="false">MATERIAL = '[value]'</value> <value prompt="Diameter" uniquevalsfromfield="DIAMETER" isvaluerequired="false" operator="AND">DIAMETER = [value]</value> <value prompt="Example: 01/01/2007 Install Date" isvaluerequired="false" operator="AND">INSTALLDATE >= date '[value] 00:00:00'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Water Mains</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>FACILITYID</titlefield> <fields all="false"> <field name="DIAMETER" gridfield="true" /> <field name="FACILITYID" gridfield="true" /> <field name="MATERIAL" gridfield="true" /> <field name="INSTALLDATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true" /> </fields> <links/> <zoomscale usegeometry="true" zoompercent="1.6"></zoomscale> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates/> <symbology> <simplelinesymbol color="0x00ff00" alpha="0.8" width="2" /> </symbology> </layer>
Robert:
I believe I am using the 3.5 version of your E-Search widget, but I am not 100% sure and I cannot remember how to get this information.
Also, this version was running fine against AGS v10.0 services and now I am testing it against AGS v10.2 services, but it is not returning results. Does E-Search v3.5 support AGS v10.2 services?
Your feedback is greatly appreciated. Thanks
Michael,
You can check which version of the widget you are using by holding the Alt key and clicking on the widget name. Yes 3.5 supports 10.2 services
Thank you Robert.
Does the Enhanced Search widget use a geometry service? If so, is it an ESRI public geometry service?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.