# Limits on length of an item in a Lookup Table?

**URL:** <https://forum.dimagi.com/t/limits-on-length-of-an-item-in-a-lookup-table/2852>\
**Category:** Users\
**Created:** [July 18, 2016, 6:38am UTC](https://forum.dimagi.com/t/limits-on-length-of-an-item-in-a-lookup-table/2852 "2016-07-18T06:38:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Stephan](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/e/c67d28/32.png) [@Eric\_Stephan](https://forum.dimagi.com/u/Eric_Stephan)\
**Post date:** [July 18, 2016, 6:38am UTC](https://forum.dimagi.com/t/limits-on-length-of-an-item-in-a-lookup-table/2852/1 "2016-07-18T06:38:07Z")

</div>

Hi all --

I am using a lookup table in order to store some small, single data items  
that my commcare app will make use of, ... for situations when I want to  
make a change to app behavior without needing the users to all update their  
apps.

My lookup table is called app config, and as an example, I can have one  
item in there called "activate-feature-1" and I can program my app to look  
the value for that item, and if it is "1" then it should display certain  
features or questions. That gives me a way to control app behavior.

I have decided I would like to also place a single item in the lookup table  
that will simply place a little "news phrase" in the first page of each  
form. For example this news phrase could say "Please remember, the team  
meeting is on August 5 at 10am." This phrase will display on the user's  
screens ... assuming that they have done a Sync recently. 🙂

So my question is, can you tell me the limit on the string length of a data  
item in the lookup tables? This will tell me how short I have to keep my  
little "news item" text string.

Thanks!  
Eric

---

<div class="post-metadata">

**Author:** ![czue](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/czue/32/493_2.png) [@czue](https://forum.dimagi.com/u/czue)\
**Post date:** [July 18, 2016, 8:11am UTC](https://forum.dimagi.com/t/limits-on-length-of-an-item-in-a-lookup-table/2852/2 "2016-07-18T08:11:28Z")

</div>

Hey Eric,

Cool idea!

I don't think there is currently an explicit limit to how long the data in  
a lookup table can be (though it's probably something we should add). From  
a practical perspective, I believe that anything that you could fit on a  
phone screen (or even a few screens) should be totally fine.

Cory

> **···**
>
> On Mon, Jul 18, 2016 at 8:38 AM, Eric Stephan wrote:
> 
> > Hi all --
> > 
> > I am using a lookup table in order to store some small, single data items  
> > that my commcare app will make use of, ... for situations when I want to  
> > make a change to app behavior without needing the users to all update their  
> > apps.
> > 
> > My lookup table is called app config, and as an example, I can have one  
> > item in there called "activate-feature-1" and I can program my app to look  
> > the value for that item, and if it is "1" then it should display certain  
> > features or questions. That gives me a way to control app behavior.
> > 
> > I have decided I would like to also place a single item in the lookup  
> > table that will simply place a little "news phrase" in the first page of  
> > each form. For example this news phrase could say "Please remember, the  
> > team meeting is on August 5 at 10am." This phrase will display on the  
> > user's screens ... assuming that they have done a Sync recently. 🙂
> > 
> > So my question is, can you tell me the limit on the string length of a  
> > data item in the lookup tables? This will tell me how short I have to  
> > keep my little "news item" text string.
> > 
> > Thanks!  
> > Eric
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "commcare-users" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [commcare-users+unsubscribe@googlegroups.com](mailto:commcare-users+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
