Hi all,
I've noticed the following sentence in the model definition for
`Instance` (kobocat/onadata/apps/logger/models/instance.py at main · kobotoolbox/kobocat · GitHub):
# ODK keeps track of three statuses for an instance:
# incomplete, submitted, complete
# we add a fourth status: submitted_via_web
Looking through the source code, it seems to me that these statuses
are never actually used for anything. If that's the case, would it be
safe to use `Instance.status` for creating something like a workflow
for data exports? Or would we risk to break compatibility in some way
by using something other than `incomplete`, `submitted`, `complete`
(and `submitted_via_web`)?
Are there maybe any plans to add something like a filter for forms
with a specific status to the `Advanced Exports` functionality?
Thanks and greetings,
Jesaja Everling
Hi Jesaja,
The status is not shown in the regular CSV and XLS outputs, but it’s saved in the database and accessible via the /data/ API. To see the status visit https://[servurl]/api/v1/data/[formpk]
Adding this column to data exports is possible and would make most sense in the new exports being rolled out currently.
Best,
Tino
···
On Tue, Jun 14, 2016 at 2:14 PM, Jesaja Everling jeve...@gmail.com wrote:
Hi all,
I’ve noticed the following sentence in the model definition for
Instance
(https://github.com/kobotoolbox/kobocat/blob/master/onadata/apps/logger/models/instance.py#L119):
# ODK keeps track of three statuses for an instance:
# incomplete, submitted, complete
# we add a fourth status: submitted_via_web
Looking through the source code, it seems to me that these statuses
are never actually used for anything. If that’s the case, would it be
safe to use Instance.status
for creating something like a workflow
for data exports? Or would we risk to break compatibility in some way
by using something other than incomplete
, submitted
, complete
(and submitted_via_web
)?
Are there maybe any plans to add something like a filter for forms
with a specific status to the Advanced Exports
functionality?
Thanks and greetings,
Jesaja Everling
–
You received this message because you are subscribed to the Google Groups “Kobo Users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to kobo-users+...@googlegroups.com.
To post to this group, send email to kobo-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kobo-users.
For more options, visit https://groups.google.com/d/optout.