0

I have managed to parse a JSON result from a URL to a ListView. I need now to have the ListView searched for a specific element programmatically - without user picking form the list - by a user input search. Then if this element, according to user input is found in ListView, the result to be displayed in an label or a notification to be fired.

Can this be done using the ListView component in App Inventor 2? Please advice, with a sample block code if applicable. Thank you all in advance.

Community
  • 1
  • 1
CodeBugging
  • 321
  • 12
  • 28
  • search the list you created from the JSON response instead... as you already know from [my answer to your other question](http://stackoverflow.com/a/34500551/1545993), there is the *lookup in pairs* block waiting for you... Btw. it does not look like that answer was helpful for you, was it? – Taifun Jan 06 '16 at 23:01
  • Hello @Taifun. Your answer was helpful, but could not implemented right, or the JSON was not formated in the right way for parsing maybe. There for, I followed a tutorial to parsing JSON in ListView, with a relative success. So there is no way to have the ListView searched for an element and displayed programmatically on a label? – CodeBugging Jan 06 '16 at 23:32
  • I just was asking, because it looks like you do not know [how voting works](https://stackoverflow.com/help/why-vote)... and No, you can't search a listview programmatically, you have to search the underlying list instead. – Taifun Jan 06 '16 at 23:47

0 Answers0