# Group Multiple rows

**URL:** <https://community.glideapps.com/t/group-multiple-rows/71371>\
**Category:** Ask for Help\
**Created:** [March 3, 2024, 4:04pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371 "2024-03-03T16:04:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tre\_Guerrero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tre_guerrero/32/70314_2.png) [@Tre\_Guerrero](https://community.glideapps.com/u/Tre_Guerrero)\
**Post date:** [March 3, 2024, 4:04pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/1 "2024-03-03T16:04:41Z")

</div>

I have two tables: Table A and Table B

Table A: Library of data that should not be changed  
Table B: is the table in question

I would like to have users select as many items as they would like from Table A and those items be copy and pasted into table b as new rows. (when the data is copied it brings the entire row from Table A). I allow the user to edit the data in table B (there are 5 columns and they have the ability to edit the data in all 5 columns). once the user is done editing, I would like to group all these items so that I can display it in a collection while still giving the user the ability to go back and edit those items at any time.

are there any suggestions on how to approach this?

---

<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 3, 2024, 4:20pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/2 "2024-03-03T16:20:29Z")

</div>

You can have an action on the TableA collection to Add Row when the item is clicked.

Then show another collection for TableB and enable editing for those items.

---

<div class="post-metadata">

**Author:** ![Tre\_Guerrero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tre_guerrero/32/70314_2.png) [@Tre\_Guerrero](https://community.glideapps.com/u/Tre_Guerrero)\
**Post date:** [March 3, 2024, 4:28pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/3 "2024-03-03T16:28:03Z")

</div>

But the table B won’t have those specific items grouped together right? For more context, Table A is a food Library. Table B is intended to be a recipe table. I would like users to choose as many food items from the food library, change the serving size for each food item, and then once they have completed adding all the food items and changing serving sizes, they can save that to a single recipe. When they go and view the recipe they can see all the food items and still have the ability to edit the servings on each food item.

---

<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 3, 2024, 4:48pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/4 "2024-03-03T16:48:50Z")

</div>

OK… I guess that depends a lot on your app flow. How do you specify a new recipe? I would think you could write that recipe name or ID into it’s own column at the same time that you are creating the new rows.

---

<div class="post-metadata">

**Author:** ![Tre\_Guerrero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tre_guerrero/32/70314_2.png) [@Tre\_Guerrero](https://community.glideapps.com/u/Tre_Guerrero)\
**Post date:** [March 3, 2024, 4:50pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/5 "2024-03-03T16:50:47Z")

</div>

yes, I would put the recipe name in it’s own column but I am not sure how to display these grouped items to the user since they are all in different rows

---

<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 3, 2024, 5:00pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/6 "2024-03-03T17:00:26Z")

</div>

You can use a collection to display multiple rows. That collection can be sourced from a relation, or a query, or can simply be filtered based on the Recipe Name or ID. It’s really hard to give specific details without knowing much about your app, what the desired flow is, and what the desired outcome is. All I can say is that it’s 100% possible.

---

<div class="post-metadata">

**Author:** ![Tre\_Guerrero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tre_guerrero/32/70314_2.png) [@Tre\_Guerrero](https://community.glideapps.com/u/Tre_Guerrero)\
**Post date:** [March 3, 2024, 5:24pm UTC](https://community.glideapps.com/t/group-multiple-rows/71371/7 "2024-03-03T17:24:53Z")

</div>

ok thank you, I will give it a shot later on today and report back.

---

<div class="post-metadata">

**Author:** ![Tre\_Guerrero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tre_guerrero/32/70314_2.png) [@Tre\_Guerrero](https://community.glideapps.com/u/Tre_Guerrero)\
**Post date:** [March 5, 2024, 3:05am UTC](https://community.glideapps.com/t/group-multiple-rows/71371/8 "2024-03-05T03:05:02Z")

</div>

yes this worked! I did not know you could make a collection based on a relation. thanks!

---

<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:** [March 12, 2024, 3:05am UTC](https://community.glideapps.com/t/group-multiple-rows/71371/9 "2024-03-12T03:05:31Z")

</div>

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