I try to get unique value on my query combo box. Without if statement there are no errors, but just got same value on the combo box. (TypeError: Error #1006: getItemIndex is not a function. at querycombo/private:init/onResult())See code below: function onResult(featureSet:FeatureSet, token:Object = null):void { var StArr:Array = []; for each (var myGra:Graphic in featureSet.features) { //if (StArr.getItemIndex(myGra.attributes["township"].toString()) == -1 ) // { StArr.push(myGra.attributes["township"].toString()); // } } StArr.sort(); StCb.dataProvider = StArr; }Thank you.
Hi Wes,I have a need to do same thing and was hoping to find an elegant solution. I was planning on developing a post query algorithm to find the unique values. Would you mind sharing your solution.Thanks,David Savory
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.