Hi, in collect I'd like to use an attribute of type "Taxon" for a validation with an expression. Is there any helper function for returning an individual element of the data type "taxon" (e.g. generus, family or vernacular name)? Regards, Hans
Accepted answer
Dear Hans,
you can access fields of composite attributes (like Taxon, Coordinate, Date or Time) by using a "@" symbol before the attribute name in a expression. For example if "species" is your taxon attribute name, the expression can be something like species/@vernacular_name or species/@scientific_name.
Unfortunately you can access only fields that are visible in the user interface, so right now you can access only code, scientific_name, vernacular_name, language_code and language_variety fields for a taxon attribute; there is no way to access the genus or the family accessing the related item in the species list but we are working to it and there will be some news from version 3.11.0 of Collect.
If the name of the field you write is wrong, you will have a detailed error message in the for telling you which ones are the right expected names.
Thanks,
Open Foris Team