New and need help

Hello, i am trying to put different tables in different categories. But everytime i place 1 new data form into a category it is the same form in every single category. If i change the source name it switches in the right form but also it changes in every category to this same table. So in the navigation bar i have a topic called CATEGORY. And in all single one i want to place a different form. But i only manage to put the same form in every category. I want to change it all in different ones. How do i do this?

So you have a category table and you are displaying a collection of all the categories, and then when you click on a category, you display the detail screen for that category from the category table? Does that sound correct?

But you want components on the detail screen to be unique based on the category? Which components are you trying to display on the detail screen for each category?

Can you describe your data structure and maybe share some screenshots?

Yes that is correct. So categories like: restaurants, sports, apps, culture etc.

I made for these all different tables. And they also work if i use them. So for example now i put a table in restaurants. This work correctly. But, the list of restaurants is now shown in every other category. If i go to the category sports and i put the right table in it, it changes. But also in restaurants and every category is the same.

I try to make a screenshot, but i am not that tech-smart :slight_smile:

Got it. It is in Dutch :slight_smile:

Are all of these tables structured differently (for example, different column headings)? Is there any chance you could combine them all into one table?

If each table has a similar layout, I think it’s better to combine all of the data into one table, along with a column that contains the respective category for each row. Then it’s a simple matter of creating a relation from the category table to the items table and sourcing the collection on the category details screen from the relation. That way you design a screen once and you are done. Adding new categories or items does not require you to build new screens in the app. The main downside is that everything shares the same screen layouts regardless of category.

If the above is not a viable solution for you, then you have a couple of other options:
-One is to add a container for each category on your category detail screen, and then add the appropriate collection and any other components that pertain to that category. Then set visibility conditions on each container to show the appropriate one depending on the chosen category.
-Another option is to change the click action on the category collection to be a workflow with several IF branches to open New Screens depending on the chosen category.

Those are a few ways to approach it, but it depends on how your data is structured and if you plan to have screens for each category that are quite different from each other. The first option is easier to set up but less flexible as far as design. The second and third options require more setup and maintenance if you keep adding categories, but they give you more design freedom because screens are independent.

3 Likes

Thank you so much for your explanation. I understand every step you suggest and i tried for so many hours and hours to figure it out. I tried with 2 different Glide apps just to discover. Both without any succes. First Glide app i tried the old way with 1 Excel workbook but this has multiple sheets in it. I tried to change the Visibilty, but i dont know what it is (i guess a lack of experience) it doesnt work. The other Glide test app i tried with 1 Excel sheet, like you suggest also, and also without any luck. So you can imagine, how frustrated i get haaha. Well, i think this is not my cup of tea :slight_smile: And i am about quiting it all unfortunately.

Thank you for your help again!