error when making conditional select options via fixtures

89 views
Skip to first unread message

Matt Ball

unread,
Oct 18, 2012, 9:25:31 PM10/18/12
to commcar...@googlegroups.com
Hi, I'm trying to build conditional select options using the 'fixtures' functionality and I'm seeing the following error when I open my survey in CC ODK: "Could not find an appropriate fixture for src:jr://fixture/item-list:district"


I was trying to follow the example on the wiki but maybe missed something?  Does anyone have a full xform I could look at for reference?  Thanks.

Matt

Sheel Shah

unread,
Oct 19, 2012, 12:46:58 AM10/19/12
to commcar...@googlegroups.com
Hi Matt,

I'm guessing the mobile worker that you're testing with has been added to the group called "all"?  I've normally seen this error when the mobile worker doesn't have any entries in the fixture assigned to them.

Thanks!
Sheel

--
Sheel Shah
Project Manager | Dimagi India



Matt Ball

unread,
Oct 19, 2012, 1:12:13 PM10/19/12
to commcar...@googlegroups.com
Hi Sheel,

I tried a new build and a fresh install of CC ODK and it works great!  Not sure what was wrong with my group/user structure..  But anyway, thanks for the help and for the cool feature!

Matt

Matt Ball

unread,
Oct 19, 2012, 1:21:23 PM10/19/12
to commcar...@googlegroups.com
Sheel -- one more quick note, now that I see how to use fixtures, I would love a way to "bulk import" these tables.  

Our location hierarchy is Province / District / Posto Administrativo / Locality / Community .  At the more fine-grained levels of that breakdown, there are dozens or hundreds of options.  So for now we're going to use free form text inputs to capture communities, localities and maybe postos.  If we could eventually move to selects, that would be great.

Thanks!

Matt

Sheel Shah

unread,
Oct 22, 2012, 12:19:27 AM10/22/12
to commcar...@googlegroups.com
Hi Matt,

There is a way to upload the fixture information by creating a formatted Excel document.   I've attached a quick sample that shows  how to upload states, districts and blocks.    This is the page that will allow you to upload the file:
https://www.commcarehq.org/a/<your project>/fixtures/item-lists/upload/

Having a large fixture may slow things down on your phone.  Its best to assign particular rows to the users/groups that are responsible for them (for example, by creating groups that represent each geographical area).

Thanks!
Sheel
state district block fixture.xlsx

Matt Ball

unread,
Nov 6, 2012, 6:26:09 PM11/6/12
to commcar...@googlegroups.com
Hi -- just wanted to note to the list that I've been successfully testing fixtures and this upload mechanism.  My use case is in the construction of "location hierarchies" (province/disrict/posto/locality/community) with 102 options at the lowest level.  The bulk upload tool worked really nicely and the demo app is running well on my Samsung Galaxy Y.  Thanks, Sheel!

Matt

kzei...@tns.org

unread,
Apr 29, 2014, 7:18:45 PM4/29/14
to commcar...@googlegroups.com
Hi all,

Sorry to bump this thread, but I'm having a similar issue and I am not sure what you mean by "I'm guessing the mobile worker that you're testing with has been added to the group called 'all'?  I've normally seen this error when the mobile worker doesn't have any entries in the fixture assigned to them."

I have no user groups currently set up as I'm working on a small pilot program and do not know how to assign entries in the fixture to my user.  Could you please provide some direction in regards to this?

Thanks!

Kevin

Cory Zue

unread,
Apr 29, 2014, 11:39:27 PM4/29/14
to commcar...@googlegroups.com
Hey,

Just confirming you saw the documentation on the help site about editing lookup tables (fixtures) in Excel. In the examples it shows how to assign to users.


Cory


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

kzei...@tns.org

unread,
Apr 30, 2014, 12:27:59 PM4/30/14
to commcar...@googlegroups.com
Thanks, Cory, I appreciate it! I had forgotten to add the last column on my tables identifying which groups can access the tables.

Kevin
Reply all
Reply to author
Forward
0 new messages