Build something that works
I prefer to help guide you in the right direction instead of solve your problems for you directly as it's a much better way to learn. Can you tell me what you've tried so far? Make sure you're following the documentation here:
What I mean is when the button is clicked, it shows the popover with table of data to select.