# How to preserve the same layout when you replace a data source

**URL:** <https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458>\
**Category:** Ask for Help\
**Created:** [December 9, 2024, 2:03am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458 "2024-12-09T02:03:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![TM1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tm1/32/79855_2.png) [@TM1](https://community.glideapps.com/u/TM1)\
**Post date:** [December 9, 2024, 2:03am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/1 "2024-12-09T02:03:30Z")

</div>

Hello Glide community!

I created this app several months ago to help me with choosing a health plan:

> **[Choose Health Insurance](https://choose-health-insurance.glide.page/dl/74c4fe)**
>
> Comparing health insurance plans based on needs

I thought I would be just able to upload the new data table and have the same layout this time, but I’m messing up somewhere because the layout changes.

I go to Screen from data (take a look at my screenshot) and when I choose different data source, the entire app layout changes (take a look at my screenshot).

 ![Layout change](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/0/e0238ce13b744792939e4ff47fd9d26a647c6d36.png)  
 ![Screen from data](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/8/781ebe29146b6f34528e7cc04b57fa38c208dfa8.png)

Is there any way that I can link the app with already established layout to the new data source?

Any help would be appreciated 🙏

Take care!

---

<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:** [December 9, 2024, 2:12am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/2 "2024-12-09T02:12:17Z")

</div>

Screen layouts are bound to tables. If you want to preserve the same layout with new data, then you should add that data to an existing table.

---

<div class="post-metadata">

**Author:** ![TM1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tm1/32/79855_2.png) [@TM1](https://community.glideapps.com/u/TM1)\
**Post date:** [December 9, 2024, 2:16am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/3 "2024-12-09T02:16:12Z")

</div>

The new data source is actually linked to the previous table. Otherwise, I wouldn’t be able to see it within the app, right?

Am I missing something?

---

<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:** [December 9, 2024, 2:22am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/4 "2024-12-09T02:22:20Z")

</div>

Just referring to this part of your second screen shot:

 ![CleanShot 2024-12-09 at 10.20.53@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/8/18aa4a939e1667d923aa78858cd60cbaeb175dd9.png)

It appears that you have two tables that contain Health Plans?

---

<div class="post-metadata">

**Author:** ![TM1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tm1/32/79855_2.png) [@TM1](https://community.glideapps.com/u/TM1)\
**Post date:** [December 9, 2024, 2:28am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/5 "2024-12-09T02:28:15Z")

</div>

Yes, the first one is for 2024; the second one for 2025.

---

<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:** [December 9, 2024, 2:33am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/6 "2024-12-09T02:33:13Z")

</div>

Yes, so that’s what I mean.  
If you put all the data in one table, then you can use a single layout and apply filters to separate by year.

If you absolutely must have the data in separate tables, then what you could do is copy/paste the components from the first layout, although this isn’t recommended. It’s almost always better to keep similar data in a single table.

---

<div class="post-metadata">

**Author:** ![TM1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tm1/32/79855_2.png) [@TM1](https://community.glideapps.com/u/TM1)\
**Post date:** [December 9, 2024, 2:36am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/7 "2024-12-09T02:36:00Z")

</div>

But if I put all the data in the same table, I would have duplicates for each row. The name of each column is the same.

---

<div class="post-metadata">

**Author:** ![TM1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tm1/32/79855_2.png) [@TM1](https://community.glideapps.com/u/TM1)\
**Post date:** [December 9, 2024, 2:52am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/8 "2024-12-09T02:52:21Z")

</div>

Thank you for your help.

I really don’t know why I created the app in the first place, if I can’t use it with the same type of data.

---

<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 9, 2024, 3:07am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/9 "2024-12-09T03:07:57Z")

</div>

But do you still need the 2024 data? Couldn’t you delete the old data since I imagine you don’t care about 2024 coverages anymore?

If you absolutely need both years for some reason, then I think it would make more sense to add a year column, apply 2024 to the existing data, then import the new data with 2025 as the year. Then just filter as needed. This would solve the duplicate rows problem.

As Darren mentioned, screen layouts are inherently tied to the underlying data. That is how Glide has worked from day one. If you change the data source, then it’s a new and separate screen layout. But if you import new data into the existing table, then you can still use the existing screen layouts tied to that data source.

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [December 9, 2024, 10:58am UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/10 "2024-12-09T10:58:56Z")

</div>

If you want to change source while keeping components, what I do is right click on the components section, copy all, change the source, right click Paste.

---

<div class="post-metadata">

**Author:** ![TM1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tm1/32/79855_2.png) [@TM1](https://community.glideapps.com/u/TM1)\
**Post date:** [December 9, 2024, 11:39pm UTC](https://community.glideapps.com/t/how-to-preserve-the-same-layout-when-you-replace-a-data-source/78458/11 "2024-12-09T23:39:19Z")

</div>

Thank you, Maxime. I’ll try to do that when I find time
