Hi everyone. Started using Glide yesterday after many failed efforts with other database apps. I imported my Google Sheets data (via Excel download) and started with Layouts to see what it does. Easy! Except for one incomprehensible problem.
I manage bookings for a small charter company that transports school children between schools and home towns on weekends. I have tables for Parents, Children, Schools, Hostels (where kids board and are picked up & dropped), etc. I needed to create Layouts for Parents with Children, Children with Parents, Schools with Hostels and so on. Schools was easy, once I remembered to add a Relation field for Hostels to Schools. But Parents/Children are many-to-many and here is a snag. I use a join table to handle the relationships. It consists simply of a ParentID field and a ChildID field. I added the Relation for Parents to the Children table (Join ChildID in Children with ChildID in ParentChild) and it shows both parents (where applicable) correctly. But the Relation field in Parents (on ParentID) shows the parent name. If the child has 2 parents in the database it shows the first one twice.
I included 3 partial screenshots, incl. one of the Schools form that shows the correct hostels below.
Good Lord, that was easy! Thank you so much Mazen for your clear instructions.
The reason the Children table showed the correct parents was that my ParentChild table had 2 additional columns I added later, for child’s name and parent’s name. The paren’ts name
was adjacent to the ChildID column and somehow Glide got hold of that data…
Regards
Herman
Yes, if you look at the screenshot of Parents and Children you’ll see names displayed in the most right hand column. The relation field should show the IDs for the related field, right?
Thanks for clarifying.