Action buttons and workflow

Hi, I would like to have a cell with links or images to delete the current row or display a pop up to edit the current row. I can have separate columns for each but would prefer them in the same column if possible. How do I get the id for the clicked row in the workflow so I can populate my edit form or do my delete?

You just need the “display data in a popup” action and display the current cells data

That doesn’t seem to work, it says it evaluates to a list of texts. Also, I need to get the data for the entire row in the popup, not just the data in the row. Is there a way to get the id of the row so I can do a search?

I think I got it. I set the column data to be the id column so I can do a search for that id. I added this as the html so I get an edit image.

[fas] fa-edit [/fas]

What I need now is to have multiple images in that one column - edit and delete. Is that possible?

I’m not sure what you mean when you say “I need the data for the entire row, not just the data in the row”. I’m assuming a typo on the second part?

The ID of the row is contained within “current cell’s index” or in “parent group’s data’s unique id” if you’re talking about the record unique ID but that is the wrong way to approach this. You’re doing more work than you need to. Bubble’s core functionality makes this much easier. Your repeating group will have a data type associated with it and then the data source will be a list of that type.

My guess is that you have improper structure in how you’ve defined your hierarchical data structure within your repeating group (which is why you think it’s not working. It’s not working the way it’s set up but it will work if you have the right data type structure). You want to keep your groups as much as possible with the same data type as the repeating group’s data type and then show fields on that data type only on text boxes.

When you click the button to open the popup, the workflow should run these actions:

  1. Display data in popup (data to display is parent group’s data (whatever it’s called) and this needs to match the data type you have set on your popup)
  2. Show popup

Understanding how data types work in bubble is critical as this is one of the, if not the concept that bubble operates on.