Choice_filter in a selecy_one_external response

Hi,
i have a response structure like this:

Question_1 (data comes from an select_one_external )

  • 15
  • 66
  • 78
  • 110

Question 2 (data comes from the same select_one_external of the question_1)
BUT with a choice_filter like question_2_responses >= Question_1_response

So if i select 66 in the question_1 i would see in the question_2 response
list:

  • 66
  • 78
  • 110

The problem is that since i'm using the external (with the normal
select_one and the current() worked well) the response list of the
question_2 isn't correct... it seems that the ODK is considering the
Question_1_response as a string and that it is trying to order by
string....

Is that possible? How can i achieve my aims? Any ideas?
Thanks
Angelo

Hi guys,
nobody can help me? Is there an issue or is a normal behavior using a wrong
type variable in a >= condition?

Thank you very much for your time!
Angelo

··· Il giorno Fri Jan 30 2015 at 17:45:32 Angelo Lazzari < lazzari.angelo@gmail.com> ha scritto:

Hi,
i have a response structure like this:

Question_1 (data comes from an select_one_external )

  • 15
  • 66
  • 78
  • 110

Question 2 (data comes from the same select_one_external of the
question_1) BUT with a choice_filter like question_2_responses >=
Question_1_response

So if i select 66 in the question_1 i would see in the question_2 response
list:

  • 66
  • 78
  • 110

The problem is that since i'm using the external (with the normal
select_one and the current() worked well) the response list of the
question_2 isn't correct... it seems that the ODK is considering the
Question_1_response as a string and that it is trying to order by
string....

Is that possible? How can i achieve my aims? Any ideas?
Thanks
Angelo

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

This is a question for the opendatakit@ list, as it concerns the use of the
tools as-is for writing and collecting surveys.

When asking questions, be sure to provide an XLS or XML file demonstrating
your problem.

Requiring respondents to construct their own copy of a form that may or may
not replicate the problem you are experiencing will ensure that nobody
helps you.

In this case, it is likely that you have tried to display both Question_1
and Question_2 on the same screen (using a field-list group). This will not
work.

When displaying multiple questions on the same page/screen, there cannot be
any dependency between the values or relevance of any of the questions.

Try displaying the questions on different pages. This will likely resolve
your issue.

Also, keep in mind that the choice-list values are always treated as
strings. They are not numbers, even if they are just 1, 2, 3 etc.

··· On Sat, Jan 31, 2015 at 9:40 AM, Angelo Lazzari wrote:

Hi guys,
nobody can help me? Is there an issue or is a normal behavior using a
wrong type variable in a >= condition?

Thank you very much for your time!
Angelo

Il giorno Fri Jan 30 2015 at 17:45:32 Angelo Lazzari < lazzari.angelo@gmail.com> ha scritto:

Hi,

i have a response structure like this:

Question_1 (data comes from an select_one_external )

  • 15
  • 66
  • 78
  • 110

Question 2 (data comes from the same select_one_external of the
question_1) BUT with a choice_filter like question_2_responses >=
Question_1_response

So if i select 66 in the question_1 i would see in the question_2
response list:

  • 66
  • 78
  • 110

The problem is that since i'm using the external (with the normal
select_one and the current() worked well) the response list of the
question_2 isn't correct... it seems that the ODK is considering the
Question_1_response as a string and that it is trying to order by
string....

Is that possible? How can i achieve my aims? Any ideas?
Thanks
Angelo

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com