Hello fellow Bubblers! I’ve been making custom plugins for some time already and frequently made plugin elements work inside repeating groups so my clients would be able to control them inidividually, dynamically and with N instances of the plugin element.
I’ve decided to isolate the mechanism that allows that and found out that it just works with normal plain Bubble and also other plugins that aren’t optimized with such mechanism and, well, decided to make it into a plugin that allows all of us to melt down that silly barrier that prevents us from referring to things inside repeating groups from outside.
Fellow plugin makers, there’s something in the end for you too
Anyway, here it is! I call it Orchestra! Since the Maestro element stays out of the repeating group and the Musicians element stays inside the repeating group cell.
Here’s the plugin page:
Technically this works by allowing you to use an external element to trigger a workflow that runs inside the repeating group cell! And you can even specify one cell, a specific group of cells or all of them. Literally this eliminates the weird limitation of not being able to refer to things inside a repeating group.
So you can now control other plugins too, for example a free plugin from someone else (to show I didn’t fiddled with it internally) to toggle visibility of password inputs, normally you can’t refer to a specific cell’s input from outside the repeating group, but with my plugin you now can! Check it out:
It can also be used to extract data from the repeating group, so no other plugins involved, just a “set state” action, to show it works with vanilla Bubble:
Here’s just a creative use to delay running each workflow:
You can see those examples here: sdfsfsdfsdf | Bubble Editor
When you open the workflow page, use the folders “first example” and “second example” to better understand what goes on.
In short: Place the Maestro element outside, then Musicians element inside the repeating group, initialize musicians like in the example and whenever you want to trigger a workflow you just specify the target cell(s) and it’ll run the workflow inside the custom event provided by the plugin “when the musicians are triggered this workflow will run inside each cell”.
I made it as straightforward and simple to use as possible! Check it out and enjoy (:
Please keep possible bug reports and suggestions coming (:
Plugin makers: If you ever have any issue making your element work inside repeating groups, take a look into the code of this plugin. I burned a lot of neurons to make it simple like that! Feel free to use that mechanism to properly refer to your elements or just install this plugin (or your copy of it) and make it work, since it’s universal. Also feel free to reach out to me with doubts and suggestions.
This is a sibling plugin to New free plugin (9 march/20) - Satellite, trigger worfklows in reusable elements from the page and vice-versa