Complex selections

10 views
Skip to first unread message

Prabhas Pokharel

unread,
Oct 20, 2011, 2:02:16 AM10/20/11
to xls2...@googlegroups.com
Hey xls2xformers,
I'm designing some forms in India, and I'm wondering whether and how we can do hierarchical selections. Basically, we have a
District > Taluka > Primary Health Center > Sub Center
hierarchy. What I would love is that a set of options appear when you go to district
(Mysore / Gadak / Bagalkot / Koppal, etc.),
and depending on which of the districts I select, I get a different Taluka list, and depending on which of the Taluka I select, I get a different PHC list, and so on.....

I realize that I could have things like
select one from districts
and then
select one from taluka_mysore
select one from taluka_gadak
and then
select one from phc_bheriya_mysore
select one from phc_killenpore_mysore
etc. etc.

with the appropriate bind:relevant constraints.

Wondering whether there is an easier way though...

eric couper

unread,
Oct 20, 2011, 3:46:38 AM10/20/11
to xls2...@googlegroups.com
Prabhas, 

Your suggestion is the best answer I've got. Would love to hear any different ideas from others. It's a little tedious in the excel, but it should be a pretty straighthforward process for the enumerator.
--
*Eric A. Couper, MPA DP <http://mdp.ei.columbia.edu/>*
ICT & Agriculture Coordinator
Africa Soil Information Service
s. eric.couper
t. @_couper

Matt Berg

unread,
Oct 20, 2011, 5:58:14 AM10/20/11
to xls2...@googlegroups.com
Kobo just posted in the ODK mailing list on what they call "Cascading style sheets" that handles this (see below).  This might be a feature we want to support in xls2xform.  It hasn't made it to core odk collect but will push to see if it could.  Prabhas make sure to join the main ODK mailing list.



ODeeKers,

In response to Patrick's message, I thought I would provide some how to details.

We have been working on the issue of supporting Itemsets / Cascading Selection. The idea being that you would like to ask a question, and then use that answer to filter the available options for the next question. The most common use of this is asking what State you are from, then the next question is what City you are from, available options are filtered by State, so you only see Cities in your State.

Super useful for almost any survey, but requires changes to the JavaRosa core. Our own John Etherton made those changes and we rolled up a new version of KoBo Collect, which is our implementation of ODK Collect.

You can write your own XML forms, but it gets pretty complex. The KoBoForm Builder will write your XML for you, you can even upload your itemsets as CSVs or you can add the elements one at a time in the web app. Go straight to KoBoForm, read the Getting Started Guide, or skip ahead to the section on Cascading Selection.

You will need the KoBo version of ODK Collect. It is called (obviously) KoBoCollect, and you can download it from the Android Market, QRscan here.

(remember to uninstall ODK before installing KoBo. Your forms/instances on your SDcard will not be disturbed. All forms that are compatible with the standard ODK Collect are also compatible with KoBo)
  1. Uninstall ODK Collect
  2. Install KoBoCollect from the Android Market
  3. Go to the KoBoForm builder and build a form with some itemsets.
  4. Save your form to the desktop.
  5. Drag & Drop or use ADB to push your survey from the desktop to your Android.
  6. Run it! Select from itemsets and watch your answers filter following options.


We’re Beta testing, so your comments and bug reports will be very welcome.

☞§※✈☂
~Neil



On Tue, Oct 18, 2011 at 9:04 PM, Patrick Vinck <patric...@kobotoolbox.org> wrote:
Hi all,

I dont post often but many of you may know that our team has been
heavily using digital data collection in places like the Central
african Republic, northern Uganda, or Liberia. We use KoBoCollect,
which is our implementation of ODK, and a series of related tools
(check out www.kobotoolbox.org )

We just released a new version of our tools that supports itemsets /
cascading selection (i.e. answer to one question is used to filter the
available options for the next question) - It is supported both by
KoBoCollect and our new formbuilder (KoBoForm) which is available for
download or online (http://www.kobotoolbox.org/products/koboform)

All this has been tested, but it would be great to have more reports
and comments!

(Brough to you thanks to - alphabetically - John Etherton, Neil
Hendrick, Tino Kreutzer and Phuong Pham :-) )

--
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

-- 
Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
 Reply
 Forward
 Invite Neil Hendrick to chat
Reply all
Reply to author
Forward
0 new messages