Kenji,

I do not get error messages now but the autocompletion does not word.  I get
a dropdown list and when I select one, what was entered in the form stays as
it was.

Example: If you look at the screenshot: if I select the first item in the
list the following form vars gets recorded:

<Storage {'doc_nr': '', '_autocomplete_doc_nr__aux': 'ass'}>

The code:
vorm = SQLFORM.factory(
        Field('doc_nr',widget=suggest_widget(db.akb_doccenter.doc_nr,
                                             id_field=db.akb_doccenter.id,
                                             limitby=(0,20), min_length=2)))
    if vorm.accepts(request.vars, session):
        response.flash = 'submitted %s' % vorm.vars
        print vorm.vars
    else:
        response.flash = 'nie gekry nie'

regards
Johann
-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

<<attachment: Screenshot - 22092011 - 14:03:05.png>>

Reply via email to