[web2py] Re: list:reference requires is not empty

2013-06-09 Thread BlueShadow
I tried the IS_LIST_OF validator and I can't get ist to work. when I have no validator I got all names in my refrenced table. And I can select as much as I like, but when I use any validators the list disappears and I get an input for a string. I tried IS_LENGTH(minsize=1) as well as

[web2py] Re: list:reference requires is not empty

2013-06-09 Thread Anthony
Use IS_IN_DB(..., multiple=(1, 1000)). The multiple argument to IS_IN_DB can be a tuple specifying the minimum and maximum number of items to be selected (note, you should set the maximum to a value you know will be above the maximum number of items in the list, unless you want to restrict it

[web2py] Re: list:reference requires is not empty

2013-06-02 Thread Massimo Di Pierro
The IS_NOT_EMPTY validator is not compatible with a list:string field. A list can have zero elements. What you want it IS_LIST_OF(other_validator_for_elements, minimum, maximum) On Sunday, 2 June 2013 07:14:19 UTC-5, BlueShadow wrote: when one has a database field with a list:reference type