Client-side Dynamic Lookups of Collected Data?

Hi All --
I don't think that what I am looking to do is currently possible, but
thought I'd throw this out here just in case.

The context is a voucher program in which we are concerned about detecting
fraudulent/already-used vouchers.

Here is the use case:
Field staff collect and scan a presented voucher using ODK Collect, which
has a QR Code printed on it.

With the great new pre-loading feature in 1.4.3, I think that we could
pre-load a list of used vouchers (as of last sync) and do a pulldata to
check for a duplicate/used voucher.

But what about doing a check like this dynamically, in real time? (The rub
is that we will be offline during the distribution -- no cell coverage.)

The pre-loaded data would only be as fresh as the last data and DB sync,
and would not have the current distribution's 'used voucher' list.

Is there a way to dynamically reference or search form data that has been
collected and still resides on the mobile device?

I think it's only possible with ODK 2.0.

··· On Thursday, May 15, 2014 2:02:37 PM UTC+7, Jake Watson wrote: > > Hi All -- > I don't think that what I am looking to do is currently possible, but > thought I'd throw this out here just in case. > > The context is a voucher program in which we are concerned about detecting > fraudulent/already-used vouchers. > > Here is the use case: > Field staff collect and scan a presented voucher using ODK Collect, which > has a QR Code printed on it. > > With the great new pre-loading feature in 1.4.3, I think that we could > pre-load a list of used vouchers (as of last sync) and do a *pulldata* to > check for a duplicate/used voucher. > > But what about doing a check like this dynamically, in real time? (The rub > is that we will be offline during the distribution -- no cell coverage.) > > The pre-loaded data would only be as fresh as the last data and DB sync, > and would not have the current distribution's 'used voucher' list. > > Is there a way to dynamically reference or search form data that has been > collected and still resides on the mobile device? >

Even in ODK 2.0, you would need to write some custom code. The ODK 2.0
tools are still primarily focused on disconnected operations.

This always-connected functionality would require (in ODK 2.0) writing your
own prompt type that did an ajax call to the server to verify the submitted
voucher.

In ODK Collect 1.4.3, you need to write an external app that does this
verification, and invoke that external app using one of the
string/integer/decimal from 3rd party app widgets. You can use the new
features of 1.4.3 to pass the QRCode to the external app. See

··· On Thu, May 15, 2014 at 9:52 AM, Trung Dang Le wrote:

I think it's only possible with ODK 2.0.

On Thursday, May 15, 2014 2:02:37 PM UTC+7, Jake Watson wrote:

Hi All --
I don't think that what I am looking to do is currently possible, but
thought I'd throw this out here just in case.

The context is a voucher program in which we are concerned about
detecting fraudulent/already-used vouchers.

Here is the use case:
Field staff collect and scan a presented voucher using ODK Collect, which
has a QR Code printed on it.

With the great new pre-loading feature in 1.4.3, I think that we could
pre-load a list of used vouchers (as of last sync) and do a pulldatato check for a duplicate/used voucher.

But what about doing a check like this dynamically, in real time? (The
rub is that we will be offline during the distribution -- no cell coverage.)

The pre-loaded data would only be as fresh as the last data and DB sync,
and would not have the current distribution's 'used voucher' list.

Is there a way to dynamically reference or search form data that has been
collected and still resides on the mobile device?

--

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

Mitch, many thanks for the informative reply!

··· On May 15, 2014, at 9:37 PM, Mitch Sundt wrote:

Even in ODK 2.0, you would need to write some custom code. The ODK 2.0 tools are still primarily focused on disconnected operations.

This always-connected functionality would require (in ODK 2.0) writing your own prompt type that did an ajax call to the server to verify the submitted voucher.

In ODK Collect 1.4.3, you need to write an external app that does this verification, and invoke that external app using one of the string/integer/decimal from 3rd party app widgets. You can use the new features of 1.4.3 to pass the QRCode to the external app. See http://opendatakit.org/help/form-design/external-apps/

On Thu, May 15, 2014 at 9:52 AM, Trung Dang Le trungdangle@gmail.com wrote:
I think it's only possible with ODK 2.0.

On Thursday, May 15, 2014 2:02:37 PM UTC+7, Jake Watson wrote:
Hi All --
I don't think that what I am looking to do is currently possible, but thought I'd throw this out here just in case.

The context is a voucher program in which we are concerned about detecting fraudulent/already-used vouchers.

Here is the use case:
Field staff collect and scan a presented voucher using ODK Collect, which has a QR Code printed on it.

With the great new pre-loading feature in 1.4.3, I think that we could pre-load a list of used vouchers (as of last sync) and do a pulldata to check for a duplicate/used voucher.

But what about doing a check like this dynamically, in real time? (The rub is that we will be offline during the distribution -- no cell coverage.)

The pre-loaded data would only be as fresh as the last data and DB sync, and would not have the current distribution's 'used voucher' list.

Is there a way to dynamically reference or search form data that has been collected and still resides on the mobile device?

--

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

--

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 a topic in the Google Groups "ODK Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opendatakit/wnmmSmzRdzM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.