Hi Robert,A couple of things, first I wanted to let you know I got some auto complete functionality to work with the widget. I am still developing but so far it is looking pretty good.Second, I noticed something with the widget that may be tedious to some. I have two relates setup on a layer that the users search on. When the results window loads, the users have to click on the result list for the relate icon to load (I guess the on click fetches the relates?). This is fine and all, but when the Search Results are listed in the fixed data grid, and the user clicks the result they want, but the relates cannot be fetched. So if you are wanting to view the related records, you are forced to find them in the initial results window, click on them, choose your relate, and then the related feature.So my question is can the relates icon be added to a fixed field in the datagrid? That way when the user clicks a result in the datagrid, the relates icon loads.Thanks in advance!-Chris
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>All Weeds</name> <url>http://gis.slco.org/wwwrest/services/public/Weeds/MapServer/32</url> <expressions> <expression alias="Weed Name" textsearchlabel="Search By Weed Name [ Example: Russian Olive]:" field="Weed_Common_Name" usedomain="false" userlist="Black Henbane, Canada Thistle, Dalmatian Toadlflax, Diffuse Knapweed, Dyers Woad, Field Bindweed, Garlic Mustard, Hoary Cress, Houndstongue, Johnsongrass, Leafy Spurge, Medusahead, Musk Thistle, Myrtle Spurge, Oxeye Daisy, Perennial Pepperweed, Phragmites, Poison Hemlock, Puncturvine, Purple Starthistle, Quackgrass, Russian Knapweed, Russian Olive, Saltcedar, Scotch Thistle, Spotted Knapweed, Squarrose Knapweed, St.Johns Wort, Sulphur Cinquefiol, Yellow Starthistle, Yellow Toadflax"> upper(Weed_Common_Name) LIKE upper('%[value]%')</expression> <expression alias="Collector_Agency" textsearchlabel="Search by Agency [ Example: SLCo ]:" >upper(Collector_Agency) LIKE upper('%[value]%')</expression> </expressions>
<field name="SALE_DATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true"/>
Glen, Yes you need to set the dateformat and probably the useutc.<field name="SALE_DATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true"/>
DATE_TIME_COLLECTED >= '2012-3-1 00:00:00' AND DATE_TIME_COLLECTED <= '2012-2-1 00:00:00'
Glen, The easiest way to figure it out is to go to ArcMap and use the Select by attribute query and use the Get Unique Values button to determine the exact format of the date expected.I believe it should look more like this though (I use SQL Server)DATE_TIME_COLLECTED >= '2012-3-1 00:00:00' AND DATE_TIME_COLLECTED <= '2012-2-1 00:00:00'Don't forget to click the top arrow (promote) as shown below on all the posts that have helped:
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Graphical Calhoun Parcels</name> <url>http://someserver/ArcGIS/rest/services/someservice/MapServer/0</url> <expressions /> <graphicalsearchlabel>Use one of the graphical search tools to select a Parcel</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Name</titlefield> <fields all="true" /> <links> <link includeinresults="false" field="" alias=""> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> </link> </links> <zoomscale usegeometry="true" zoompercent="1.6" /> <autoopendatagrid>false</autoopendatagrid> <relates /> </layer>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.