Repeating Panel Question re:- Link Row-Multiple and Images

Apologies in advance if my title doesn’t make much sense, but I wasnt sure what to put.

I have set up a repeating panel within another repeating panel (see image) The yellow is the inner repeating panel, I styled it as a horizontal panel as per the tutuorial on one of the posts.
The main panel is populated with a server call to get all stuff for a specific user and each row panel contains one row from the mystuff table.

My questions are:

  1. If an inner repeating panel is set inside a row of an outer panel, will the server query results still be accessible for that particular row, for the inner panel. E.G the main panel holds the record of mystuff, the repeating panel I want to display all linked images from a link-multiple column.
  2. How do I get them all to display in the yellow panel, self.item doesnt do it, which I think may answer my first question but would appreciate some guidance on that?

With the disclaimer that I haven’t done nested repeating panels, it shouldn’t be any different from a single repeating panel. Each repeating panel’s .items property must be set.

The outer one you set to the result of a data table search. The inner one you set inside the row template form to one of the fields in the data table (the multi-link field, e.g. self.item['nameoflinkfield']).

yes thats what I tried. a data bind on source = self.item['ImagesAttached']['MyStuffImage'] I attached 4 dummy images and since a repeating panel item is just one item, I thought that should work.

Edit: I created a server call on the inner repeating panel and specified the self.item as above. I got this error. TypeError: 'list' object is not callable Is that because its a list of rows not a single one.

I was thinking about a for loop but then the repeating panel is surely designed to assign one of those results to each row anyway (or column as in my case)???

Assuming that self.item['ImagesAttached'] is your multiple link field, in your outer repeating row template, you would do something like this in the init:

self.repeating_panel_1.items = self.item['ImagesAttached']

Then inside your inner repeating panel row template, you would data bind the image source to self.item['MyStuffImage']

2 Likes

Wow you are a superstar! I’ve been trying all day to get that right!

1 Like