We have a child data of Name, Age, Gender and DOB of 3k to 4k information which is embedded with individual QR or Barcode and saved in CSV file. While reading QR or Barcode we got successful good results using search and pulling syntax from external CSV file. In this extension, we would like to give a warning if QR or Barcode read >1. Please suggest to us.
In ODK Collect each submission is independent, so unfortunately I don't think it is (currently) possible to perform your desired feature.
You could try to use a workaround though, e.g. use a repeat group and check whether there are duplicates in the entries selected in a certain variable.
See similar discussion here: See: Need assistance to create an incrementing ID field
I hope this helps!
I completely agree with you, while reding the ODK forum after posting we got an idea like comparing the data within the loop data of begin repeat is possible to ?.
In general yes, it is possible to recall a single value from a repeat group.
See e.g. this thread: Repeat answer - #5 by Andrea_Martin
Also, I've found this thread which seems quite similar to your case.
If using a repeat group you might be able to do something with count() and indexed-repeat() functions. I suggest searching the forum with some combination of "value", "indexed-repeat", "previous answer", and "count" to see how other people have used these.
If you have a question/line for each barcode scan (not a repeat group), then I was wondering if it was possible to use calculate questions to combine the values from the previous barcode scans and then use a regrex as constraint to look for t…
But I'm not sure the case was resolved.
Some workarounds you might want to explore by combining choice lists and filters.
Alternatively, you could consider developing a simple external app, like the approach mentioned in this post by
@Andrea_Martin states, in Collect each submission is independent so its not (currently) possible to maintain external state between submissions, which would be required for something like an autoincrementing counter. However, it is possible to use an external app to accomplish this (!), which Collect can then query via an external integer widget. There's an available counter app designed for just this purpose, along with instructions how to use it in a form, described here: https://github.co…
I hope this helps!