Irwin - I think if you incorporate Ameera’s suggestion to use the
selected() function into some if() or concat() logic you should be able to
accomplish what you want.
Essentially you’d have some hidden value in your form that would be the
actual property you display in your case list. You’d determine the value of
this hidden value using a chain of ifs: for example if you had three
options a b and c you’d have:
if(selected(/data/value, ‘a’) & selected(/data/value, ‘b’) &
selected(/data/value, ‘c’), “ABC”, if(selected(/data/value, ‘a’) &
selected(/data/value, ‘b’), “AB”, if(selected(/data/value, ‘b’) &
selected(/data/value, ‘c’), “BC”, if(selected(/data/value, ‘a’), “A”,
if(selected(/data/value, ‘b’), b, if(selected(/data/value, ‘c’), “C”,
Then your case list would use this hidden value with a mapping from ABC ->
[display text for all options selected], etc.
Unfortunately this will get exponentially more complicated for each new
option you add. Another option would be to use the concat() function in
conjunction with selected() to build a symbolic string, so the hidden value
calculate would be:
concat(if(selected(/data/value, ‘a’), ‘a’, ‘’), if(selected(/data/value,
‘b’), ‘b’, ‘’), if(selected(/data/value, ‘c’), ‘c’, ‘’) … )
And then this would end up outputting strings like “bc” that you could then
use for IDs in the mapping.
On Wed, Oct 1, 2014 at 10:19 AM, Ameera Hamid wrote:
I’m not sure if this will be helpful, but here goes;
my project has many multiple choice questions that record information
about types of skills my students do and I have displayed the number of
times they were selected on the case list so that students can view their
progress. This is how I have done it.
in the form that registers the case i have created a property for each of
the choices (eg.skill1) and set the calculate condition to 0. then in the
form that has the multiple choice questions of the skills performed I
created a prev_skill1 and new_skill1 hidden value, the calculate condition
is set to; prev_skill1 + 1 and the display condition;
selected(/data/skills_performed, skill1) so that it only adds that skill if
it was selected in the multiple choice question. Then on the case list i
am able to select the case property skill1 and it will display how many
times that skill was selected in the time that they used the application.
Hope this helps and is not too confusing.
On Tuesday, 30 September 2014 16:22:39 UTC+2, Irwin wrote:
I had a quick question. On my case list view I've selected a
property that comes from a multi-select field. I’ve added ID mapping, but
I’ve noticed that whenever multiple choices are selected these don’t appear
in the case list configuration. Is there a way to configure this so that
any combination of choices appears?
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an
email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.