"hidden when not relevant" function does not work on subtables with "Ennumerate"

  • Asked
  • Active
  • Viewed 1548 times
0

Hello OF Team,

I'm writing because I think I've found a bug in Arena, the "hidden when not relevant" function on subtables with "Ennumerate" enabled doesn't quite work.

I have a main table called "Plot" and a subtable called "Destructive Litter Sampling."

In the plot table, we have a Boolean entity called "des_litter_procedure_plot."

The "Destructive Litter Sampling" subtable is multiple, and the "Enumerate" option is enabled with a validation of Min count = 2 and Max count = 2 (we should always have 2 records). I've also defined it to be relevant when "des_soc_procedure_plot == true" (and Hidden is enabled when not relevant).

The problem is that when I run the form and specify that "des_litter_procedure_plot" is TRUE in the "Plot" table, the "Destructive litter sampling" subtable appears, but it won't let me enter the information (I can't see nothing in the table, and I get the error "Destructive litter sampling nodes must be exactly 2".

If I remove the "Destructive litter sampling" subtable from being relevant when "des_soc_procedure_plot == true", then it works.

Thanks

Regards

Oscar

0

Accepted answer

Dear Oscar,
In your case the problem seems to be related to the fact that the multiple entity "Destructive litter sampling" is marked with "Enumerate" but there isn't any key code attribute defined inside of it (you have an integer key attribute instead).
Enumerated entities work only with key code attributes defined inside of them; the items in the category associated to the key code attribute will be used to generate the rows of that entity and the code of the category item will be assigned to the key code attribute in every row.
In your case you can simply remove the flag "Enumerate" in that entity and it will work as expected (rows will be generated using the min count specified).
Many thanks,
Open Foris Team

0

Accepted answer

Dear Oscar,
Many thanks for having reported this issue.
We will contact you to your private email address to better understand it.
Thanks again,
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.