expression is working reversely

  • Asked
  • Active
  • Viewed 2529 times
0

Dear OFT, I created a species attribute (with taxon data type). where different type of spp can be chosen as usual. I also created sppgrp (calculated field). I want when a user chose shorea robusta then sppgrp should get value 1. for this I put 1 in expression and species = "shorea robusta" in apply when area, It is not working(not giving value 1). instead if I put species != "shorea robusta" then it works fine. Did I wrote code in wrong way? I think something is wrong. I am using collect Version: 3.25.1. please suggest me if the coding style is changed.

Now It is working. What I did is that I put species/@ScientificName

Rajkumar Rajkumar
0

Accepted answer

Hi Rajkumar,
Is "shorea robusta" the correct "code" of the species? When you are using taxon attributes, you should refer to selected species code, not to the scientific name.
Let us know, many thanks.
Open Foris Team

Thank you for your response. But it is working fine. I will follow your suggestion.

Rajkumar Rajkumar

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.