David
( David Ningthoujam)
October 9, 2018, 12:33pm
#1
I’m heaving problem with search in listview. let me try to explain
as a example i have 4 items in a list
facebook
whatsapp
discord
youtube
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?
David
( David Ningthoujam)
October 9, 2018, 12:55pm
#3
Here it is i thought i explained . it keeps sending index 1 when used filter feature
Boban
(Boban Stojmenovic)
October 9, 2018, 2:21pm
#4
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...
/Boban
David
( David Ningthoujam)
October 9, 2018, 2:36pm
#5
Any solution? Or I should disabled search? Ahhh it will be hard to find one than
Boban
(Boban Stojmenovic)
October 9, 2018, 2:44pm
#6
Did you read what Taifun wrote in that thread.
/Boban
David
( David Ningthoujam)
October 10, 2018, 12:45am
#7
The link is taking me to topic “small problem regarding community ads”
Boban
(Boban Stojmenovic)
October 10, 2018, 12:50am
#8
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.
/Boban
David
( David Ningthoujam)
October 10, 2018, 2:18am
#9
Maybe I’m a nub can u please show me example blocks?
Boban
(Boban Stojmenovic)
October 10, 2018, 2:35am
#10
4 Likes
David
( David Ningthoujam)
October 11, 2018, 4:22am
#11
@Boban It gives this error
Blocks
screen 2 calling part
1 Like
Taifun
October 11, 2018, 7:05pm
#12
@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
Taifun
1 Like
Boban
(Boban Stojmenovic)
October 11, 2018, 7:24pm
#13
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
/Boban
1 Like
rohitcr2k
(Rohit Radhakrishnan)
November 16, 2020, 11:29am
#14
Hello Boban.
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.
Kindly help.
rohitcr2k
(Rohit Radhakrishnan)
November 16, 2020, 11:37am
#16
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?
Rogerio_Rios
(Professional Support)
November 16, 2020, 11:43am
#17
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.
1 Like
rohitcr2k
(Rohit Radhakrishnan)
November 16, 2020, 11:45am
#18
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?
Rogerio_Rios
(Professional Support)
November 16, 2020, 11:45am
#19
This
#off-topic
This Topic is very old.
rohitcr2k
(Rohit Radhakrishnan)
November 16, 2020, 11:50am
#20
Tried it.
Instead of index, the selection itself appears on the label.
Rogerio_Rios
(Professional Support)
November 16, 2020, 11:56am
#21
Please look:
What You see ?
See index 3?