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

asked 30 May, 08:55

LauriV's gravatar image

LauriV
61226
accept rate: 8%


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

permanent link

answered 30 May, 11:04

OF%20Collect's gravatar image

OF Collect ♦♦
1.1k4
accept rate: 14%

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

permanent link

answered 31 May, 07:57

LauriV's gravatar image

LauriV
61226
accept rate: 8%

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

permanent link

answered 01 Jun, 11:59

OF%20Collect's gravatar image

OF Collect ♦♦
1.1k4
accept rate: 14%

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:

×169

question asked: 30 May, 08:55

question was seen: 128 times

last updated: 01 Jun, 11:59

Open Foris Support - 2014