I would like to be able to summarize on a Report screen at the end of my
form the content of previous fields. Those previous fields have
human-meaningful labels such as "Probable" but store an integer so that I
can economically run some of the longer relevance fields I use to replace
the missing ability to consult arrays about which I posted a while ago.
Is there a way to pull the name instead of the value, maybe by using
something besides the dollar sign as the operator? To make an example up: *
#{field}*
To clarify: if a user makes a selection of "Probable" somewhere in the
form, the value 3 is stored. At the end, I want to be able to show the
name/label of that value, so the user would see something like "Likelihood
of impact is probable" instead of "Likeliood of impact is 3."
···
On Sunday, September 16, 2012 10:08:06 AM UTC-4, Jerry3904 wrote:
>
> I would like to be able to summarize on a Report screen at the end of my
> form the content of previous fields. Those previous fields have
> human-meaningful labels such as "Probable" but store an integer so that I
> can economically run some of the longer relevance fields I use to replace
> the missing ability to consult arrays about which I posted a while ago.
>
> Is there a way to pull the name instead of the value, maybe by using
> something besides the dollar sign as the operator? To make an example up:
> *#{field}*
>
I can't think of an easy way to reference a label (unless someone has
added this functionality to the javarosa-core). Best bet is to do
something like...
calculate="if(../example_number > '5', 'greater than five', 'less
than or equal to five')"/>
In this example, if example_number is greater than 5, will return "greater than five". Else,
it will return "less than or equal to five".
···
On Mon, Sep 17, 2012 at 7:28 AM, Jerry3904 wrote:
> To clarify: if a user makes a selection of "Probable" somewhere in the form,
> the value 3 is stored. At the end, I want to be able to show the name/label
> of that value, so the user would see something like "Likelihood of impact is
> probable" instead of "Likeliood of impact is 3."
>
>
> On Sunday, September 16, 2012 10:08:06 AM UTC-4, Jerry3904 wrote:
>>
>> I would like to be able to summarize on a Report screen at the end of my
>> form the content of previous fields. Those previous fields have
>> human-meaningful labels such as "Probable" but store an integer so that I
>> can economically run some of the longer relevance fields I use to replace
>> the missing ability to consult arrays about which I posted a while ago.
>>
>> Is there a way to pull the name instead of the value, maybe by using
>> something besides the dollar sign as the operator? To make an example up:
>> #{field}
>
> --
> Post: opendatakit@googlegroups.com
> Unsubscribe: opendatakit+unsubscribe@googlegroups.com
> Options: http://groups.google.com/group/opendatakit?hl=en
Thanks, Mitch, I had seen that before, but my limitations get in the way
here: except for minor changes, I really don't know how to work with xml
files. Unlike most of the people I see posting here, I am not a computer
person, so am pretty much restricted to the XLSform.
Jerry
···
On Monday, September 17, 2012 1:07:49 PM UTC-4, Mitch wrote:
>
> I responded to this earlier under the "arrays" subject line.
> http://groups.google.com/group/opendatakit/browse_thread/thread/f893c45f12b6b615/f4542111f2dda625?lnk=gst&q=arrays#f4542111f2dda625
>
> On Mon, Sep 17, 2012 at 7:19 AM, Jerry3904 <Storm...@gmail.com wrote:
>
>> Thanks, Yaw. I will look at that possibility, though I am beginning to
>> think I may have to rethink my relevance approach. Aargh...
>>
>> --
>> Post: opend...@googlegroups.com
>> Unsubscribe: opendatakit...@googlegroups.com
>> Options: http://groups.google.com/group/opendatakit?hl=en
>>
>
>
>
> --
> Mitch Sundt
> Software Engineer
> University of Washington
> mitche...@gmail.com
>