# Data Entry - Single to multiple releationship

**URL:** https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208
**Category:** Ask for Help
**Created:** [December 30, 2019, 6:40pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208 "2019-12-30T18:40:09Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Aj2666](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aj2666/32/1822_2.png) [@Aj2666](https://community.glideapps.com/u/Aj2666)
#### Post date: [December 30, 2019, 6:40pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/1 "2019-12-30T18:40:09Z")

</div>

Dear Glide community,

I am looking for guidance to a problem that I am facing in data entr; I have two (2) sheets where  
Sheet 1 has Play Title (key), Play Description (One Record / Row)  
Sheet 2 Has Play Title (key), Actors (Multiple Records / Rows)  
Where the relationship between Sheet 1 and Sheet 2 is one to many.

So, my questions are:

1. How do I handle that in the Data Entry screen (i.e. One Play Title is entered and then all actors within that Play title are entered in a separate sheet)?
2. How do I ensure that the Play Title from Sheet one is correctly entered/transferred/copied into Sheet 2?
3. How do I prompt users to enter multiple-rows in one screen?

Thanks,

---

<div class="post-metadata">

### Author: ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)
#### Post date: [December 30, 2019, 6:58pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/2 "2019-12-30T18:58:42Z")

</div>

You need a third sheet to hold the relations. Then while on the Play detail screen (Sheet 1) you have a Form Button that saves to that 3rd sheet. You can only add one actor at a time however. You could use a choice component to select the actor from a list of actors. You could use a Column component to, pointing to the Play Title (key) and save that along with the Actors key to that 3rd sheet.

---

<div class="post-metadata">

### Author: ![Aj2666](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aj2666/32/1822_2.png) [@Aj2666](https://community.glideapps.com/u/Aj2666)
#### Post date: [December 31, 2019, 6:17am UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/3 "2019-12-31T06:17:21Z")

</div>

Thank you @George_B . I think I understand the solution but not sure how to translate it in Glide. Would it be possible, to have a demo? Thanks in advance and Happy New Year!

---

<div class="post-metadata">

### Author: ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)
#### Post date: [December 31, 2019, 12:31pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/4 "2019-12-31T12:31:57Z")

</div>

Create a spreadsheet with some data, play sheet, actor sheet, then share it in this thread and I’ll see what I can do.

---

<div class="post-metadata">

### Author: ![Aj2666](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aj2666/32/1822_2.png) [@Aj2666](https://community.glideapps.com/u/Aj2666)
#### Post date: [December 31, 2019, 2:19pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/5 "2019-12-31T14:19:22Z")

</div>

Thanks @George_B, truly appreciated.  
A sample data was populated in the attached sheet to further demonstrate what I am trying to accomplish. Again many thanks for the assistance.  
[Play Sheet Structure](https://drive.google.com/open?id=1SduzteqZrcEsU9j7_AnBgQWTQimnK3nV)

Link to google Sheet

> **[PNT](https://docs.google.com/spreadsheets/d/1dk9Cg7Ht0CB9EFAtGeesSDFz_9yJhjltKzGmN60Ifh0/edit?usp=sharing)**
>
> Play
> 
> UUID,Play Title,Play Short Description,Play Description,Play Duration
> The Disco Biscuits,Running time: 2hrs 5mins. No intermission. 
> Come From Away,Running time: 2hrs 5mins. No intermission. 
> Slave Play,Running time: 2hrs 5mins. No...

---

<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: [December 31, 2019, 3:21pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/6 "2019-12-31T15:21:05Z")

</div>

How do you plan to display the information in the app. What I’m thinking is to maybe create 20 columns for each play (Actor 1, Actor 2, Actor 3, etc.) Then when editing the play details you could create a choice component for each actor column. When displaying the play details, you could use the created array of Actor as a relation to the actors sheets, so you could display a list of all the actors in that play and select each one to cure the actual details.

---

<div class="post-metadata">

### Author: ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)
#### Post date: [December 31, 2019, 3:56pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/7 "2019-12-31T15:56:15Z")

</div>

So to start off I needed to populate the UUID’s with data so I used this online tool to generate UUID’s [https://www.uuidgenerator.net/](https://www.uuidgenerator.net/)

Next step was to “normalize” the data. I linked all the UUID’s and then deleted the columns that had the Play Name in all Sheets except the Play sheet.

There is a short coming of Glide at the moment in my opinion with the Choice Component where you can’t have is show one column but save the data from another column to the destination sheet column. So you can’t fully “normalize” the Actors List and have to save the name of the actor instead of the actors UUID.

Anyway then I created a few columns in Glide to link everything up and do a few lookups. Once you copy the app take a look at the Data tab and you will see those within Glide created columns. The start with rel\_ (Relation) or lu\_ (Lookup)

Here is the link to the app: [https://vlpxo.glideapp.io](https://vlpxo.glideapp.io)

It needs a lot of work and testing but you can add an actor to a play and add a play date. I have about an hour into it, you are on your own now.

---

<div class="post-metadata">

### Author: ![Aj2666](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/aj2666/32/1822_2.png) [@Aj2666](https://community.glideapps.com/u/Aj2666)
#### Post date: [December 31, 2019, 5:19pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/8 "2019-12-31T17:19:19Z")

</div>

Thank you ! I truly appreciate taking the time to put together the solution into a demo. I know fully understand the concept of relation and how it can be used interchangeably. Again, thank you and Wish you a happy new year.

---

<div class="post-metadata">

### Author: ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)
#### Post date: [December 31, 2019, 10:48pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/9 "2019-12-31T22:48:52Z")

</div>

You’re welcome.  
@david @Mark @Jason This is a good example of why we need the Choice Component to have keyed pairs like this post describes. [Choice Component - allow key display pairs](https://community.glideapps.com/t/choice-component-allow-key-display-pairs/581)  
Instead of using the Form component for this app one could have just used plain old adds for any of the various sheets. Then for any and all data elements that have links via keys it would be a simple matter of adding multiple choice components. So again for this example the Actors sheet would only need two columns in the Google spreadsheet, the UUID key for the Play and the Actor. All the other information could be had in the application via Glide created columns for Relations and Lookups. Using something like the actual Actors name for the key is not a good idea in any relational database, which is ultimately what the data is being changed into.

---

<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: [January 1, 2020, 12:12am UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/10 "2020-01-01T00:12:33Z")

</div>

I think we will completely reinvent Choice so that it picks one or more related rows, like a ‘Relation Choice’. Then when picking you can show the list of options any way you’d like—as tiles, even a map or calendar.

---

<div class="post-metadata">

### Author: ![Juan\_Gutierrez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/juan_gutierrez/32/692_2.png) [@Juan\_Gutierrez](https://community.glideapps.com/u/Juan_Gutierrez)
#### Post date: [April 26, 2020, 10:52pm UTC](https://community.glideapps.com/t/data-entry-single-to-multiple-releationship/3208/11 "2020-04-26T22:52:05Z")

</div>

When you generate a new actor, what happens to the UUID issue, it doesn’t generate itself, right? Thank you
