Concatenate string from species list with number from code list

  • Asked
  • Active
  • Viewed 1654 times
0

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

0

Accepted answer

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

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.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

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.