Hello again, In my survey, I sample multiple individuals belonging to the same taxon. Each taxon is collected once in the field. Now, I wish to automatically associate each subsequent observation with the corresponding reference specimen. Technically speaking, I want to pull a value (specimen_name) based on another value (taxon_name). I reckon that using idm:lookup() is the right approach here but I fail to correctly implement the code. Lookup() requires a list of values. Is it that I need to create that list beforehand? My relevant fields: - taxon_name - specimen_name - taxon_already_sampled (yes/no) - reference_specimen Desired output: Taxon1 is observed for the first time in the field (taxon_already_sampled = no) and is collected, hence a specimen name is attributed ("specimen1"). Subsequently, taxon1 is again encountered in the field (taxon_already_sampled = yes); in this case the individual will not be collected but instead the column reference_specimen should be auto-filled with "specimen1". Thanks in advance for the help. Best, Jan asked 07 Apr '22, 14:57 janklein |
Dear Jan,
With this expression you will get the value of Let us know, many thanks. answered 06 May '22, 10:32 Stefano (OF) ♦♦ The function does exactly what I wanted to do. Thank you very much!
(24 Oct '22, 14:30)
janklein
|