# Developing a breeding pedigree app - can't seem to display multiple generations of Relations on the same page

**URL:** <https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498>\
**Category:** Ask for Help\
**Created:** [February 5, 2024, 2:52am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498 "2024-02-05T02:52:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [February 5, 2024, 2:52am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/1 "2024-02-05T02:52:18Z")

</div>

I have a list of animals (650+), and each animal in the list has a mother & a father listed against them. I have created Relations for each column so we can see parentage & progeny.

The parents are included in the same initial list of 650 & they all have their own parents listed against them.

I’m trying to display a 4-generation pedigree chart that simply pulls the data from the initial list, for any selected animal - but I can’t seem to display more than 1 Relation per page.

Is there a different function to use?

Self-taught & learning as I go. Loving the power of this platform, but I’m stuck & can’t find this anywhere in the docs.

Think employee directory, and I want to display a company structure or reports for any given employee…

Thank you.

---

<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:** [February 5, 2024, 3:32am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/2 "2024-02-05T03:32:23Z")

</div>

Getting it displayed in a single chart would be a bit tricky, but you should be able to get nested collections easily enough.

I’m imagining the following:

- Two single relation columns: one that relates the child to the mother, and one that relates the child to the father
- You start with a collection that lists all animals (you could probably filter this to exclude rows where both collections are empty)
- On the collection details screen, you have another two collections. Each of those collections uses one of the parent relations as the source

I’m pretty sure the above will get you a nested collection.

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [February 5, 2024, 4:04am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/3 "2024-02-05T04:04:30Z")

</div>

Ok. Thanks. I’ll see if I can get that to work…

I didn’t realise you nest collections, but it sounds like it’s exactly what I need.

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [March 27, 2024, 10:22pm UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/4 "2024-03-27T22:22:40Z")

</div>

Hi Darren,

Me again. I’m hoping for more help on this. I have tried nesting collections (like you suggested), but I cannot get it to work right, or display the way I want it to.

I have had a separate need to create 2 pedigree charts, and I have manually done so in a spreadsheet. I have included a screenshot so you can see what I am after.

If each animal in the chart is in the original list (there are 650+ animals - all related to their respective mothers & fathers), I want to be able to search for an animal, and display it and its’ pedigree in a single screen chart. Ideally I’d like to put at all into a printable document with a watermark that says “unofficial” across it, but I’ll cross that bridge when I get to it.

The entire app was built from a coroprate directory template, so if you consider that I have a company directory with everyone’s supervisors (above), and team members (below), then you get the idea.

Effectively, take a corparate directory list, and display the CEO, the 2 Managing Directors, their 4 Senior Supervisors, their 8 Sub-Supervisors, and their 16 team members - everyone having one above & two below…

I only need to display one (searchaed) animal, and 4 previous generations. There is no need to go back further.

You said to nest collections, and I imagine 4 collections nested in each other from one searchable animal would be ideal…but I cannot figure out how to do so.

If you are able, could you please spare the time to explain it in a little more detail?

Thank you.

Ross

 ![Screenshot 2024-03-28 091207](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/b/6becd4335cec9e6d1f8d618e9a074bb8511e2020.jpeg)

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [March 27, 2024, 10:23pm UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/5 "2024-03-27T22:23:56Z")

</div>

So, in the screen shot example - a search for Beamish of Lilie a’Ghlinne would display the full chart, with all of the other animals filled in from the relation data that is contained in the original list.

---

<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:** [March 28, 2024, 1:45am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/6 "2024-03-28T01:45:32Z")

</div>

Can you show us how you’re structuring your data?

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [March 28, 2024, 2:30am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/7 "2024-03-28T02:30:57Z")

</div>

It’s 20 columns wide - it doesn’t fit on a single screenshot.

I’m not sure how to show you.

---

<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:** [March 28, 2024, 2:33am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/8 "2024-03-28T02:33:50Z")

</div>

So you’re having that chart’s info all in one row?

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [March 28, 2024, 2:34am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/9 "2024-03-28T02:34:52Z")

</div>

I have a Google Sheet as the base data source.  
Each row is a single cow, and subsequent rows list each father and mother (with relation columns). I also have other details listed beside each one (owner’s details, colour, DOB, etc).

I have managed to get Relations to show parents, and also reversed them to be able to show related offspring. That part works well.

I’m hoping to display multiple parent relations on the same page. I was advised to nest Collections inside collections, but I can’t see how to do that.

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [March 28, 2024, 2:35am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/10 "2024-03-28T02:35:31Z")

</div>

I’ll grab some screenshots, hopefully to can see how it goes together…

---

<div class="post-metadata">

**Author:** ![rossco](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@rossco](https://community.glideapps.com/u/rossco)\
**Post date:** [March 28, 2024, 2:41am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/11 "2024-03-28T02:41:36Z")

</div>

![Screenshot 1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/8/3824cfc73fcc0aa4a4fe5acac9e294909391c71c.jpeg)  
 ![Screenshot 2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/6/76ca3b5e7875a69bef7cea3cec761fecc69b0ce7.jpeg)  
 ![Screenshot 3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/c/0cbec5f412736f4e503aba6d1d7221c37b1dc48f.jpeg)  
 ![Screenshot 4](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/3/9314345bdea4f8c19a7623ec2ce9c3a1e914a96b.jpeg)

Screenshots 1,2,3,4 tile left to right, in that order. I’ve included the last colum in the next screenshot so you can see the overlap.

For reference, Sire is Father, Dam is Mother, and Progeny is offspring, Fold is the name of the farm. Ignore NLIS ID# column - it’s not in use yet. Everything else is just data on each individual animal.

This is the part where you tell me that my data source is a complete mess & that I should be ashamed of myself, right? 😁 😭 😉

---

<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:** [March 29, 2024, 1:23am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/12 "2024-03-29T01:23:31Z")

</div>

Hmm, I’m not sure how it can be done. Taking the ability to create a family tree out of the way for now, what I would have done is to have in a single row only the animal’s name, and its father & mother.

Once you have that, you can use relations to kind of connect things, but then I haven’t worked out in my mind how you can do multiple levels from that.

---

<div class="post-metadata">

**Author:** ![Chichap](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/chichap/32/42361_2.png) [@Chichap](https://community.glideapps.com/u/Chichap)\
**Post date:** [June 25, 2025, 6:25am UTC](https://community.glideapps.com/t/developing-a-breeding-pedigree-app-cant-seem-to-display-multiple-generations-of-relations-on-the-same-page/70498/13 "2025-06-25T06:25:35Z")

</div>

If you still need assistance on this, update this topic.  
I made a working web app for pedigree system.
