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

Hello Glide community!

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

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).


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

Any help would be appreciated :pray:

Take care!

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.

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?

Just referring to this part of your second screen shot:

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

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

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.

1 Like

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.

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.

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.

2 Likes

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.

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

1 Like