Is it possible to access a repeating panel's methods from the parent form?

Hi @ben2 and welcome to the forum.

If I understand correctly, you could use the repeating panel’s raise_event_on_children method.

com-video-to-gif%20(7)

There is a clone in that post you can click on to copy the app. You will see that on the main form there is a button. When it is clicked, an event is triggered on each row (i.e., template) in the repeating panel.

This is functionally equivalent to looping through the repeating panel’s children, and calling a method on each child. For example, if your template has a method foo, you could call it from the parent form as follows:

# in parent form
for c in self.repeating_panel.get_components():
  c.foo()

Does this work for you?

2 Likes