Looking for a little guidance or assurance what i’m trying to do can be done.
I am wanting to nest a repeat region inside a repeat row of a Table.
I have gone through the documentation on I have gone through the Nested Repeat Regions documents but can’t seem to make the instructions work within a BS4 table.
The issue i’m finding is that to nest a repeat region within the table row, you would need to be able to add that AC component, but its not listed as an option of a row inside a table.
Is this doable? If so, where should i be looking to make it work?
Example would be like:
Row 1 - Returns simple query in a table with a few columns
nested row 1 - returns simple repeat query under the above/parent row.
Not sure if I’m using the right element terminology (sorry) but I would want to nest a row of cells beneath another row of cells in the table body.
Proper context - the first row will have a few numerical metrics aggregated at a weekly level (1 row of data) and the nested row beneath that would have similar data but aggregated at a daily level.
Can you please provide a static example of what are you trying to do exactly, as it’s not clear if you need two rows one after another or two rows, where the second one is nested in the first?
This partly fixed my issue trying display query in a repeat server action in a bootstrap table.
What I’m trying to achieve is displaying users for each ‘gemeente’. So first I query the gemeentes and do a query within a repeat that gets each gemeentes users.
So I try to display all the users for all the gemeentes from the first query.
However, I need to copy the table code for each repeat… and I don’t know how many of these repeats I need, upfront.
Does anybody know how to dynamically add the nested repeats, as much as needed? So perhaps some code that dynamically changes sc_current_users_gemeentes_users.data.repeat[THIS PART].get_gemeentes_users or something?
I tried these docs:
But couldn’t really figure out how this applies to tables, as there is no Make Repeat Children button for the tables in the UI.
I have now sort of fixed the issue by following the Nested Repeat Regions docs. I have added the table heading to the first repeat and the table body to the nested repeat: