/* * when a value triggers a submit such as when Enter is pressed in text box * perform the search */ private function onSearchSubmitted(evt:Event):void { if(searchGroup.numElements == 1){ equeryFeaturesText(null); }else{ //If the search is valid then the searchBtn is enabled if(searchBtn.enabled){ equeryFeaturesText(null); }; }; }
/* * when a value triggers a submit such as when Enter is pressed in text box * perform the search */ private function onSearchSubmitted(evt:Event):void { // TODO: validate here? // if single value, then automatically submit // TODO: if >1 value and all are valid, then submit if(searchGroup.numElements == 1){ equeryFeaturesText(null); }; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.