I want to view a csv and search words from textbox

Hi, I'm trying to create a very simple app, but I can't get it to work.

I want to upload a csv and use a text field to write a word and have it list all the rows that contain that word.

Anyone can help me?


From where?

As a file inside the designer. Can I?

Pull in a File component from the Storage Drawer.

After you have uploaded your csv file to the Media folder you should be able to read it as //filename.csv

The // loads files from the Media folder.

Read the file in Screen1.Initialize
Pull in a When File finished Reading event (not the exact name) from the File blocks.

Init a global variable for the list of csv lines initially empty list.

When the csv file arrives, split it at \n to get a list of lines of text, and store that in the global lines list.

If you want to use the ListView filter bar, check the ListView filter bar option at the bottom of the ListView attributes in the Designer.

Set ListView1.Elements to the list of lines.

The ListView will be all loaded, and you can use its filter bar.

Now you are ready to accept input of your search word.

Try to change color of your text, I think it is black by default.