How do I pass data from the main Form to a rowTemplate?

What I’m trying to do:
I know how to pass data from a repeating panel to the main Form, but now I want to pass a variable from the Main Form to the code of the rowTemplate.
I putted a text box in the repeating panel and I want to change the linked ‘data_key’ in function of a in the Main Form chosen variable that is the ‘data_key’ for that text box in the repeating panel.

You would do that by setting the items property of the repeating panels. For a specific one, you’ll probably need to index the specific row in the repeating panel. And afterwards, don’t forget to run self.items = self.items to apply the update.

The topic as a whole is called Data Binding. For a sound introduction, just follow the link.