SQLFORM.factory(Field('hi', 'text'))
the factory method acts just like db.define_table but does not hook
into a database.
-Thadeus
On Thu, Feb 11, 2010 at 2:07 PM, Donald Hughes <[email protected]> wrote:
> I was trying to use the form_example as a starting point:
> form=FORM(TABLE(TR("Sure?",SELECT('yes','no',_name="sure",requires=IS_IN_SET(['yes','no']))),
>
> Can I use sqlform without a database to populate the data?
>
>
>
>
> On Feb 11, 1:36 pm, Thadeus Burgess <[email protected]> wrote:
>> is this integrated into sqlform?
>>
>> Field(..., requires=IS_IN_SET((1, 2, 3), ("Car", "Van", "Truck")))
>>
>> -Thadeus
>>
>> On Thu, Feb 11, 2010 at 1:32 PM, Donald Hughes <[email protected]>
>> wrote:
>> > Sorry, I'm really new with both Python and web2py (coming from c#/
>> > asp.net)!
>>
>> > I'm trying to create a statically-initialized dropdown (I'm not
>> > populating from a database) that has values different from the
>> > displayed text. A trivial example of the desired HTML output:
>>
>> > <select>
>> > <option value="1">Car</option>
>> > <option value="2">Van</option>
>> > <option value="3">Truck</option>
>> > </select>
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "web2py-users" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group
>> > athttp://groups.google.com/group/web2py?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to [email protected].
> 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.
>
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
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.