Table type entity: how to check sum of attributes in a column?

  • Asked
  • Active
  • Viewed 6141 times
0

Hi Team,

We have in the Collect survey an entity [multiple, table layout] with 3 numeric type attributes, with 1-4 entries (rows). We need to check that sum of each column is 100. What is the best way to do this verification in Collect?

Thanks, Lauri

0

Accepted answer

Hi Lauri,
What you can do is to create 3 calculated attributes outside of the entity and define for each of them an expression like this:
sum(ENTITY_NAME/ATTRIBUTE_NAME)
so that the user can keep track of the current sum of each column. Also these calculated attributes can be used to define some validation rules that use the sum.
Thanks,
Open Foris Team

0

Accepted answer

Hi Stefano,

otherwise fine, but validation does not work because there seems to be this limitation for a calculated attribute: survey.validation.attribute.cannot_specify_checks_for_calculated_attribute

Regards, Lauri

0

Accepted answer

Hi Lauri,
Of course the validation of the calculated attribute does not work because it cannot be applied... Instead I was talking about the validation of some other attributes where you can use the newly created calculated attributes.
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.

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.