Delete a thing not deleting...?

Hello there,

I’ve created a group table with a data type of requested quotes, each row containts data fields from requested quotes such as location, data etc.

I’ve got a row with an rubbish can icon to delete the requested quote. and have created a workflow as follows.


In preview mode, it removes the current row however, it is not removed from app data, so when the page refreshes it returns? any ideas?
is it a bug or am i just removing the information in that specific box in the table?

Appreciate any help.
Thanks
Latif

It’d be helpful to get a bit more info as your application and setup seem to be setup correctly. Are you doing anything with states on your page? What is your table’s data source? Any plugins involved?

The Table element is still in active public beta, so it’s always possible it’s a bug, but let’s try and narrow it down first-

Hey thanks for the return,

No plugins involved but i do have custom states.
On my navigation bar/header, i have it so that when a user clicks on quotes, they get sent to another page along with a parameter to trigger a custom state which makes the table visible.

I’m assuming its only temporarily deleting the current row because its open as a custom state.

I don’t know how I’d go around that.

If you are using states as a data source for your group:
Try adding another step to your delete icon workflow, ‘Set State of an element’ - choose the state that holds the content the group is showing, choose the same state, and for Value of that state, input the same state, but at the end ‘Minus: Current Cell’s Thing’ (or whichever option makes the most sense for how your table is laid out). This will remove that particular row or item from the state.

If you aren’t, something else to try: I imaging the group is showing a list of things attached to a parent thing? If so, in the workflow, instead of setting a state, you would add a workflow step where you remove This Row’s Thing from the parent thing.

i cant add the “:minus: current rows quote” to the end of the state because it is a yes/no state.

im pretty sure its a bug with the table element.

Yeah I agree…I think it’s best to file a bug report: https://bubble.io/support/report

Are you sure it’s not a privacy issue? This looks like a privacy rule issue.

2 Likes

I know elements can act funky in Bubble, but I didn’t think privacy rules since it disappears from the RG. Do you think it’s removing from the RG, but privacy rules prevent the actual thing from being deleted from the DB, which is why it re-populates on a page refresh?

Yes. Cause the exact thing happened to me on a few occasions.

2 Likes

I’m filing this in my memories as ‘remember this, you’ll probably run into it’ :smiley:

1 Like

Any idea on how i can set up privacy rules?

The current set up is as follows.
A requested quote data fileld, with fields such as users involved, procedure etc.
Users involved containt the current user as well as the clinic pages creator where you can request a quote.

I attempted setting up some privacy rules however i didn’t really see anything which allows for the removal of ‘requested quotes’ or the data field in general.

To anyone reading this,

I tested out deleting the row in a repeating group instead of a table element and added an icon with a workflow to delete the current row, no issues here.

Concluding that it is without a doubt a bug. The tabel element is most likely temporarily removing the data from the table but not the database. I already made a bug report but if anyone can pass this on to a member of the team it would be even better.

4 Likes

I have the same problem, it’s for sure a table element bug, i have no privacy rules set on data.
I made some workaround and now it works.

Hope they fix asap.

2 Likes

This is interesting. Was pretty sure it was a data privacy issue cause the symptoms are similar.

Would you mind sharing the workaround?

Same problem here : Deleting a thing using “current row’s” in a Table element is not deleting the Thing in the database.

Hope they ll fix it soon

Here is a workaround that is useful in several cases with new Table Element :
Instead of refering to “current row’s” thing, create a group inside your cell. This group has “current row’s” thing as a Data Source.
And then, inside this group, put your Text/icons/workflows, and they’ll refer to “Parent group’s” thing.

Just got an email saying the bug should be fixed.

This topic was automatically closed after 70 days. New replies are no longer allowed.