Editing an RG element

Dear Bubble Community,

I try to edit an RG element using a popup with divers inputs. I failed. Are there any special guidelines to solve the problem?

Thanks

P. Stappler

Youlo have to share more information or screen shots for us to help.





As you can see. If I create a first offer, it works




If I create a second one it changes the first offer, not the second one. How can we fix that?

Set the popup data type to “Offer” and display the data of the current cell to the popup when opened would help you target the right element.

Click edit → show element popup → display current cell offer on popup

The problem is in the workflow. I can’t put current cell’s offer into it.

Hi @p.stappler

It is usual to “Display data in Popup…” and use that data when saving, rather than doing an extra search as you have done.

Set the Popup “Type of content” to “Offer”:

In the test example below, when the Edit Offer button is clicked within the Repeating Group row, I “Show Popup Offer”

and then Display the RG Row’s Offer (I have this stored as the Parent Group’s Offer) in the Popup when the button inside the repeating group row is clicked:

Now, when changes are saved from the Popup form, the “Thing to change” should be the Popup’s Offer:

This will also save extra searches from potentially increasing your app costs. Please let me know if you need any further information.




Thank you so far. I’ve made progress. It’s just like that the changes occur when I press the “Edit Offer” button a second time as you can see.

My workflows


The steps in which I changed the offers contain the same procedure

It looks like you are changing the Offer twice. In step 2, when opening the Edit form, there is a “Make changes to Offer…”. Only save changes after the Edit Offer Popup’s “Bestigen” button is clicked rather than after the button “Angebot bearbeiten” is clicked (unless Step 2 has a different function, such as logging popup opening as analytics?). If not, delete Step 2 (as shown below):

And it would be common to close the Popup after a successful save. In my example, after saving changes, you would “Make Changes to Offer…” and then hide the popup:

Alright, I did it. I just can’t change the strings anymore.

I’m not sure what you mean by “not being able to change the strings anymore.” If you’re trying to update the Thing in your database, that usually points to an issue with your save button workflow.

I’d suggest running the debugger and stepping through the workflow to see exactly where the logic breaks. If you check the “Add a breakpoint in the debug mode” on any workflow step, you can get it to stop before continuing (or just step through each step until you find the issue).

By drilling down on the the “Thing to change”, it is possible to show which record is being updated (see on the right-hand side of the image below):

A common cause is that in “Make changes to Offer…”, the Parent group’s Offer is empty (so you are updating no record in the database, even though it looks like you are). Double-check that the container holding your button is correctly linked to the popup’s Offer type, or that all parent groups above it are passing down the Offer value properly.

Or, set the group which holds the save button to directly refer to the Popup’s Offer (rather than its parent group’s offer):

It worked. Thank you, Tim. You’re the greatest!

1 Like