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

asked 05 Aug '16, 11:38

hfuchs's gravatar image

accept rate: 0%

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.
Open Foris Team

permanent link

answered 05 Aug '16, 14:19

OF%20Collect's gravatar image

OF Collect ♦♦
accept rate: 23%

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

(05 Aug '16, 14:56) hfuchs hfuchs's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 05 Aug '16, 11:38

question was seen: 2,610 times

last updated: 05 Aug '16, 14:56