please see the table below. I designed it within repeat and I tried to select nutrition program automatically using by position(…), but it failed and returns the error msg “java.lang.Integer cannot be cast to org.javarosa.core.model.data.helper.Selection”. It works with enketo but not working with KoboCollect / ODKCollect. do you know the reason or how to fix this issue?
repeat group
type | name | label | calculation
select_one l300 | q300 | 300. Type of nutrition program | position(…)
…
end repeat
Type of nutrition program
301. In the last 12 months h ave you, your spouse or any other person in your household been reached by any of the following programs related to household nutrition?
If ‘yes’ to Q301, what were the messages learned from the programs? (Use code 302) (Multiple option is possible)
Yes 0) No 88) DK
Live theater through Drama group (Oromiya & Afar)
Live theater through Circus & Drama group (Somali)
Solution is **string(position(…)) instead of **position(…).
···
On Monday, July 13, 2015 at 12:53:48 PM UTC+3, Enkhbayar S wrote:
Hi All,
please see the table below. I designed it within repeat and I tried to select nutrition program automatically using by position(…), but it failed and returns the error msg “java.lang.Integer cannot be cast to org.javarosa.core.model.data.helper.Selection”. It works with enketo but not working with KoboCollect / ODKCollect. do you know the reason or how to fix this issue?
repeat group
type | name | label | calculation
select_one l300 | q300 | 300. Type of nutrition program | position(…)
…
end repeat
Type of nutrition program
301. In the last 12 months h ave you, your spouse or any other person in your household been reached by any of the following programs related to household nutrition?
If ‘yes’ to Q301, what were the messages learned from the programs? (Use code 302) (Multiple option is possible)
Yes 0) No 88) DK
Live theater through Drama group (Oromiya & Afar)
Live theater through Circus & Drama group (Somali)