Hello OF-team,

I would like to concatenate a taxon name from my species list with a number from a code list.

For example: "Fabaceae sp". + "1" = "Fabaceae sp.1"

I am trying with the following code, but in the new field, only the taxon name appears: concat(idm:speciesListData('spp_list', 'scientificName', species),string(code_list)) If I add additional arguments, the result remains the same, so I assume that the concat() function does not recognise the arguments.

Thanks for any piece of advice, Jan

asked 16 Mar '22, 20:05

janklein's gravatar image

janklein
215
accept rate: 0%


Dear Jan,
Please try to change your expression into: concat(species/@scientific_name, code_list)
since you don't need to cast the code value to a string in that case and you can find the scientific name information already associated to the taxon attribute value.
Also, please check that the calculated attribute is not marked as Calculated only one time, otherwise its value won't be recalculated every time you change the value of species or the code_list attribute.
Many thanks,
Open Foris Team

permanent link

answered 16 Mar '22, 22:40

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.7k19
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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:

×493

question asked: 16 Mar '22, 20:05

question was seen: 568 times

last updated: 16 Mar '22, 22:40