Forum Academy Marketplace Showcase Pricing Features

Displaying data from a different database when an element is clicked?

Hi all, I am an amateur bubbler, but it seems as though I need the communities help. This is the issue that I have:
I am creating a CRM system, and I want to know how you take data from one repeating group which is clickable (such as text) and make it so that it shows another repeating group with the displayed data of another database?
I am trying to display data when the text element is clicked, but the text element is from another database, any ideas? Thanks in regards