Hi Bubblers
I am creating my first Bubble app and mostly I am doing fine, but I have run into a problem that I cannot solve even though it seems simple.
I have a list of companies with a few fields in a repeating group.
For each of the companies I have an edit icon placed within the repeating group.
When I click the icon I can see the repeating group, but only the first, last etc. in the list of companies, not the one where I clicked the icon.
If I use first / last it works fine. I get it displayed in my popup and when I save, the database is updated.
And now to my question: How do I get the company from the group element that contains the icon?
Thank you very much for helping me out,
Kindly, Ole
Hi there, @oer… if I understand your post correctly, you are trying to let a user click an icon associated with any company in a repeating group, and you want the user to be able to edit that company’s data in a popup that appears when the icon is clicked. If that is correct, you should be able to accomplish that by having a workflow action in your icon workflow that displays data in the popup (the action is literally called Display data), and the data to display is the current cell’s (or possibly parent group’s) company. Does that make sense?
Hi Mike
Thanks for your reply
You are absolutely right and I have the workflow set up and working with :first and :last
What I cannot figure out is how I reference the current cell - the one in which the icon and company I want to edit is placed.
It does not show up in the expression builder it seems.
Kindly, Ole
Unless I am missing something, you shouldn’t have to use :first or :last anywhere on this one. Can you share some screenshots or a read-only link to your editor?
:first and :last are only to check if everything else works. No real use for those.
But is there a way to reference current cell?
I don’t know how to share the app
You should be able to reference the current cell in the Display data workflow action. To share a link to your editor, go to Settings >> General, change Application rights to Everyone can view, and copy the URL to any page in the editor (preferably the page where the repeating group is) and paste the link here.