添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱玩的感冒药  ·  Best Tips for ...·  3 天前    · 
大力的跑步机  ·  Creating forms on ...·  5 天前    · 
直爽的棒棒糖  ·  C++ ...·  10 月前    · 
小胡子的石榴  ·  PHP array_flip() 函数 | ...·  1 年前    · 
冷静的饼干  ·  How To Use ...·  1 年前    · 
伤情的充电器  ·  AttributeError: ...·  1 年前    · 

I have been trying to upload a test version of a much more complex form we are creating for an upcoming project. This test form is being used to test a complex form structure of repeats.

The intention is that the first repeat group will repeat either until we have consent from a household member or until there are no households left within the dwelling.

The nested repeat asks household members for consent and will repeat until consent is given or there are no members left within the household.

So Group 1 repeats until consent is given within Group 2.

I have tested this form on ONA and it is working and deploying just fine.

But on Kobo the form will not deploy. giving the following error:

ODK Validate Errors: >> Something broke the parser. See above for a hint. java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 Result: Invalid

My assumption is an issue with the logic used to control the repeat_count

Group 1: if(${B} = 0 or ${C}[position() = ${B}]/J = 0, ${B}+1, ${B})

Group 2: if((${E} = 0 or ${F}[position() = ${E}]/G = ‘0’) and ${E} < ${D} , ${E}+1, if(${F}[position() = ${E}]/G = ‘1’ and ${E} <= ${D}, ${E}, ${E}))

Note : It wouldn’t let me attach the XLSform as an attatchement

image 1684×471 18.8 KB

Hi @stephanealoo ,

I have yes. I use that site a lot when creating ODK forms. The form shows no errors on that site and as I mentioned in the original post, it deploys and works fine when using ONA rather than Kobo.