# Add categories and subcategories on the same map

**URL:** <https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108>\
**Category:** Ask for Help\
**Created:** [July 8, 2022, 8:15am UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108 "2022-07-08T08:15:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Az](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_az/32/35332_2.png) [@Alexandre\_Az](https://community.glideapps.com/u/Alexandre_Az)\
**Post date:** [July 8, 2022, 8:15am UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/1 "2022-07-08T08:15:16Z")

</div>

Hi , I have categories and subcategories (companies with several addresses).  
I make Relations and Array but I can’t make an array from a relation and I can’t use an array as the data source of the map.

Is there a possibility to display all addresses on the same list / map ?  
Thanks and regards.

---

<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:** [July 8, 2022, 11:56am UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/2 "2022-07-08T11:56:35Z")

</div>

Lists need data to be in rows. Not arrays. If you have a company table and an address table with a relation linking them together, then you should be able to use the relation as the source of your map list.

---

<div class="post-metadata">

**Author:** ![Alexandre\_Az](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_az/32/35332_2.png) [@Alexandre\_Az](https://community.glideapps.com/u/Alexandre_Az)\
**Post date:** [July 8, 2022, 12:39pm UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/3 "2022-07-08T12:39:58Z")

</div>

Hi, thank you for your answer.  
Yes I have a company table and address table but I can’t find the relation as the source :

 ![Capture d’écran 2022-07-08 143816](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/0/2075560abaa1d4d14c197e09a1665b1e7ff8b732.jpeg)

Do you have an idea why the relation column is displayed in my table with data inside but I can’t find it as a source …?

---

<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:** [July 8, 2022, 12:48pm UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/4 "2022-07-08T12:48:06Z")

</div>

What is the source of that screen and how did you navigate there? The relation won’t show in the address setting. The source for the map list should be the relation. I assume you should be viewing the details screen for the company, and on that details screen you should have an inline list. That inline list is what should be sourced from the relation.

---

<div class="post-metadata">

**Author:** ![Alexandre\_Az](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_az/32/35332_2.png) [@Alexandre\_Az](https://community.glideapps.com/u/Alexandre_Az)\
**Post date:** [July 8, 2022, 1:20pm UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/5 "2022-07-08T13:20:41Z")

</div>

OK I think I understand what you meant. I have the inline lists with the maps for the subcategories.  
What I am trying to do is having all adresses (Companies addresses and all their subcategories addresses) on the same map of the tab.

Do you know if this is possible and how to do it ?

Or maybe the only possibility would be to make a complete table with a column company and a column address.

---

<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:** [July 8, 2022, 1:30pm UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/6 "2022-07-08T13:30:52Z")

</div>

> [@Alexandre\_Az](#):
>
> Companies addresses and all their subcategories addresses

So you are trying to show the address from the company table as well as the related addresses from the address table in the same map? That won’t work. All addresses need to be in the same table.

> [@Alexandre\_Az](#):
>
> Or maybe the only possibility would be to make a complete table with a column company and a column address.

Yes, this makes sense to me. place all addresses in one table, then use the company name or a company ID to create the relation from the company table to the address table.

---

<div class="post-metadata">

**Author:** ![Alexandre\_Az](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alexandre_az/32/35332_2.png) [@Alexandre\_Az](https://community.glideapps.com/u/Alexandre_Az)\
**Post date:** [July 8, 2022, 1:39pm UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/7 "2022-07-08T13:39:33Z")

</div>

Yes I think it’s logical after all.  
Thank you for your help @Jeff_Hager ! 😀

---

<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:** [July 9, 2022, 1:40pm UTC](https://community.glideapps.com/t/add-categories-and-subcategories-on-the-same-map/44108/8 "2022-07-09T13:40:10Z")

</div>

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