I have a field inside another table with the corresponding id in Supabase. I’m trying to use the lookup function in WeWeb to display the name of the item matching the id. This formula works on all others, but this one I can’t seem to get.
If you have, I would make sure to take it step by step to make sure your first lookup formula returns a value and then your getKeyValue formula that’s wrapped around it returns the result you expect and then the second lookup formula does to.
For example, I asked you to remove the .name because I suspected the formula didn’t return any data (and thus it didn’t make sense to look for the name inside an object since there was no object).
Does that make sense?
Sorry, it’s a bit hard to explain in writing but hopefully the video helps!
Hello, I’m kind of dealing with the same issue : “undefined” result when trying to use a lookup.
Within a card from collection list (called “Remises”), I would like to display the name of a “Concession”, based on the id of a “Concession”, that is included in the “Remises” collection.
But I get this undefined result …
Any ideas ?
I’m using Supabase as a backend and here is a quick view of the schema :
Thanks !
EDIT : I managed to retrieve the info that I want thanks to the advanced method (directly when creating collection), but I would like to understand what am I doing wrong with lookup formula
Use the log action to see inside the item and the collection variables. That will let you reason about. What you want to search and for what. If it’s not clear, share the results so others in the forum can point you in the right direction. “Inputs and outputs” is a key mental model at state change for cracking complex and non obvious problems.
Maybe I’m missing something, but what should I seek for in the log as this is not an input field I’m dealing with, but rather a collection list. What I would like is to display in a collection list based on a “Remises” table (that is linked to “Concessions” table in Supabase) an information located within the “Concessions” table.
And what is surprising, is that when displaying only the id it’s working (once again, I would like to display the name of structures and not their id’s).
Please show us now what contains the Concessions->data too, to check why lookup can’t find the item
It could happen if you have a filter or pagination on your collection and all the items are not loaded for exemple, lookup will search only on the available data
I checked if there was a blocking filter on the collection, but the only one is regarding the variable “search Concession” which is related to a search bar to look for “Concession” in the dedicated page (and enabled ignore when empty), so I don’t think that it has a impact on it.