Derivative field: Get Reference from reference #884
-
|
I have a problem, which I think shouldn't be too complicated to solve - but somehow I can't get it to work: I would like to save the reference to a document, which is stored in a reference-field form a document, to which a current field points to. Sounds more complicated than it is:
I tried this (besides many other things): I also tried "toString()", but also that didn't work. Can somebody help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @webwurm, I found a column in the Connectors demo app table that accesses data from another Firebase Collection and displays it as options. I hope this helps as a reference for what you're trying to achieve. |
Beta Was this translation helpful? Give feedback.
-
|
I figured it out. It has to be a derivative-field with the type "Reference" and the following code: To get the field from a doc to which there is a reference in the current row is simply: I was a bit confused by the "Intermediate example" here, but I actually have the reference in the field and not the id as in the example. |
Beta Was this translation helpful? Give feedback.
I figured it out. It has to be a derivative-field with the type "Reference" and the following code:
To get the field from a doc to which there is a reference in the current row is simply:
I was a bit confused by the "Intermediate example" here, but I actually have the reference in the field and not the id as in the example.