# Populate different rows with the same action

**URL:** <https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631>\
**Category:** Ask for Help\
**Created:** [February 7, 2023, 9:41pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631 "2023-02-07T21:41:13Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 7, 2023, 9:41pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/1 "2023-02-07T21:41:13Z")

</div>

Hello everybody,

I would like to know wether it’s possible to populate diferent rows in a speciffic column throught a relation. I’ve been trying with set up column and increment number but suddenly the button desapears and it’s no possible to trigger the action.

Any tips will be apreciatte.

Many thanks

Albert

---

<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:** [February 7, 2023, 10:13pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/3 "2023-02-07T22:13:07Z")

</div>

Can you show how your action is configured?

---

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 7, 2023, 11:15pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/4 "2023-02-07T23:15:13Z")

</div>

Here, thanks ;)!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/7/57de04af3a858340ea1d31c2f3005d5c7f77e192.jpeg)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/3/233ff0ce183be661f4956ea28e48f458f0932a5a.jpeg)

---

<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:** [February 7, 2023, 11:24pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/5 "2023-02-07T23:24:26Z")

</div>

Looks pretty straightforward.

I assume it is, but is your relation a single relation? You can only use a Set Column action with a single relation. If your relation has ‘Multiple’ checked, then it won’t work.

Can you confirm that the row attached to the screen, that contains the button, has a value in the relation column?

---

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 8, 2023, 4:10pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/6 "2023-02-08T16:10:33Z")

</div>

Hello Jeff,

Thanks for your answer. Indeed the relation is a single one. Here a imatge if it helps:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/2/62435e4b58b64ab44505b22c8eb882176d4ef433.jpeg)

Here an image where you can see that the button doesn’t apears in the Lay out:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/5/25dc617971688469c363c11ca6fbb1e086e59421.jpeg)

Many thanks in advanced 😉

Albert

---

<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:** [February 8, 2023, 6:00pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/7 "2023-02-08T18:00:06Z")

</div>

Which row is that in your data? Does that row have a relation that’s filled? I see several rows with relations that don’t have any matches.

---

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 8, 2023, 7:01pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/8 "2023-02-08T19:01:40Z")

</div>

Hi Jeff,

What I am looking for is to populate only the rows that are in the relation I showed before.

The column relation in this case is “Relació contingut setmanal” that it has several matches but not all the sheet rows obiously. Is that what you asked me?

Thanks again.

Albert

---

<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:** [February 8, 2023, 7:36pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/9 "2023-02-08T19:36:06Z")

</div>

Your screen is showing the details of one specific row. What I’m trying to understand is if the relation in that specific row has matches in the relation. I can’t tell from your screenshots which row that screen is attached to. You are showing more than 30 rows. Which one is it that you are viewing? If the relation is empty for that specific row, then the button is obviously not going to show because there is no row for the Set Column action to update.

I understand what you are trying to do, but I need to understand if the relation is empty or not for the row you are viewing.

---

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 8, 2023, 10:08pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/10 "2023-02-08T22:08:34Z")

</div>

Hi Jeff,

Now I see what you ment. The button is in the first row so it desapears as soon as I click it. This can be arranged but the problem still remains because the action only populate the first row and not the rest that are in the relation column.

Hope now I explained myself better, sorry for the inconvinience.

Many thanks.

Albert

---

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 8, 2023, 10:17pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/11 "2023-02-08T22:17:12Z")

</div>

I mean that the button doesn’t populate all the rows that are in the relation in just one click, I have to push it on time per row. Is there a way to populate all at once in just one clic?

Thanks again.

Albert

---

<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:** [February 8, 2023, 10:50pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/12 "2023-02-08T22:50:53Z")

</div>

> [@Albert\_Puig](#):
>
> The button is in the first row so it desapears as soon as I click it

Based on your screenshot, the relation is empty in the first row. Because of that, there is nothing for a Set Column to set because the relation is empty. For that reason, there is nothing the button can do, so it won’t show up.

 ![Screenshot_20230208-164344](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/9/c9db64dced23b24e3427780f9e117636901b6518.jpeg)

> [@Albert\_Puig](#):
>
> This can be arranged but the problem still remains because the action only populate the first row and not the rest that are in the relation column.

> [@Albert\_Puig](#):
>
> Is there a way to populate all at once in just one clic?

I’m not sure I understand. It seems like you are describing a multiple relation, but you said earlier that it’s a single relation. If it’s a single relation, then the relation will only find one matching row, and that’s the only row you can update. It won’t find more than one. If it’s a multiple relation, then it’s possible for the relation to find multiple matches, but you can’t use a Set Column action on multiple rows through a multiple relation. The only kind of action you can do through a multiple relation is a Delete Row action.

---

<div class="post-metadata">

**Author:** ![Albert\_Puig](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/albert_puig/32/84707_2.png) [@Albert\_Puig](https://community.glideapps.com/u/Albert_Puig)\
**Post date:** [February 10, 2023, 6:07pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/13 "2023-02-10T18:07:26Z")

</div>

OK Jeff, I understand that to populate in one clic several rows is only available with delete row action.

Thanks for your help. I’ll find another way to reach the pourpouse.

Have a nice weekend ;)!

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdo/32/36540_2.png) [@abdo](https://community.glideapps.com/u/abdo)\
**Post date:** [February 10, 2023, 7:29pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/14 "2023-02-10T19:29:42Z")

</div>

> [@Jeff\_Hager](#):
>
> The only kind of action you can do through a multiple relation is a Delete Row action

Its possible to delete multiple rows in one action? So if I delete an order, can delete all items that share the same order number?

---

<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:** [February 10, 2023, 8:44pm UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/15 "2023-02-10T20:44:30Z")

</div>

Yes, you can delete multiple rows through a multiple relation.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdo/32/36540_2.png) [@abdo](https://community.glideapps.com/u/abdo)\
**Post date:** [February 11, 2023, 4:00am UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/16 "2023-02-11T04:00:33Z")

</div>

Wasn’t aware of that. wondering if its safe to do that to

- delete hundred of rows at once.
- and whether current users of the app will face issues using the app while the delete process is done and their devices sync with the new data

currently i manually delete rows from our google sheet every few days. if there are users online, they start to view duplicates and problems happen. when they update a row, another row is updated by mistake. therefore we do the delete early hours when no users online

---

<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:** [February 11, 2023, 4:25am UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/17 "2023-02-11T04:25:36Z")

</div>

> [@new Deleting multiple rows from a delete action](https://community.glideapps.com/t/deleting-multiple-rows-from-a-delete-action/54734):
>
> It has finally arrived.

I believe it will count each row that’s deleted as an update.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abdo/32/36540_2.png) [@abdo](https://community.glideapps.com/u/abdo)\
**Post date:** [February 11, 2023, 6:30am UTC](https://community.glideapps.com/t/populate-different-rows-with-the-same-action/57631/18 "2023-02-11T06:30:04Z")

</div>

I was just about to try it on a staging 6000 row app 😌  
better stay with manual delete then i guess
