In following code
ClearCollect(
cAanwezig_asiel_verblijf
;AddColumns(
Filter(
FirstN(
SortByColumns(
asiel_verblijf
;"vertrek_datum"
;Ascending
)
;2000
)
;IsBlank(vertrek_datum) And !IsBlank(opname_datum)
)
;"diernaam";LookUp([@dier];dier_id=asiel_verblijf.dier_id).naam
)
)
I want to lookup a record (sql table) with the same dier_id (an integer) in the table "dier" while building a collection from the table asiel_verblijf which also has a field dier_id.
The syntax above does not work (the lookup line) but is the syntax I would like to work if the world was round.
I tried disambiguation syntax in the info from Microsoft MyTable[@fieldname]
dier_id=asiel_verblijf[@dier_id]
but it results in a delegation error plus a real error saying asiel_verblijf_id[@dier_id] is a table (???????) so i cannot compare it to dier_id.
What is the magic syntax here?