<esri:Query id="queryAssignments" returnGeometry="true" outFields="[assignment_number,team_name,timeslider,team_name,description]" where="{resultPeriod}" />
queryTaskAssignments.execute(queryAssignments, new AsyncResponder( onResult, onFault )); function onResult( featureSet : FeatureSet, token : Object = null ) : void { Alert.show(featureSet.displayFieldName); } function onFault( info : Object, token : Object = null ) : void { Alert.show( info.toString() ); }
private var resultPeriod:string; public function textButton_clickHandler(event:MouseEvent):void { if (textPeriod.text>"") { resultPeriod = "period="+ textPeriod.text; } if (textPeriod.text==null) { resultPeriod = "period is not null" }
<esri:QueryTask id="queryTaskAssignments" url="http://blah blah/MapServer/6" /> <esri:Query id="queryAssignments" returnGeometry="true" outFields="[assignment_number,team_name,timeslider,team_name,description]" where="resultPeriod" />
<s:TextInput id="textPeriod" enabled="true"/> <s:Button id="textButton" label="Go" enabled="true" click="textButton_clickHandler(event)"/>
// function to return assignments to data grid public function textButton_clickHandler(event:MouseEvent):void { var resultPeriod:String = ""; if (textPeriod.text>"") { resultPeriod = new String('period ='.concat(textPeriod.text)) } if (textPeriod.text=="") { resultPeriod = "1=1" } queryTaskAssignments.execute(queryAssignments); }
protected function textButton_clickHandler(event:MouseEvent,inputPeriod):void { var resultPeriod:String = public if (inputPeriod > "") { resultPeriod = inputPeriod } else if (inputPeriod= null) { resultPeriod = "1=1" } }
<esri:Query id="queryAssignments" returnGeometry="true" outFields="[assignment_number,team_name,timeslider,team_name,description]" where="period=resultPeriod" />
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.