I guess the auto complete widget makes some sort of ajax request on
user actions and this is not exposed to the developer. Have you looked
for server side errors in the admin error list? If ajax requests fail
there should be tickets generated by web2py unless they are omited in
the ajax action somehow.

On 14 ene, 16:24, cyber <[email protected]> wrote:
> Hi there!
>
> My table consists of some cyrrilic chars and when I try to select by
> typing into the form nothing happened.
> But if I fill the table with latin chars, it works perfetly.
>
> For example, in models:
>
> db.define_table('clients',
>     Field('client',   type='string',  label=T('îÁÉÍÅÎÏ×ÁÎÉÅ
> ÏÒÇÁÎÉÚÁÃÉÉ'), unique=True, notnull=True, length=25),
>     .......
>      )
> db.clients.client.requires=IS_NOT_EMPTY(error_message='cannot be
> empty')
> db.clients.client.requires=IS_NOT_IN_DB(db, 'clients.client')
> db.clients.client.widget = SQLFORM.widgets.autocomplete(request,
> db.clients.client, limitby=(0,10), min_length=1)
>
> ... in controller:
> form=SQLFORM.factory(db.clients, fields=['client'])
>
> ... in view:
> {{=form}}
>
> How can I deal with it?
> Thanks in advance for any help!

Reply via email to