# Glide Pages Relations

**URL:** https://community.glideapps.com/t/glide-pages-relations/58717
**Category:** Ask for Help
**Created:** [March 3, 2023, 9:44am UTC](https://community.glideapps.com/t/glide-pages-relations/58717 "2023-03-03T09:44:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [March 3, 2023, 9:44am UTC](https://community.glideapps.com/t/glide-pages-relations/58717/1 "2023-03-03T09:44:23Z")

</div>

Hi

I’m having a brain fade and struggling a little with relations.

Context:  
I’ve created a B2B CRM Glide Page. We sell capital equipment and consumables to manufacturers. I have a product catalogue, customers, contacts and a list of equipment on site, both ours and competitors.

I have multiple sheets but in this context there are 3 primary ones :

1. Customers
2. Machines
3. Customer Equipment

Within the customer page I have a list of equipment on site with a button to add equipment as needed. This points to the Customer equipment sheet. See below…

 ![Screenshot 2023-03-03 at 6.54.30 pm](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/6/4627a2da44e560eb8d9bd33cd91169f986dae7f6.png)  
Within the sheet it will add the customer name, Model, Product code, Date of Manufacture, Date of installation and some other fields and allow me to add photo’s.

Machines can be one piece only or made up of components which assemble to be one.

Example above

Machine = Stitchliner 5500

Components below:  
ACF-30  
SPF-30  
HTS-30  
TB-30

What I’m trying to do is be able to click the machine and once in detail screen see its components. See below…

 ![Screenshot 2023-03-03 at 6.45.18 pm](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/4/341666f3397c58445c8dc043fee5555a23b7125d.jpeg)

The problem I’m having is that when I create the relationship from an array and match multiple I get multiple customers. Table below from left to right :

 ![Screenshot 2023-03-03 at 7.16.32 pm copy](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/a/6a861ebbef72e180ce5d5349ba51b72ca55b4534.jpeg)

 ![Screenshot 2023-03-03 at 7.40.38 pm](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/a/4a98f4ba96300207cb361bd1c90d5a20aa93e3a4.jpeg)

As you can see above Several customers are in the relationship. Multiple customers have the same Model but each should be treated independently. Presumably I should have a customer id from the customer sheet or something to link it all.

As i mentioned above I’m having a brain fade and would appreciate some advice to bring it back to life. Can you help?

Thanks in advance…cheers

Mike

---

<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: [March 3, 2023, 9:59am UTC](https://community.glideapps.com/t/glide-pages-relations/58717/2 "2023-03-03T09:59:39Z")

</div>

> [@Mozzie](#):
>
> What I’m trying to do is be able to click the machine and once in detail screen see its components.

I think what I would do is add a ParentID column to your Company Equipment table.  
So then for example when you add the ACF-30 and you want it associated with the Stichliner 550, you write the RowID of the Stichliner 500 into the ParentID column.

You can then create a multiple relation column in your Company Equipment table that matches the RowID with the ParentID, and use that in a collection on your Equipment Details screen.

---

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [March 3, 2023, 10:46am UTC](https://community.glideapps.com/t/glide-pages-relations/58717/3 "2023-03-03T10:46:26Z")

</div>

Thanks for your reply. Will this associate each line with the individual customer? Each model might be the same but the serial, date of manufacture / install etc will be different for each customer.  
cheers

---

<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: [March 3, 2023, 10:50am UTC](https://community.glideapps.com/t/glide-pages-relations/58717/4 "2023-03-03T10:50:31Z")

</div>

I was working on the assumption that you already have a column for CustomerID?  
If you don’t, then you probably should add one.

---

<div class="post-metadata">

### Author: ![Mozzie](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mozzie/32/17519_2.png) [@Mozzie](https://community.glideapps.com/u/Mozzie)
#### Post date: [March 3, 2023, 10:51am UTC](https://community.glideapps.com/t/glide-pages-relations/58717/5 "2023-03-03T10:51:51Z")

</div>

Aaaah yes. cheers
