I’m heaving problem with search in listview. let me try to explain
as a example i have 4 items in a list
i search “Youtube” in the “filter bar” of listview and it comes up. but it turns into index 1 instead of 4. i have set up to go to a screen with index value and show spreadsheet cells according to the index and also wanted search feature as there is many items. but when i used it always turns into index 1 please help me
Could you plz show your blocks?
Here it is i thought i explained . it keeps sending index 1 when used filter feature
This may help
if you have a list with 5 items A,B,C,D,E and you filter for let’s say B, you will get the selection index 1 in the end… this is the selection index of the filtered list, which is not the selection index of the complete list… this bug is already...
Any solution? Or I should disabled search? Ahhh it will be hard to find one than
Did you read what Taifun wrote in that thread.
The link is taking me to topic “small problem regarding community ads”
ups copy/paste issue.
I copied the text from thunkable but something went wrong, go to the first link I posted.
edit. changed so that the link is not available now, only text so read above.
Maybe I’m a nub can u please show me example blocks?
@Boban It gives this error
screen 2 calling part
@Boban’s example provides the list item
but you are ony trying to get the index… so only use the index in list block as Boban showed it in the example
Best way to see what’s happening in the code right-click and
do it see tip 4 Top 5 Tips: How to learn App Inventor
I called GetAllRows and assigned them to list elements. I tried your idea but the index is not appearing. Instead, the data of selected element appears.
There’s the catch. If searched using filter and element is clicked, Selection index is not as desired.
eg: if 1 A, 2 B, 3 C, 4 D. and I search D… Selection index after selection of D is 1 and not 4.
How to solve this?
Because the index you are getting is the index of the new list and not the original list. The original list has 4 items and the resulting list (with filter) has fewer indexes and the order is changed.
Thanks for the response, RR.
Is there any way to preserve the indices of the original list and use them/it as index after selection?
This Topic is very old.
Instead of index, the selection itself appears on the label.
What You see ?
See index 3?