Using QR code to prefill multiple fields

Hello all,

I am working on a project what will use QR tags. When the user first opens the form, I wuld like them to scan the QR to prefill 3 or 4 data fields. An example would be, Location name, state, county, zip code. All of this would be embedded in the QR tag onsite. So when the user scans, it would put the results in the appropirate field. We have played with the Barcode function, but it does not make sense to have 4 Barcode lables and the user scan each one. I have searched fopr hours tring to find sample code but with no luck,

Thank you for any help.

Brent

Hi Brent,

ODK does not currently provide this functionality and it's not easy to
get JavaROSA (the underlying library that ODK uses) to write data into
arbitrary prompts generically. ODK 2.0 will make this easier, but
those tools are still under development.

Your options are to file a feature request at
http://code.google.com/p/opendatakit and maybe someone in the
community will contribute the feature to the current ODK tools.
Alternatively, you can hire a developer at
http://opendatakit.org/help/help-for-hire to build this feature for
you.

Yaw

··· -- Need ODK services? Go to http://nafundi.com for form design, data cleaning, custom reporting, and software development for ODK.

On Sat, Jul 13, 2013 at 8:45 AM, brentpalmer2112@gmail.com wrote:

Hello all,

I am working on a project what will use QR tags. When the user first opens the form, I wuld like them to scan the QR to prefill 3 or 4 data fields. An example would be, Location name, state, county, zip code. All of this would be embedded in the QR tag onsite. So when the user scans, it would put the results in the appropirate field. We have played with the Barcode function, but it does not make sense to have 4 Barcode lables and the user scan each one. I have searched fopr hours tring to find sample code but with no luck,

Thank you for any help.

Brent

--

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/groups/opt_out.

You might be able to scan the data into one barcode field, then have
calculated fields that extract that data using the substr() function.

This, however, is problematic because there is no index-of() function, so
each field you extract would have to be a certain fixed number of
characters wide.

Mitch

··· On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa wrote:

Hi Brent,

ODK does not currently provide this functionality and it's not easy to
get JavaROSA (the underlying library that ODK uses) to write data into
arbitrary prompts generically. ODK 2.0 will make this easier, but
those tools are still under development.

Your options are to file a feature request at
http://code.google.com/p/opendatakit and maybe someone in the
community will contribute the feature to the current ODK tools.
Alternatively, you can hire a developer at
http://opendatakit.org/help/help-for-hire to build this feature for
you.

Yaw

Need ODK services? Go to http://nafundi.com for form design, data
cleaning, custom reporting, and software development for ODK.

On Sat, Jul 13, 2013 at 8:45 AM, brentpalmer2112@gmail.com wrote:

Hello all,

I am working on a project what will use QR tags. When the user first
opens the form, I wuld like them to scan the QR to prefill 3 or 4 data
fields. An example would be, Location name, state, county, zip code. All of
this would be embedded in the QR tag onsite. So when the user scans, it
would put the results in the appropirate field. We have played with the
Barcode function, but it does not make sense to have 4 Barcode lables and
the user scan each one. I have searched fopr hours tring to find sample
code but with no luck,

Thank you for any help.

Brent

--

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/groups/opt_out.

--

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/groups/opt_out.

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

Hello everybody,

I am interested on the same feature. It would be a great way to speed up
data collection.

I've checked, without success, the mailing list archive to see if this was
already implemented. As this is an older thread; I was keen to get back to
it and check if something was made or if there is a alternative solution.

Kind regards,

Gustavo

··· On Tuesday, July 16, 2013 at 3:44:46 AM UTC+10, Mitch Sundt wrote: > > You might be able to scan the data into one barcode field, then have > calculated fields that extract that data using the substr() function. > > This, however, is problematic because there is no index-of() function, so > each field you extract would have to be a certain fixed number of > characters wide. > > Mitch > > > > On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa <yan...@nafundi.com > wrote: > >> Hi Brent, >> >> ODK does not currently provide this functionality and it's not easy to >> get JavaROSA (the underlying library that ODK uses) to write data into >> arbitrary prompts generically. ODK 2.0 will make this easier, but >> those tools are still under development. >> >> Your options are to file a feature request at >> http://code.google.com/p/opendatakit and maybe someone in the >> community will contribute the feature to the current ODK tools. >> Alternatively, you can hire a developer at >> http://opendatakit.org/help/help-for-hire to build this feature for >> you. >> >> Yaw >> -- >> Need ODK services? Go to http://nafundi.com for form design, data >> cleaning, custom reporting, and software development for ODK. >> >> On Sat, Jul 13, 2013 at 8:45 AM, <brentpa...@gmail.com > wrote: >> > Hello all, >> > >> > I am working on a project what will use QR tags. When the user first >> opens the form, I wuld like them to scan the QR to prefill 3 or 4 data >> fields. An example would be, Location name, state, county, zip code. All of >> this would be embedded in the QR tag onsite. So when the user scans, it >> would put the results in the appropirate field. We have played with the >> Barcode function, but it does not make sense to have 4 Barcode lables and >> the user scan each one. I have searched fopr hours tring to find sample >> code but with no luck, >> > >> > Thank you for any help. >> > >> > Brent >> > >> > -- >> > -- >> > Post: opend...@googlegroups.com >> > Unsubscribe: opendatakit...@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...@googlegroups.com . >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Same caveats apply as before. The XZing barcode scanner can read QRCodes.

The JR library does not have an index-of function, so you need to have
fixed-width fields in your QRCode in order to split them out, or have the
QRCode have space-separated list of values and use selected-at() to extract
them -- in this case, the QRCode encodes: [first_part second_part]

··· On Mon, Aug 15, 2016 at 3:32 PM, wrote:

Hello everybody,

I am interested on the same feature. It would be a great way to speed up
data collection.

I've checked, without success, the mailing list archive to see if this was
already implemented. As this is an older thread; I was keen to get back to
it and check if something was made or if there is a alternative solution.

Kind regards,

Gustavo

On Tuesday, July 16, 2013 at 3:44:46 AM UTC+10, Mitch Sundt wrote:

You might be able to scan the data into one barcode field, then have
calculated fields that extract that data using the substr() function.

This, however, is problematic because there is no index-of() function, so
each field you extract would have to be a certain fixed number of
characters wide.

Mitch

On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa yan...@nafundi.com wrote:

Hi Brent,

ODK does not currently provide this functionality and it's not easy to
get JavaROSA (the underlying library that ODK uses) to write data into
arbitrary prompts generically. ODK 2.0 will make this easier, but
those tools are still under development.

Your options are to file a feature request at
http://code.google.com/p/opendatakit and maybe someone in the
community will contribute the feature to the current ODK tools.
Alternatively, you can hire a developer at
http://opendatakit.org/help/help-for-hire to build this feature for
you.

Yaw

Need ODK services? Go to http://nafundi.com for form design, data
cleaning, custom reporting, and software development for ODK.

On Sat, Jul 13, 2013 at 8:45 AM, brentpa...@gmail.com wrote:

Hello all,

I am working on a project what will use QR tags. When the user first
opens the form, I wuld like them to scan the QR to prefill 3 or 4 data
fields. An example would be, Location name, state, county, zip code. All of
this would be embedded in the QR tag onsite. So when the user scans, it
would put the results in the appropirate field. We have played with the
Barcode function, but it does not make sense to have 4 Barcode lables and
the user scan each one. I have searched fopr hours tring to find sample
code but with no luck,

Thank you for any help.

Brent

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@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 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

Hi Mitch,

Thanks for the valuable input.
As I am new-user of ODK (and I have a background in agriculture), could
you please clarify if you the programming language is xml? If so, which are
the commands/codes supported by the JRosa library?
Should I make these changes using Notepad++ (code editor) or should I
use/can the online build platform.

Thank you very much and, please, excuse my ignorance.

Gustavo

··· On Tuesday, August 16, 2016 at 8:52:28 AM UTC+10, Mitch Sundt wrote: > > Same caveats apply as before. The XZing barcode scanner can read QRCodes. > > The JR library does not have an index-of function, so you need to have > fixed-width fields in your QRCode in order to split them out, or have the > QRCode have space-separated list of values and use selected-at() to extract > them -- in this case, the QRCode encodes: [first_part second_part] > > > > > On Mon, Aug 15, 2016 at 3:32 PM, <gustavo...@utas.edu.au > wrote: > >> Hello everybody, >> >> >> I am interested on the same feature. It would be a great way to speed up >> data collection. >> >> I've checked, without success, the mailing list archive to see if this >> was already implemented. As this is an older thread; I was keen to get back >> to it and check if something was made or if there is a alternative solution. >> >> Kind regards, >> >> Gustavo >> >> On Tuesday, July 16, 2013 at 3:44:46 AM UTC+10, Mitch Sundt wrote: >>> >>> You might be able to scan the data into one barcode field, then have >>> calculated fields that extract that data using the substr() function. >>> >>> This, however, is problematic because there is no index-of() function, >>> so each field you extract would have to be a certain fixed number of >>> characters wide. >>> >>> Mitch >>> >>> >>> >>> On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa wrote: >>> >>>> Hi Brent, >>>> >>>> ODK does not currently provide this functionality and it's not easy to >>>> get JavaROSA (the underlying library that ODK uses) to write data into >>>> arbitrary prompts generically. ODK 2.0 will make this easier, but >>>> those tools are still under development. >>>> >>>> Your options are to file a feature request at >>>> http://code.google.com/p/opendatakit and maybe someone in the >>>> community will contribute the feature to the current ODK tools. >>>> Alternatively, you can hire a developer at >>>> http://opendatakit.org/help/help-for-hire to build this feature for >>>> you. >>>> >>>> Yaw >>>> -- >>>> Need ODK services? Go to http://nafundi.com for form design, data >>>> cleaning, custom reporting, and software development for ODK. >>>> >>>> On Sat, Jul 13, 2013 at 8:45 AM, wrote: >>>> > Hello all, >>>> > >>>> > I am working on a project what will use QR tags. When the user first >>>> opens the form, I wuld like them to scan the QR to prefill 3 or 4 data >>>> fields. An example would be, Location name, state, county, zip code. All of >>>> this would be embedded in the QR tag onsite. So when the user scans, it >>>> would put the results in the appropirate field. We have played with the >>>> Barcode function, but it does not make sense to have 4 Barcode lables and >>>> the user scan each one. I have searched fopr hours tring to find sample >>>> code but with no luck, >>>> > >>>> > Thank you for any help. >>>> > >>>> > Brent >>>> > >>>> > -- >>>> > -- >>>> > Post: opend...@googlegroups.com >>>> > Unsubscribe: opendatakit...@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...@googlegroups.com. >>>> > For more options, visit https://groups.google.com/groups/opt_out. >>>> > >>>> > >>>> >>>> -- >>>> -- >>>> Post: opend...@googlegroups.com >>>> Unsubscribe: opendatakit...@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...@googlegroups.com. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> >>> -- >>> Mitch Sundt >>> Software Engineer >>> University of Washington >>> mitche...@gmail.com >>> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Hi Gustavo,

Build is easier than XLSForm which is easier that XML. I'd recommend
you try XLSForm and try to build a basic barcode form.

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Tue, Aug 16, 2016 at 3:28 AM, gustavo.alckmin@utas.edu.au wrote:

Hi Mitch,

Thanks for the valuable input.
As I am new-user of ODK (and I have a background in agriculture), could you
please clarify if you the programming language is xml? If so, which are the
commands/codes supported by the JRosa library?
Should I make these changes using Notepad++ (code editor) or should I
use/can the online build platform.

Thank you very much and, please, excuse my ignorance.

Gustavo

On Tuesday, August 16, 2016 at 8:52:28 AM UTC+10, Mitch Sundt wrote:

Same caveats apply as before. The XZing barcode scanner can read QRCodes.

The JR library does not have an index-of function, so you need to have
fixed-width fields in your QRCode in order to split them out, or have the
QRCode have space-separated list of values and use selected-at() to extract
them -- in this case, the QRCode encodes: [first_part second_part]

On Mon, Aug 15, 2016 at 3:32 PM, gustavo...@utas.edu.au wrote:

Hello everybody,

I am interested on the same feature. It would be a great way to speed up
data collection.

I've checked, without success, the mailing list archive to see if this
was already implemented. As this is an older thread; I was keen to get back
to it and check if something was made or if there is a alternative solution.

Kind regards,

Gustavo

On Tuesday, July 16, 2013 at 3:44:46 AM UTC+10, Mitch Sundt wrote:

You might be able to scan the data into one barcode field, then have
calculated fields that extract that data using the substr() function.

This, however, is problematic because there is no index-of() function,
so each field you extract would have to be a certain fixed number of
characters wide.

Mitch

On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa yan...@nafundi.com wrote:

Hi Brent,

ODK does not currently provide this functionality and it's not easy to
get JavaROSA (the underlying library that ODK uses) to write data into
arbitrary prompts generically. ODK 2.0 will make this easier, but
those tools are still under development.

Your options are to file a feature request at
http://code.google.com/p/opendatakit and maybe someone in the
community will contribute the feature to the current ODK tools.
Alternatively, you can hire a developer at
http://opendatakit.org/help/help-for-hire to build this feature for
you.

Yaw

Need ODK services? Go to http://nafundi.com for form design, data
cleaning, custom reporting, and software development for ODK.

On Sat, Jul 13, 2013 at 8:45 AM, brentpa...@gmail.com wrote:

Hello all,

I am working on a project what will use QR tags. When the user first
opens the form, I wuld like them to scan the QR to prefill 3 or 4 data
fields. An example would be, Location name, state, county, zip code. All of
this would be embedded in the QR tag onsite. So when the user scans, it
would put the results in the appropirate field. We have played with the
Barcode function, but it does not make sense to have 4 Barcode lables and
the user scan each one. I have searched fopr hours tring to find sample code
but with no luck,

Thank you for any help.

Brent

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@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 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.

Hello Yaw,

You are definitely right about it. Additionally, sorry for the absence of
information:

  • As Brent, I am trying to use a QR Code to speed up the process of
    manually filling information throughout the whole form. If there is no
    barcode (or the user is keen no to use) then he could do it manually;

  • I thought about subset of a string; thus, something like:

Field_1 -> calculate = substr(${barcode},0,5);
Field_2 -> calculate = substr(${barcode},5,10) etc...

It did not work; though.

Sorry for my complete ignorance on this topic,

Kind regards,
Gustavo

··· On Tuesday, August 16, 2016 at 6:53:45 PM UTC+10, Yaw Anokwa wrote: > > Hi Gustavo, > > Build is easier than XLSForm which is easier that XML. I'd recommend > you try XLSForm and try to build a basic barcode form. > > Yaw > -- > Need ODK consultants? Nafundi provides form design, server setup, > in-field training, and software development for ODK. Go to > https://nafundi.com to get started. > > On Tue, Aug 16, 2016 at 3:28 AM, <gustavo...@utas.edu.au > wrote: > > Hi Mitch, > > > > Thanks for the valuable input. > > As I am new-user of ODK (and I have a background in agriculture), could > you > > please clarify if you the programming language is xml? If so, which are > the > > commands/codes supported by the JRosa library? > > Should I make these changes using Notepad++ (code editor) or should I > > use/can the online build platform. > > > > Thank you very much and, please, excuse my ignorance. > > > > Gustavo > > > > On Tuesday, August 16, 2016 at 8:52:28 AM UTC+10, Mitch Sundt wrote: > >> > >> Same caveats apply as before. The XZing barcode scanner can read > QRCodes. > >> > >> The JR library does not have an index-of function, so you need to have > >> fixed-width fields in your QRCode in order to split them out, or have > the > >> QRCode have space-separated list of values and use selected-at() to > extract > >> them -- in this case, the QRCode encodes: [first_part second_part] > >> > >> > >> > >> > >> On Mon, Aug 15, 2016 at 3:32 PM, wrote: > >>> > >>> Hello everybody, > >>> > >>> > >>> I am interested on the same feature. It would be a great way to speed > up > >>> data collection. > >>> > >>> I've checked, without success, the mailing list archive to see if this > >>> was already implemented. As this is an older thread; I was keen to get > back > >>> to it and check if something was made or if there is a alternative > solution. > >>> > >>> Kind regards, > >>> > >>> Gustavo > >>> > >>> On Tuesday, July 16, 2013 at 3:44:46 AM UTC+10, Mitch Sundt wrote: > >>>> > >>>> You might be able to scan the data into one barcode field, then have > >>>> calculated fields that extract that data using the substr() function. > >>>> > >>>> This, however, is problematic because there is no index-of() > function, > >>>> so each field you extract would have to be a certain fixed number of > >>>> characters wide. > >>>> > >>>> Mitch > >>>> > >>>> > >>>> > >>>> On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa wrote: > >>>>> > >>>>> Hi Brent, > >>>>> > >>>>> ODK does not currently provide this functionality and it's not easy > to > >>>>> get JavaROSA (the underlying library that ODK uses) to write data > into > >>>>> arbitrary prompts generically. ODK 2.0 will make this easier, but > >>>>> those tools are still under development. > >>>>> > >>>>> Your options are to file a feature request at > >>>>> http://code.google.com/p/opendatakit and maybe someone in the > >>>>> community will contribute the feature to the current ODK tools. > >>>>> Alternatively, you can hire a developer at > >>>>> http://opendatakit.org/help/help-for-hire to build this feature for > >>>>> you. > >>>>> > >>>>> Yaw > >>>>> -- > >>>>> Need ODK services? Go to http://nafundi.com for form design, data > >>>>> cleaning, custom reporting, and software development for ODK. > >>>>> > >>>>> On Sat, Jul 13, 2013 at 8:45 AM, wrote: > >>>>> > Hello all, > >>>>> > > >>>>> > I am working on a project what will use QR tags. When the user > first > >>>>> > opens the form, I wuld like them to scan the QR to prefill 3 or 4 > data > >>>>> > fields. An example would be, Location name, state, county, zip > code. All of > >>>>> > this would be embedded in the QR tag onsite. So when the user > scans, it > >>>>> > would put the results in the appropirate field. We have played > with the > >>>>> > Barcode function, but it does not make sense to have 4 Barcode > lables and > >>>>> > the user scan each one. I have searched fopr hours tring to find > sample code > >>>>> > but with no luck, > >>>>> > > >>>>> > Thank you for any help. > >>>>> > > >>>>> > Brent > >>>>> > > >>>>> > -- > >>>>> > -- > >>>>> > Post: opend...@googlegroups.com > >>>>> > Unsubscribe: opendatakit...@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...@googlegroups.com. > >>>>> > For more options, visit https://groups.google.com/groups/opt_out. > >>>>> > > >>>>> > > >>>>> > >>>>> -- > >>>>> -- > >>>>> Post: opend...@googlegroups.com > >>>>> Unsubscribe: opendatakit...@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...@googlegroups.com. > >>>>> For more options, visit https://groups.google.com/groups/opt_out. > >>>>> > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> Mitch Sundt > >>>> Software Engineer > >>>> University of Washington > >>>> mitche...@gmail.com > >>> > >>> -- > >>> -- > >>> Post: opend...@googlegroups.com > >>> Unsubscribe: opendatakit...@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...@googlegroups.com. > >>> For more options, visit https://groups.google.com/d/optout. > >> > >> > >> > >> > >> -- > >> Mitch Sundt > >> Software Engineer > >> University of Washington > >> mitche...@gmail.com > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@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...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >

Hi Gustavo,

No need to be sorry. We all have to start from somewhere!

It's hard to figure out why the form did not work without a demo form.
So, build a three question demo form. One question with barcode and
two questions with the substrings you want to have. See if that works,
if it doesn't then send that small form out and the community can take
a look.

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Tue, Aug 16, 2016 at 9:15 AM, gustavo.alckmin@utas.edu.au wrote:

Hello Yaw,

You are definitely right about it. Additionally, sorry for the absence of
information:

  • As Brent, I am trying to use a QR Code to speed up the process of manually
    filling information throughout the whole form. If there is no barcode (or
    the user is keen no to use) then he could do it manually;

  • I thought about subset of a string; thus, something like:

Field_1 -> calculate = substr(${barcode},0,5);
Field_2 -> calculate = substr(${barcode},5,10) etc...

It did not work; though.

Sorry for my complete ignorance on this topic,

Kind regards,
Gustavo

On Tuesday, August 16, 2016 at 6:53:45 PM UTC+10, Yaw Anokwa wrote:

Hi Gustavo,

Build is easier than XLSForm which is easier that XML. I'd recommend
you try XLSForm and try to build a basic barcode form.

Yaw

Need ODK consultants? Nafundi provides form design, server setup,
in-field training, and software development for ODK. Go to
https://nafundi.com to get started.

On Tue, Aug 16, 2016 at 3:28 AM, gustavo...@utas.edu.au wrote:

Hi Mitch,

Thanks for the valuable input.
As I am new-user of ODK (and I have a background in agriculture), could
you
please clarify if you the programming language is xml? If so, which are
the
commands/codes supported by the JRosa library?
Should I make these changes using Notepad++ (code editor) or should I
use/can the online build platform.

Thank you very much and, please, excuse my ignorance.

Gustavo

On Tuesday, August 16, 2016 at 8:52:28 AM UTC+10, Mitch Sundt wrote:

Same caveats apply as before. The XZing barcode scanner can read
QRCodes.

The JR library does not have an index-of function, so you need to have
fixed-width fields in your QRCode in order to split them out, or have
the
QRCode have space-separated list of values and use selected-at() to
extract
them -- in this case, the QRCode encodes: [first_part second_part]

On Mon, Aug 15, 2016 at 3:32 PM, gustavo...@utas.edu.au wrote:

Hello everybody,

I am interested on the same feature. It would be a great way to speed
up
data collection.

I've checked, without success, the mailing list archive to see if this
was already implemented. As this is an older thread; I was keen to get
back
to it and check if something was made or if there is a alternative
solution.

Kind regards,

Gustavo

On Tuesday, July 16, 2013 at 3:44:46 AM UTC+10, Mitch Sundt wrote:

You might be able to scan the data into one barcode field, then have
calculated fields that extract that data using the substr() function.

This, however, is problematic because there is no index-of()
function,
so each field you extract would have to be a certain fixed number of
characters wide.

Mitch

On Sun, Jul 14, 2013 at 11:19 AM, Yaw Anokwa yan...@nafundi.com wrote:

Hi Brent,

ODK does not currently provide this functionality and it's not easy
to
get JavaROSA (the underlying library that ODK uses) to write data
into
arbitrary prompts generically. ODK 2.0 will make this easier, but
those tools are still under development.

Your options are to file a feature request at
http://code.google.com/p/opendatakit and maybe someone in the
community will contribute the feature to the current ODK tools.
Alternatively, you can hire a developer at
http://opendatakit.org/help/help-for-hire to build this feature for
you.

Yaw

Need ODK services? Go to http://nafundi.com for form design, data
cleaning, custom reporting, and software development for ODK.

On Sat, Jul 13, 2013 at 8:45 AM, brentpa...@gmail.com wrote:

Hello all,

I am working on a project what will use QR tags. When the user
first
opens the form, I wuld like them to scan the QR to prefill 3 or 4
data
fields. An example would be, Location name, state, county, zip
code. All of
this would be embedded in the QR tag onsite. So when the user
scans, it
would put the results in the appropirate field. We have played
with the
Barcode function, but it does not make sense to have 4 Barcode
lables and
the user scan each one. I have searched fopr hours tring to find
sample code
but with no luck,

Thank you for any help.

Brent

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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.