Search and update a table

Hi

I have a textfield which I use to search. And based on the search result I want to populate a table in the same view.

And when the user a different value to search textfield and then presses the button I want to update the same table in the view.

How can this be done?