Accessing the parent of a repeating panel

Hey!

I am currently facing issues with the behavior of repeating panels. According to the documentation, the template’s parent is the repeating panel and should be accessible from within via self.parent. See here: Anvil Docs | RepeatingPanels

However, the parent object seems to be None. I have reproduced it here:

https://anvil.works/build#clone:FOZ52ZZR7XQRNL2I=3VVBKF76FFASDWAZFZLGY3AK

Is this a bug? Or am I misinterpreting something?
Best
DS

the component only has a parent once it’s been added to its container.

In the init method it hasn’t yet been initialized, so hasn’t been added to its container, and so doesn’t yet have a parent.

The earliest you can get the parent is in the show event.

1 Like

Got it., makes sense. Thanks for the fast reply!