How to parse a list and retrieve items the contain a specific property?

jakeheron
Wed, 13 Oct 2021 06:48:32 +0000
Questions about Thunkable

@muneer @tatiang

Hi, I hope you are doing well.

I have quite a complex logic problem in my app that is seriously stumping me. Essentially, I would like to design an algorithm which parses a list and retrieves a list item that contains a specific property eg. a word.

This is for my school planner application. I have an ‘homework assignments’ screen in which users can enter assignments. Additionally, I have a timetable screen which displays lessons that the student has for that particular day. What I would like to happen is when the user clicks a text item on the timetable, the app displays the tasks associated with that lesson.

Currently I am storing the homework assignments in a list like so:

My timetable screen looks like this:

So essentially, I want it so that that when the user clicks say ‘computer science’, they list viewer displays all the computer science tasks. So how could I design an algorithm which parses the assignments list and retrieves all the items that contain the words ‘computer science’ and then display them on the list viewer?

I am sorry if I have not explained this very clearly. Please feel free to ask for any clarification and I will try my best to explain. Any help would be greatly appreciated. Here is the link to the project:

https://x.thunkable.com/copy/a2796de8f4238c4af5a107ee63879a82

Thanks!

25 posts - 4 participants