Upgrading from free and deleting forms from ODK Aggregate

81 views
Skip to first unread message

Richard Fletcher

unread,
May 5, 2015, 12:17:48 PM5/5/15
to enketo...@googlegroups.com
Hi all,

This is for other people I suspect will be upgrading before the 'free' level of Enketo runs out (and are not yet at the stage of hosting their own instance). I am using ODK Aggregate on Google App Engine.

I had 1 form running on the free level of Enketo and today upgraded to the basic (allowed 1 live form at a time). I had made some other changes to the form design in the mean time and deleted the form from ODK , to upload a new design. I tested the new design on a couple of android devices, it worked fine and Aggregate received the responses.

Next I thought I would check the link with Enketo, but the new design was no where to be seen. I renewed the API key several times, thinking this might have something to do with it. I changed the form id in case it was confusing the new and old designs.

This may be obvious to other users but it took me a while to figure out A: what an API call was! and B: how to use one!

For the benefit of anyone else in this situation, my solution was to use Git Bash (which I already had installed for some reason) which opens up a terminal. To get the code for the appropriate API call, go to the Enketo API docs page (link), type in your details in the green boxes (API , URL and Form ID) and click the Deactivate Survey option (down the bottom somewhere) The page will auto generate the neccesary call beginning with curl --- etc etc. Using your terminal, type/paste the call in. In my case, there was no notification, but when I went back to Enketo, I could see the new form id name was now listed and it worked dine.

After all that I suppose it's not really an 'issue', that is how both ODK and Enketo have been designed but I hope later ODK versions could maybe integrate this API call stage to deleting forms. Please anyone else correct me if there is a better way of doing this!

Thanks

Martijn van de Rijdt

unread,
May 5, 2015, 5:51:33 PM5/5/15
to enketo...@googlegroups.com
Thanks for sharing this. This is correct and there is no better way of doing this. I would also like to see this de-activation API call to be built into ODK Aggregate (only SurveyCTO has done this as far as I know). It would be the most user-friendly solution.

If you replace a form and use the exact same form ID, it will replace the old form (it may take a minute or so for Enketo to update itself)  and you won't have to make the de-activation API call.

Martijn

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


-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog
Reply all
Reply to author
Forward
0 new messages