Selecting individual elements of attribute type "taxon"

  • Asked
  • Active
  • Viewed 4607 times
1

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

1

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

Dear Ricci, thank you, that helps a lot and works fine. Hans

hfuchs hfuchs

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.