<input> Widget Will Not Let me Input more Than 9 Digits

Hello all,
I have a survey in which I need to put in a user ID which happens to be 10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9, and I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

Anybody please?

··· On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to be 10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9, and I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

Does anyone know why I cannot store more than 9 number characters in this
input widget? Is this a limitation? What happens when one needs to input a
number with more than 9 digits?

··· On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to be 10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9, and I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

According to the notes in the ODK Collect code:

"// ints can only hold 2,147,483,648. we allow 999,999,999"

The 9 digit limit appears to prevent people from putting too large of
number in the input. Because of historical computer design reasons an
Integer in Java must be smaller than 2,147,483,648. There are
different number types that can support larger values but that will
require a lot of changes.

May I suggest using a string instead?

If you would like this changed feel free to file an issue on the
website but it will unlikely happen quickly because I believe it will
require changes to JavaRosa.

Cheers,
Waylon

··· On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba wrote: > Does anyone know why I cannot store more than 9 number characters in this > input widget? Is this a limitation? What happens when one needs to input a > number with more than 9 digits? > > On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba wrote: >> >> Hello all, >> I have a survey in which I need to put in a user ID which happens to be 10 >> digits long. My element is bound thus: >> >> > relevant="selected(/data/participantId, '')" /> >> >> Nowhere in the above line do I limit the number of characters to 9, and I >> need to be able to store 10 digits. What needs doing? >> >> Thanks in advance, >> Tumaini >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en > > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Thanks Waylon, I will use a string instead

··· On Tue, Jun 12, 2012 at 11:11 PM, W. Brunette wrote:

According to the notes in the ODK Collect code:

"// ints can only hold 2,147,483,648. we allow 999,999,999"

The 9 digit limit appears to prevent people from putting too large of
number in the input. Because of historical computer design reasons an
Integer in Java must be smaller than 2,147,483,648. There are
different number types that can support larger values but that will
require a lot of changes.

May I suggest using a string instead?

If you would like this changed feel free to file an issue on the
website but it will unlikely happen quickly because I believe it will
require changes to JavaRosa.

Cheers,
Waylon

On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Does anyone know why I cannot store more than 9 number characters in
this
input widget? Is this a limitation? What happens when one needs to input
a
number with more than 9 digits?

On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to be
10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9, and
I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

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

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

You can use a string with a appearance="number" and it will let you only
input numbers, but up to the length of a string.

··· On Tue, Jun 12, 2012 at 1:15 PM, Tumaini Kilimba wrote:

Thanks Waylon, I will use a string instead

On Tue, Jun 12, 2012 at 11:11 PM, W. Brunette wbrunette@gmail.com wrote:

According to the notes in the ODK Collect code:

"// ints can only hold 2,147,483,648. we allow 999,999,999"

The 9 digit limit appears to prevent people from putting too large of
number in the input. Because of historical computer design reasons an
Integer in Java must be smaller than 2,147,483,648. There are
different number types that can support larger values but that will
require a lot of changes.

May I suggest using a string instead?

If you would like this changed feel free to file an issue on the
website but it will unlikely happen quickly because I believe it will
require changes to JavaRosa.

Cheers,
Waylon

On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Does anyone know why I cannot store more than 9 number characters in
this
input widget? Is this a limitation? What happens when one needs to
input a
number with more than 9 digits?

On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to
be 10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9,
and I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

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

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

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

Brilliant! Just what I needed!

··· On Tue, Jun 12, 2012 at 11:24 PM, Carl Hartung wrote:

You can use a string with a appearance="number" and it will let you only
input numbers, but up to the length of a string.

On Tue, Jun 12, 2012 at 1:15 PM, Tumaini Kilimba tkilimba@ihi.or.tzwrote:

Thanks Waylon, I will use a string instead

On Tue, Jun 12, 2012 at 11:11 PM, W. Brunette wbrunette@gmail.comwrote:

According to the notes in the ODK Collect code:

"// ints can only hold 2,147,483,648. we allow 999,999,999"

The 9 digit limit appears to prevent people from putting too large of
number in the input. Because of historical computer design reasons an
Integer in Java must be smaller than 2,147,483,648. There are
different number types that can support larger values but that will
require a lot of changes.

May I suggest using a string instead?

If you would like this changed feel free to file an issue on the
website but it will unlikely happen quickly because I believe it will
require changes to JavaRosa.

Cheers,
Waylon

On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Does anyone know why I cannot store more than 9 number characters in
this
input widget? Is this a limitation? What happens when one needs to
input a
number with more than 9 digits?

On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to
be 10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9,
and I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

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

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

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

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

mhhhhhh.... it seems that having the attribute appearance="number" does not
make the slightest bit of difference, the keyboard still defaults to
inputting letters and not numbers. Any suggestions?

Tumaini

··· On Tuesday, June 12, 2012 11:24:13 PM UTC+3, Carl Hartung wrote: > > You can use a string with a appearance="number" and it will let you only > input numbers, but up to the length of a string. > > > > On Tue, Jun 12, 2012 at 1:15 PM, Tumaini Kilimba wrote: > >> Thanks Waylon, I will use a string instead >> >> >> On Tue, Jun 12, 2012 at 11:11 PM, W. Brunette wrote: >> >>> According to the notes in the ODK Collect code: >>> >>> "// ints can only hold 2,147,483,648. we allow 999,999,999" >>> >>> The 9 digit limit appears to prevent people from putting too large of >>> number in the input. Because of historical computer design reasons an >>> Integer in Java must be smaller than 2,147,483,648. There are >>> different number types that can support larger values but that will >>> require a lot of changes. >>> >>> May I suggest using a string instead? >>> >>> If you would like this changed feel free to file an issue on the >>> website but it will unlikely happen quickly because I believe it will >>> require changes to JavaRosa. >>> >>> Cheers, >>> Waylon >>> >>> On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba wrote: >>> > Does anyone know why I cannot store more than 9 number characters in >>> this >>> > input widget? Is this a limitation? What happens when one needs to >>> input a >>> > number with more than 9 digits? >>> > >>> > On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba wrote: >>> >> >>> >> Hello all, >>> >> I have a survey in which I need to put in a user ID which happens to >>> be 10 >>> >> digits long. My element is bound thus: >>> >> >>> >> >> >> relevant="selected(/data/participantId, '')" /> >>> >> >>> >> Nowhere in the above line do I limit the number of characters to 9, >>> and I >>> >> need to be able to store 10 digits. What needs doing? >>> >> >>> >> Thanks in advance, >>> >> Tumaini >>> >> >>> >> -- >>> >> Post: opendatakit@googlegroups.com >>> >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> >> Options: http://groups.google.com/group/opendatakit?hl=en >>> > >>> > >>> > -- >>> > Post: opendatakit@googlegroups.com >>> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> > Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> -- >>> Post: opendatakit@googlegroups.com >>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >> >> -- >> Post: opendatakit@googlegroups.com >> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> > >

Tumaini,

Try appearance="numbers" (with an s on the end), as in the example on
http://opendatakit.org/help/form-design/examples/.

There was also a bug in the numbers implementation a few months back, but
it was fixed in the Collect v1.1.7 in Android Market and also in the
v1.2RC. So just make sure that you're running a fairly modern version of
Collect.

Best,

Chris

··· On Monday, June 18, 2012, Tumaini Kilimba wrote:

mhhhhhh.... it seems that having the attribute appearance="number" does
not make the slightest bit of difference, the keyboard still defaults to
inputting letters and not numbers. Any suggestions?

Tumaini
On Tuesday, June 12, 2012 11:24:13 PM UTC+3, Carl Hartung wrote:

You can use a string with a appearance="number" and it will let you only
input numbers, but up to the length of a string.

On Tue, Jun 12, 2012 at 1:15 PM, Tumaini Kilimba tkilimba@ihi.or.tzwrote:

Thanks Waylon, I will use a string instead

On Tue, Jun 12, 2012 at 11:11 PM, W. Brunette wbrunette@gmail.com wrote:

According to the notes in the ODK Collect code:

"// ints can only hold 2,147,483,648. we allow 999,999,999"

The 9 digit limit appears to prevent people from putting too large of
number in the input. Because of historical computer design reasons an
Integer in Java must be smaller than 2,147,483,648. There are
different number types that can support larger values but that will
require a lot of changes.

May I suggest using a string instead?

If you would like this changed feel free to file an issue on the
website but it will unlikely happen quickly because I believe it will
require changes to JavaRosa.

Cheers,
Waylon

On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Does anyone know why I cannot store more than 9 number characters in
this
input widget? Is this a limitation? What happens when one needs to input
a
number with more than 9 digits?

On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to be
10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9, and
I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

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

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

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

--
Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en

Gotcha, thanks!

··· On Mon, Jun 18, 2012 at 3:48 PM, Christopher Robert wrote:

Tumaini,

Try appearance="numbers" (with an s on the end), as in the example on
http://opendatakit.org/help/form-design/examples/.

There was also a bug in the numbers implementation a few months back, but
it was fixed in the Collect v1.1.7 in Android Market and also in the
v1.2RC. So just make sure that you're running a fairly modern version of
Collect.

Best,

Chris

On Monday, June 18, 2012, Tumaini Kilimba wrote:

mhhhhhh.... it seems that having the attribute appearance="number" does
not make the slightest bit of difference, the keyboard still defaults to
inputting letters and not numbers. Any suggestions?

Tumaini
On Tuesday, June 12, 2012 11:24:13 PM UTC+3, Carl Hartung wrote:

You can use a string with a appearance="number" and it will let you only
input numbers, but up to the length of a string.

On Tue, Jun 12, 2012 at 1:15 PM, Tumaini Kilimba tkilimba@ihi.or.tzwrote:

Thanks Waylon, I will use a string instead

On Tue, Jun 12, 2012 at 11:11 PM, W. Brunette wbrunette@gmail.comwrote:

According to the notes in the ODK Collect code:

"// ints can only hold 2,147,483,648. we allow 999,999,999"

The 9 digit limit appears to prevent people from putting too large of
number in the input. Because of historical computer design reasons an
Integer in Java must be smaller than 2,147,483,648. There are
different number types that can support larger values but that will
require a lot of changes.

May I suggest using a string instead?

If you would like this changed feel free to file an issue on the
website but it will unlikely happen quickly because I believe it will
require changes to JavaRosa.

Cheers,
Waylon

On Tue, Jun 12, 2012 at 12:45 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Does anyone know why I cannot store more than 9 number characters in
this
input widget? Is this a limitation? What happens when one needs to
input a
number with more than 9 digits?

On Tue, Jun 12, 2012 at 12:30 PM, Tumaini Kilimba tkilimba@ihi.or.tz wrote:

Hello all,
I have a survey in which I need to put in a user ID which happens to
be 10
digits long. My element is bound thus:

Nowhere in the above line do I limit the number of characters to 9,
and I
need to be able to store 10 digits. What needs doing?

Thanks in advance,
Tumaini

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

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

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

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

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

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