Linking button to specific row in table

Hi all,

I’m a newbie, and I tried to answer this question many times but can’t seem to find it yet. The problem might be that I don’t know how to ask it clearly and in the right terms. Here goes.

I have a button a tab screen. I would like users to be able to tap or click that button and then immediately go to a row on my sheet. I know how to connect to another tab. But the tab is one level too high, so to speak. The tab is for Hotels, where it lists an assortment of hotels. But I want the button to take the user to a specific hotel’s details.

I’m not sure if this makes any sense as I find it hard to explain in the correct terminology of Glide.

I would be glad to clarify further, please let me know. It seems like it should be an easy fix, at least I’m hoping.

Thank you!

How would you know which row to link to? Where is the button?

hey, thanks! Well I use a Collections component with cards showing all the hotels. when someone taps on the hotel, it takes them to that row in the table, showing them just that hotel. I would think that a button or other set up could mirror that action somehow.

on my home tab I have a button that says View Hotels - that takes the user to all the hotels. So I thought a button could drill down to a specific hotel instead.

Maybe I’m not following. How would you know which hotel to drill into with only a single button?

well I thought there could be a filter or action set up based on the Hotel’s name, or whatever. I don’t know, exactly. That’s why I’m here kinda

Where does the Hotel name come from? Does it make sense what I’m asking? If you are on a screen that is not tied to a specific hotel, and you have a table with 100 hotels, how would the button know which of those 100 hotels to show details about? I’m trying to get to the source of where this button is located.

What you are asking for is most likely possible, but I need to first understand the full picture. We know the user wants details for a specific hotel, but which one? What do they do up until the point that they click on that button that would give any indication that they are looking for details on one specific hotel? Do they type something? Do they select one from a dropdown? Do they navigate to a screen that references that one hotel? I’m just missing that one important detail of how do we know which hotel row to link to.

Feel free to show screenshots or mock up what you would want the user experience to be. It most likely would involve a relation or query linking to a specific hotel, and then directing the button to use that relation or query. It’s hard to say though, because I don’t know what the user experience is supposed to be like.

2 Likes

Hi Jeff, sorry for the late reply. The Hotel name comes from a column in the Data table. Check out what I’ve built so far: https://praguewise.glide.page/.

If you choose the Hotels screen, then you can choose a hotel and go to its dedicated information - which is essentially all the information in a row of my Data table. Users can do the same with the Where to Stay screen. Detail here:

So, if you look at the Home screen, I simply wanted the user to tap the button and go to that highlighted Hotel of the Week, instead of to the full Hotels screen that shows all of them.

I hope this clarifies. I really appreciate any feedback you have. If it’s not possible, so be it. I was just hoping there would be a flexible way to move users through the tool.

Thanks,
Dean

OK. Since I assume you have a column that contains the Hotel of the Week in the table that is the source of your Home tab, you can create a single relation in that same table that links the hotel of the week to the same hotel in the hotels table. The you can change the action on the button to show detail screen using the relation.

1 Like

Thanks. No I don’t have a column for the Hotel of the Week. And I’m pretty lost about everything you said, honestly. :grinning_face_with_smiling_eyes: Do you know if there’s any specific Help for setting up a relation like this? I tried to set it up, but keep having issues such as the button disappearing or linking to the wrong place. I think I’m close, but also feel worlds away.

Where where does this come from then? This looks like information regarding a specific hotel on your home screen. Surely you must have something in your home screen table regarding this hotel of the week, because where else would this writeup be coming from? I assume it would be a hotel name or a RowID for the hotel. Use that to create a relation. I don’t know what else to tell you. To create a relation, you need a some sort of value that you can use to find an exact match in your Hotels table. Once you have that relation established, you can direct your button to use the relation to take you directly to that hotel detail screen.

Maybe spend some time going through the Glide Documentation and Glide University.

More specifically, learn about relations. A relation is the core to making this work. You need a value in your main screen table with something specific to one hotel that you can use to create a relation to the hotels table to match up to that same hotel.

2 Likes