Write to CSV media files

Hi,

is there any solution to write into csv media file???

I have a csv media file with records (which are shown in a select one list)
but after i choose any of the coices i want to write a flag to csv file
(from 0 to 1) so next time will not appeared... in the list

Any ideas ?

Panos

No

ยทยทยท On Thu, Nov 13, 2014 at 7:13 AM, Panos Papadatos wrote:

Hi,

is there any solution to write into csv media file???

I have a csv media file with records (which are shown in a select one
list) but after i choose any of the coices i want to write a flag to csv
file (from 0 to 1) so next time will not appeared... in the list

Any ideas ?

Panos

--

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


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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Panos,

This can't be done in CSV file but there is a work around to what you're
trying to achieve. You should:

  1. Try making a list of choices in your ODK forms through a repeat group.
    (using indexed-repeat store all values i.e. 1, 2, 3, ... upto max number of
    choices).

  2. Using filter on your question itemset part:

<itemset nodeset= "instance('name')/root/item[(filter !=
/Indexed-repeat/choice1) and ((filter != /Indexed-repeat/choice2) and
(filter != /Indexed-repeat/choice3) ... up to max possible
choices/indexes)]"

This however will be a good solution if the choices are terribly large.