Pulldata

Hi All,

I am using an external data set in my ODK program, and using 'pulldata'
command to insert two numeric values, say 'total_members' and
'total_children'. It seems the values are converted into string when I run
the program. I am getting the error message as below:

"java.lang.String cannot convert be cast yo java.lang.Integers"

I have tried int() function to convert it to integer, but the field becomes
blank.

Can anybody suggest how to resolve it.

Many thanks.

Surajit

Hi All,

I have able to locate the error, did not provide the field reference.

The correct command should be int(${total_members}).

Many thanks.

Surajit

ยทยทยท On Monday, April 25, 2016 at 4:37:13 PM UTC-4, Surajit wrote: > > Hi All, > > I am using an external data set in my ODK program, and using 'pulldata' > command to insert two numeric values, say 'total_members' and > 'total_children'. It seems the values are converted into string when I run > the program. I am getting the error message as below: > > "java.lang.String cannot convert be cast yo java.lang.Integers" > > I have tried int() function to convert it to integer, but the field > becomes blank. > > Can anybody suggest how to resolve it. > > Many thanks. > > Surajit > >