db.define_table('mytable',SQLField('a'),SQLField('b'))
db.mytable.a.requires=IS_IN_SET(['one','two','three'])
def index():
db.mytable['displays']=['a]
form=t2.search(db.mytable,query=db.mytable.b=='something',orderby=None)
return dict(form=form)
On Nov 8, 8:20 pm, "Domain Admin" <[EMAIL PROTECTED]> wrote:
> Does anyone know how to use t2.search()? I've got it working like in the
> puppies application in the t2 video. I'd like to make it so there's only
> one input field and set the other options in my code (i.e. remove the
> dropdown selects and 'refine' checkbox). Is there any way to do this? I've
> been trying to figure it out for about three hours now, but I can't find a
> way to do it.
> Thanks,
> Brian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---