Perhaps I misunderstood the question. response.vars always contains
strings no matter what. If the field if type 'integer' the value
automatically converted to integer.

Massimo

On Nov 18, 6:11 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> I don't understand how this provides numeric value= items but have
> text in the visual part of the select.
>
> On Tue, Nov 18, 2008 at 5:06 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > IS_IN_SET(range(1,10)) should work. If not try
> > IS_IN_SET([str(i) for i in range(1,10)])
>
> > On Nov 18, 5:44 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> >> I know that a dropdown list can be created with
> >> is_in_set(['yes','no']), but i need numeric values for the select
> >> items.
>
> >> <select>
> >> <option value=1>Yes</option>
> >> <option value=2>No</option>
>
> >> </select>
>
> >> can an is_in_set provide this kind of select?
>
> >> thx,
>
> >> -wj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to