How to choose specific items in list?


#1

Hi folks,
I’ve a list looks like this:

Cat_||at market_||Place1
Dog_||at market_||Place2
Zebra_||on bus_||Place1
Giraffe_||on bus_||Place1

I wanna make a list contains only the items have ((at market)) to put them in a ListView

Like this:
Cat
Dog

How can I make it?

Thanks


#2

use list view component.


#3

Is this exactly how the string looks?


#4

Yes. I use Join text to add the _|| between fields.

The middle part like (at market) is found at Spinner element; the other two parts “like Cat and place1” are Textboxes.


#5

Can you show your blocks? I am thinking that when you join things would be a good place to also put it in a list.


#6

This what I’m trying to make…


#7

So when you press the save button you could check with a logic block if the spinner.selection is at market and then ad the name.text to a list.

image

Does that make any sense to you?


#8

No Peter. I wanna save several data, but when I select an item like (market) from spinner, the ListView only shows list with names containing only (market) for example.


#9

And what happens if you use the blocks you made. What is the result?


#10

The result is blank ListView! after choosing spinner


#11

But the showsaved button gives the right result with all the entered items?


#12

Yes, it gives all saved items’ names not specific ones


#13

Can you pm me your aia?


#14

Sure, I’m gonna send it to you


#15

With a lot of do its you can see that is in list gives a false result so no items were found. An empty listview is generated.


#16

Thanks for your time.

So, what is the best solution though?


#17

At the moment my head is a blank so have no idea to make it work. Probably something very simpel but i don’t see it. :sunglasses:


#18

Ok. Thanks a lot for your time.