# Button Add row and delete row don't have the same capacities. How to delete a row with a button that is not in tha same item?

**URL:** <https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302>\
**Category:** Ask for Help\
**Created:** [September 14, 2022, 4:26pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302 "2022-09-14T16:26:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Angle](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_angle/32/47002_2.png) [@Daniel\_Angle](https://community.glideapps.com/u/Daniel_Angle)\
**Post date:** [September 14, 2022, 4:26pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/1 "2022-09-14T16:26:36Z")

</div>

Hello!

Is possible to create rows with specific values in any table ( Fact)

but is not possible to delete rows from other tables, it just let’s to delete rows of the same table.

a. Is there a workaround?  
b. Can you make a update, to make possible that add row and delete row work the same?

Regards,  
Daniel

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 14, 2022, 4:37pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/2 "2022-09-14T16:37:24Z")

</div>

As long as you have a single relation column (or a single value → whole row column) linking to the row in whichever table you want, then you can delete that row through the single relation (or single value row). So to answer your question, yes it is very possible today to delete a row in any table.

Add Row and Delete are fundamentally different. When adding a row, you are not targeting a specific row, so it just adds a row to the end of the table. However when deleting a row, you have to explicitly specify which row you want to delete. So in that sense, they are not quite the same thing.

---

<div class="post-metadata">

**Author:** ![Daniel\_Angle](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_angle/32/47002_2.png) [@Daniel\_Angle](https://community.glideapps.com/u/Daniel_Angle)\
**Post date:** [September 14, 2022, 5:32pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/3 "2022-09-14T17:32:51Z")

</div>

Hello Mr Jeff!

Thanks for the quick reply. I undestand the logic of the system and the reason to have a relation to identify the row.

I tried to add a relation column using the creator mail which is present in both tables, but still not working.

Here is more context to my case:

Table A

Stores all the info of the instructor, contains all info in 1 row per instructor. All rows have a unique email

The display User View 1, is to allow users to input data related to Table A and also I made a BUTTON A to add a rows in TABLE B

The row is created and the values Class Name and Recurrency are passed in behind and populate Table B.

Recurrency value is just a text , for example Monday.

TABLE B  
Is created to store Class Name, Start Time and End Time. To make possible a calendar display of all instructor classes.

TASK  
I need to create a second button that deletes the row that I created with Button A. The button has to be also embbeded in the User View 1

Problem

I’m stuck on how to create the relation or enable for the user from User View 1 to delete rows of the Table B.

Makes sense?

 ![explain 2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/1/b12df02f46baaec030416ce000b9d51bca7d52be.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 14, 2022, 6:03pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/4 "2022-09-14T18:03:31Z")

</div>

Is your relation a single or multiple relation? You can only set column values through a relation or delete through a relation if it is a single relation. Once you have your single relation set up in table A, then when you create a button with a delete action, you will be able to choose that relation as an option.

---

<div class="post-metadata">

**Author:** ![Daniel\_Angle](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_angle/32/47002_2.png) [@Daniel\_Angle](https://community.glideapps.com/u/Daniel_Angle)\
**Post date:** [September 14, 2022, 7:53pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/5 "2022-09-14T19:53:24Z")

</div>

I created a relation colum in Table A, relating the creator name, but that is creating an array.

 ![Screen Shot 2022-09-14 at 1.46.41 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/a/aa8b64bf8caf66635d52350416bc779698385833.png)

Refer to picture “New Colum D”, it brings back all the classes, related to the creator mail in table B.

Still, back in table A , front end mode, when I create a new button, when I select “Delete Row”, it only allows me to delete the entire Table A Row

![Screen Shot 2022-09-14 at 1.46.25 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/1/e18561e1910dc17e2ff4cab90cf1e4f67b3b666f.png)

I’m using Click on Button A, to creat rows on Table B, so I can send Name, populate Start time & End Time, then use this table display a calendar of lessons.

![Screen Shot 2022-09-14 at 1.46.08 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/e/fea74f287a4e11a1eb8928123aad1dd2a11e2b8c.png)

this is what I propsed that Glide Team update system. Make the delete row, equivalent to add row, in terms of being able to select the table and rows to delete.

I’m lost on how to do the relation and be able to delete the row , clicking a button in User View 1

h

---

<div class="post-metadata">

**Author:** ![Daniel\_Angle](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daniel_angle/32/47002_2.png) [@Daniel\_Angle](https://community.glideapps.com/u/Daniel_Angle)\
**Post date:** [September 14, 2022, 8:09pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/6 "2022-09-14T20:09:28Z")

</div>

Got Mr Jeff.

I was creating the relation correctly , but not selecting the value that was correct.  
 ![Screen Shot 2022-09-14 at 2.09.05 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/9/b910fca503c3402187bf128fc0be93f92c67d9ec.png)

Thanks for the advice!

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [September 14, 2022, 8:10pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/7 "2022-09-14T20:10:28Z")

</div>

> [@Jeff\_Hager](#):
>
> You can only set column values through a relation or delete through a relation if it is a single relation.

Key word here is SINGLE relation. Your ‘New Column D’ relation is set up as a multiple relation. You’re not going to be able to delete anything through that relation until you switch it to a single relation.

Now the question is, which row do you want to delete? The first related row, the last related row, or a different row in between. Depending on your answer, you either need a single relation, or you may need to create a multiple relation with a single value → whole row column on top of it.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 15, 2022, 8:10pm UTC](https://community.glideapps.com/t/button-add-row-and-delete-row-dont-have-the-same-capacities-how-to-delete-a-row-with-a-button-that-is-not-in-tha-same-item/49302/8 "2022-09-15T20:10:34Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
