Hi,
I’m new to Glide and I am not being able to find a solution for an apparently straightforward problem. I know that something similar has been discussed already multiple times, but coudn’t find yet the right solution.
I am writing a cookbook app. In a table, I need to add a column that is automatically drawn from another table, via a common ID. The first table (“Main”), among others, has an “Ingredient” column, and the second table (“Ingredients”) has two columns only: a corresponding “Ingredient” column and a second column (“Type”), which is the one I want to retrieve. The values for “Ingredient” in the “Ingredients” table are unique.
I have experience with SQL, so I understand the logic of tables and RDBMs. I assume that Glide automatically can build a relation between these two tables on the “Ingredient” key. If not, than mu problem is clearly that I haven’t built the proper relation …
However, assuming that the relation is indeed automatic, I have tried Lookup, Relation and Query, and none of these work. Best case, I can get all the possible types in the same cell.
Here some screenshots to better expain my problem:
With a Lookup:
With a relation (the link works, but how can I select the “Type” field from “Ingredients”?:
With a query (again, the query works but I cannot select another field):
For further clarity, this is the screenshot of the Main table. Here, I need to add the “type” column. For example, in the first row where “Ingredient” is “Riso” (Rice), the corresponding type should be “Solid”, In the fourth row (Latte = Milk) it should be “Liquid”
I hope I’ve been able to explain my problem clearly, any help will be very much appreciated
Thanks,
Bob