How do i make my inline lists independable?

I have a video question for better understanding and solution. pls, go through it.

The way Glide is designed, the layout of the detail screen is linked to the sheet, so any list that goes to the same sheet will have the same layout.

Are you trying to get different items in the same list to have difference detail layouts, or do you only want each inline list to have different details? If you only want each inline list to be different, then I would recommend either creating separate sheets for each subject list, or set the visibility on each component in the details to show or hide depending on which subject type you are viewing. Hope that helps.

1 Like

Same issue here. I have multiple “list relations” within the same screen and referencing the same sheet, but I want each “list relation” to have different layouts, but when I change the layout structure of one, it changes it on all of them.

@mI have the same issue as well. I wish there was a way to make the inline list independent. When I click on one item within the inline, the same thing is coming up for the other items. This has been holding me back from making progress on my app. Can someone help please.

1 Like

To solve this problem, I have created another column in the content sheet called “Layout”. This holds different layout values e.g. Article Layout 1, Video Layout 1 etc.

Using this value I can add multiple display fields, and hide the visibility based on the value in the Layout column. This gives me the ability to show the Video component, if it is Video Layout 1 etc.

@uhwi_developer thank you, I appreciate your assistance!

You can also use this option in the list properties.


1 Like

Thank you @Jeff_Hager I had figured that out, that is exactly what I needed.

1 Like

This thread has been here for a while, but I’m trying to configure various inline lists and list relations that are linked to the same screen and running into this same issue.
The problem with using the “independent screen configuration per item” is that I have to configure each item to be the same and every time a new item is added, I have to reconfigure that item as well.
Do you know if there a way for each inline list on various screens to be different even if they link to the same sheet?

If you want the entire list to have the same details layout for each list item, but have a different layout when accessed from a different inline list elsewhere in your app, then you will have to create a duplicate of the data in the the google sheet. Layouts are tied to sheets, so the only way to get a different layout, without using the independent screen configuration, is to have a separate sheet.

1 Like

Ok, so I might have to actually create new sheets for specific views.
I’m guessing this will actually double the number of rows that I’m having to use is that correct?

Yes, it would. Can you explain your use case a little bit? Maybe there is a better way if we understand what you are trying to accomplish.

I have users (doctors in this case) that, when they are given access to a visit, need to see some patient details such as preexisting conditions, allergies, past visits, etc.

Originally, I had the patients in a separate sheet from the health professionals, but this created problems in developing a patient UI so that they could see their health history and linking it to all of the existing visits.

Either way, sometimes I need different information to be displayed in one inline list versus another depending on the screen from which it’s accessed.

Sounds like you have mixed the doctors and patients together in one sheet? Not sure I understand why you would need to do that.

My advice would be to still have separate sheets for doctors and patients, and also have a separate sheet to hold User Profiles. Employ the use of Row Owner’s because this sounds like information that needs to be kept very secure. Your Patients sheet could have an array of 2 columns, one for the patient email and one for the doctor email. When a doctor is assigned a patient, the doctor’s email is placed in the second array column. Row owners would be applied to the array, so a patient will only be able to see their own record and a doctor can only see the patients they have been assigned.

On top of all of that…and assuming that you have enabled User Profiles, you can conditionally show components on the detail screens based on if the user in the user profile has been marked as a doctor or a patient.

This is a very rough overview, but I feel in most cases you don’t have to duplicate data if you set up your flow correctly.

1 Like

I hadn’t thought of using an array column to have multiple row owners, great suggestion. Thank you very much!
What’s the functional reason why you wouldn’t want the patient and doctors to be stored within the User Profile sheet? Currently there’s a new sheet for creating new visits that have a relation column to the patient.

I’m not saying you can’t have all the doctor and patient information shared in the user profile sheet. It’s just that they are unrelated pieces of information. In my opinion, good database design keeps that information separate. Otherwise for each new component you add on a profile detail screen, you will have to determine if it can be visible only for doctors, for patients, or for both.

Yes this affectively still doubles the row count, but ultimately you do what works for you. There’s no right or wrong way to do it. Just think about future maintenance.

Good idea with the separate visits sheet.

Ok that’s great advice and the basis of your recommendation being rooted strong database design was essentially what I was trying to get at. I appreciate it!

1 Like