# Set all values in a column (at the push of a button)?

**URL:** <https://community.glideapps.com/t/set-all-values-in-a-column-at-the-push-of-a-button/58777>\
**Category:** Ask for Help\
**Created:** [March 5, 2023, 3:10am UTC](https://community.glideapps.com/t/set-all-values-in-a-column-at-the-push-of-a-button/58777 "2023-03-05T03:10:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [March 5, 2023, 5:01am UTC](https://community.glideapps.com/t/set-all-values-in-a-column-at-the-push-of-a-button/58777/3 "2023-03-05T05:01:30Z")

</div>

First, I want to make it clear that you can not natively do a Set Column action on multiple rows. The only thing you can do against multiple rows is a Delete Row action.

> [@Neil\_Johnson](#):
>
> How do I know what this is connected to, or change it for that matter? Which item is THIS ITEM?!

‘This Item’ is the current row attached to the screen you were viewing when you clicked on the button.

> [@Darren\_Murphy](#):
>
> You probably want some variation of the below:

To add to what @Darren_Murphy shared, that method should work, but since your are dealing with quantities instead of true/false, like that example is doing, you may need some additional logic, after you reset the rows, to reset quantity for a row when you click on, or make a change, in that row. So you would do a Set Column to zero before adding the quantity. This would happen when you set a new Unique ID to mark a row as selected.

I’ll also mention that the Reset Rows method mentioned above is a precursor to this example below, which does deal with quantities, so may be a better example to look at.

> [@Shopping Cart Concept for demonstration purposes](https://community.glideapps.com/t/shopping-cart-concept-for-demonstration-purposes/33264):
>
> First of all, I want to say that I’m personally not a big fan of ecommerce type apps with Glide. There’s a lot of complexity to them and everybody has a different view for how they should work. Because of that, I generally don’t give advice on how to do things with them. Glide has said that ecommerce is not the direction they are focused on and I think Glide is short on some logic and functionality to properly handle the purchase and inventory side of things. With that said, I still made an …

---

_[View the full topic](https://community.glideapps.com/t/set-all-values-in-a-column-at-the-push-of-a-button/58777)._
