Long text?

Is there a long text question type in ODK?

er. dunno what you mean. you can type as long of text as you'd like
and the input box should expand.

··· On Tue, Aug 16, 2011 at 14:09, Thomas Smyth wrote: > Is there a long text question type in ODK? >

Glory.

··· On 16 August 2011 17:10, Yaw Anokwa wrote: > er. dunno what you mean. you can type as long of text as you'd like > and the input box should expand. > > On Tue, Aug 16, 2011 at 14:09, Thomas Smyth wrote: >> Is there a long text question type in ODK? >> >

If you are uploading to ODK Aggregate 1.0, there are some limitations on
string length.

String values default to hold 200 UTF-8 characters.
We guarantee searching is possible only on the first 249 characters (this is
the result of an AppEngine restriction, not applicable to MySQL or
PostgreSQL databases).

The MySQL database has a maximum string length of about 20000 UTF-8
characters.
PostgreSQL string length is effectively unlimited (in the GB range).

There's a tradeoff on how long you declare a string to be -- the larger it
is, the more space is reserved to store that string, and this may require
that data be split across multiple tables (because all datastores have
limits on how much data can be stored in a single row of a table).

To get ODK Aggregate 1.0 to adjust the length of the string columns it
defines, you must:

(1) add: xmlns:odk="http://www.opendatakit.org/xforms" to the namespace
lists at the top of the form.
(2) add: odk:length="nnn" to the bind terms for the strings you want to
have longer.

Eventually, this should all go away and we should deduce the length of the
string
from a "stringlength(.) < nnn" constraint on that variable. That's not
there for Aggregate 1.0.

So if the original form was:

··· --------------- <?xml version="1.0"?> Simple Form ... ---------------

You would make these changes in red

<?xml version="1.0"?>

<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:odk="http://www.opendatakit.org/xforms"
xmlns:jr="http://openrosa.org/javarosa">
<h:head>
<h:title>Simple Form</h:title>








</h:head>
<h:body>
...
</h:body>
</h:html>

Mitch

On Tue, Aug 16, 2011 at 2:12 PM, Thomas Smyth thomas.smyth@gatech.eduwrote:

Glory.

On 16 August 2011 17:10, Yaw Anokwa yanokwa@gmail.com wrote:

er. dunno what you mean. you can type as long of text as you'd like
and the input box should expand.

On Tue, Aug 16, 2011 at 14:09, Thomas Smyth thomas.smyth@gatech.edu wrote:

Is there a long text question type in ODK?

--
Mitch Sundt
Software Engineer
http://www.OpenDataKit.org
University of Washington
mitchellsundt@gmail.com