Can a cell have multiple data?

Hi everyone, I was watching a video of building booking app in glide as I wanted to use that feature. The video is about building a barber booking app and in the database of the app there were set of table out of which 2 of them were about Barber table and the other one was service table. So, in the app what he does is, he makes a column in service table with the query that only those barbers will show up who provides this service and are available. And in the Barber’s table he makes a column of naming “Service List” so that against each barber service can be put up in the cell.

My doubt and question is that what if a Barber has multiple services then how multiple services against a single barber will show up in a single cell? Can anyone help me with this?

For reference I’ve added the screenshots of the tables below:

Barbers Table:

Services Table:

Hello, I’m not familiar with the video. From the screenshots, the Services/List column is a basic text, from this one might assume that the cell will hold a comma-separated list of services of that barber. This value is a single value, but if there indeed is a list, then it is possible with a split column to isolate the individual values between the separators (I assume a comma or pipe).

@Loqode

So, that’s a normal text column that “services list” column. And I’m making something similar to this feature and I want to add services in one of my table against a user and then show up that users who are offering a particular service in the service table but I’m not sure how to add multiple services in a single cell against a single user. I’m following up the video and there’s no explanation of how the data will be stored in the “Services List” column if the barber has multiple services.

Maybe the basic text column is written to via a choice component?

No, he made simple text column and nothing else. If we leave this video, Can you tell like how I put up multiple services name or id against a user so that in the service table I can show up multiple users against a particular service who are offering that service?

I would use a choice component in the layout editor and write a list of comma-separated values, the list of services, to the basic text column.

(Tagging @Loqode so Marco can comment if he feels like it.)

I haven’t followed this closely. Is the availability of the barber only on the barber level, or on the service level?

If it’s on the barber level, do you mean you just need a way to show a collection of services that a barber offers?

Your second screenshot has a caption of “Services Table” but the actual screenshot is for the “Barbers” table.

Okay, thanks a lot for tagging him. And answering my doubt. But how to use choice component? I’m on the free version so is this component available to me?

Yes, the choice component is available on any plan.

1 Like

Okay, So let me give you brief again. It’s the data for the barber booking app and out of multiple tables there are 2 tables i.e. The Barber table and the Service Table. In the Service Table he is pulling all the barber through a query that offers that particular row service and are available as well, to show the users basically and in The barber table he added a Service Column under which the services can be entered against each barber. My question was that: A barber can have multiple service then how multiple service can be entered in simple text column named “Service List” in the Barbers Table.

Okay okay thank you, where it is and how can I use it?

You’ll find it in the Components list. Click the + to add a new component, and then search for it.

Yeah, I searched for it but I don’t think it can solve my problem. This will only let barbers to select one of the service and not multiple.

I wanted to have a method under which I can enter multiple services against a single barber. So that he can choose multiple service while creating an account he can offer.

Choice allows you to select multiple.
When you enable multiple selection, it will write a comma separated list of the selected options.
You can then convert that to an array with a split text column, and relate the array to other tables.

3 Likes

Thanks a lot it worked. I didn’t applied the array I just made one more column and made that split text which is separating the text entered in the Service List column and it solved my problem. If there’s a need of creating an array of that then let me know. Thanks again.

1 Like

The Split Text column does create an array, so you already have one :wink:

1 Like

Okay, thanks a lot

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.