# How to pass selected record to new Tab

**URL:** <https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504>\
**Category:** Ask for Help\
**Created:** [August 28, 2023, 7:45pm UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504 "2023-08-28T19:45:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_b/32/63443_2.png) [@John\_B](https://community.glideapps.com/u/John_B)\
**Post date:** [August 28, 2023, 7:45pm UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/1 "2023-08-28T19:45:56Z")

</div>

I did not want to use the standard “Edit” screen, since they show the actual column names and can’t be customized with other components or UI, so I created a new Tab as an edit screen where users could make changes. However, whenever I click on any of the list of records, despite an action taking me to the editing Tab with that record, it always shows only the first record in the Data.  
Is there a way I can pass on which record was selected to the new Tab? I don’t see any way to do this with the RowID, for example, in an action.

 ![glide1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/c/8c0801ab23770ea136e6e66feb91badd5afe0445.png)  
 ![glidfe2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/b/ab0f80d276b93eb2fad3ed4b806fe262f3c5fa79.jpeg)

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [August 28, 2023, 8:34pm UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/2 "2023-08-28T20:34:09Z")

</div>

Edit screens are fully customizable.

---

<div class="post-metadata">

**Author:** ![John\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_b/32/63443_2.png) [@John\_B](https://community.glideapps.com/u/John_B)\
**Post date:** [August 28, 2023, 10:56pm UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/3 "2023-08-28T22:56:18Z")

</div>

Thank you, David, I had not realized how customizable they are!

However I am having issues creating a data grid inside of the Edit page, where I click on one record (ContactID 81 in image below), and the Data Grid shows data from another ContactID in a separate table. Can you suggest how I could tie these tables together so that Glide knows which user in the Birthday table should be associated with the Edit user in the Test Data 400 table? Thanks!

 ![grid-users](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/2/721ce88df5f4dbbb6f38fce84ed115f6712ec83e.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 29, 2023, 1:30am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/4 "2023-08-29T01:30:47Z")

</div>

Before we dive deeper into the issue, I wouldn’t suggest using a data grid on the edit screen. The edits are instantly saved when you interact with the data grid, and I think users would expect an edit to only be committed once you push the “Submit” button.

---

<div class="post-metadata">

**Author:** ![John\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_b/32/63443_2.png) [@John\_B](https://community.glideapps.com/u/John_B)\
**Post date:** [August 29, 2023, 3:20am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/5 "2023-08-29T03:20:13Z")

</div>

Could you suggest an alternative that could nest inside the Edit page? And also is there a way to pass the currently edited row to this subordinate table?  
Thanks,  
john

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 30, 2023, 12:48am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/6 "2023-08-30T00:48:26Z")

</div>

Can you describe more about your data structure? What are we editing here? What components do you need to have on the edit screen?

---

<div class="post-metadata">

**Author:** ![John\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_b/32/63443_2.png) [@John\_B](https://community.glideapps.com/u/John_B)\
**Post date:** [August 30, 2023, 12:57am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/7 "2023-08-30T00:57:38Z")

</div>

3 tables from Sheets: User Data and Birthdays and Anniversaries of family members, which typically have multiples per user with different data for each. This is a site for users to edit their own data, and add or edit the Birthdays and Anniversaries. Since there is a one to many relationship separate tables with some key seems logical. But I do not see how to have the Data Grid (or other Collection structure) pick up the User Id or Row Id from the currently edited record.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 30, 2023, 12:58am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/8 "2023-08-30T00:58:45Z")

</div>

So a user can be linked to multiple birthdays and anniversaries? Can multiple users be linked to the same birthday or anniversary?

---

<div class="post-metadata">

**Author:** ![John\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_b/32/63443_2.png) [@John\_B](https://community.glideapps.com/u/John_B)\
**Post date:** [August 30, 2023, 1:11am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/9 "2023-08-30T01:11:19Z")

</div>

No, only one user links to one set of birthdays, sorted by UserID in the Birthdays table.

---

<div class="post-metadata">

**Author:** ![John\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_b/32/63443_2.png) [@John\_B](https://community.glideapps.com/u/John_B)\
**Post date:** [August 30, 2023, 10:33pm UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/10 "2023-08-30T22:33:51Z")

</div>

How do people normally display Data Grids and Table collections inside Edit pages using data from other tables (eg. Payment Methods or Addresses for customers) in Glide, that use a Primary Key or RowID that matches the User table? Am I missing something obvious here?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 31, 2023, 1:52am UTC](https://community.glideapps.com/t/how-to-pass-selected-record-to-new-tab/65504/11 "2023-08-31T01:52:26Z")

</div>

> [@John\_B](#):
>
> How do people normally display Data Grids and Table collections inside Edit pages using data from other tables

They don’t.  
An edit form is for editing a single row of data. It doesn’t make sense to nest an editable Data Grid or a Collection inside an edit form.

> [@John\_B](#):
>
> But I do not see how to have the Data Grid (or other Collection structure) pick up the User Id or Row Id from the currently edited record.

Why do you need these related records on an edit screen? That doesn’t make sense. Why not have them on the details screen? That’s the way it would normally be done.
