protected function results_click(event:MouseEvent):void { var o:Object = myResults.selectedItem; if(o){ selectedAddress.text = o.Address; myResults.visible = false; myResults.height = 0; dispatchEvent(new Event("addressSelected")); stage.focus = null; } }
protected function keyUp(event:KeyboardEvent):void { //Calls webservice when input reaches the 2 character minimum and webservice is loaded if (selectedAddress.text.length>2 && wsLoaded){ mySvc.addEventListener(ResultEvent.RESULT, searchResults); mySvc.addEventListener(FaultEvent.FAULT, fail); mySvc.findAddress(selectedAddress.text); } }
protected function init(event:FlexEvent):void { mySvc = new mx.rpc.soap.WebService(); mySvc.wsdl = "http://yourservice/xyz.asmx?wsdl"; mySvc.loadWSDL(); mySvc..addEventListener(LoadEvent.LOAD, load_listener); }
A Hay, I want to be sure of the work flow before I can determine a LOE (Level of effort) and decide on the enhancement request.I am just not following what you are asking (things seem pretty straight forward when you understand what the flow is). You are going to have to break it down in more detail for me.
Lixin, This is default behavior for Polylines that only have two points as there is no easy way to calculate the mid point on client side. If you search a polyline that has more than two vertexes than it will use a vertex that is closest to the middle.
Glen, If you don't do a date range can you get a single date to work?
<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>
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:
DATE_TIME_COLLECTED >= '2012-3-1 00:00:00' AND DATE_TIME_COLLECTED <= '2012-2-1 00:00:00'
Glen, Yes you need to set the dateformat and probably the useutc.<field name="SALE_DATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true"/>
<field name="SALE_DATE" gridfield="true" dateformat="MM/DD/YYYY" useutc="true"/>
<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>
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.