Annet,
everything seems fine except the following things in the cityAC
function:
> rows=db(db.adres.plaatsnaam.like(request.vars.q.capitalize()+'%s%
> %'%q))\
rows=db(db.adres.plaatsnaam.like('%s%%'%q.capitalize()))\
so that when q=='city' the like argument will be 'City%'.
> r=''
> for row in rows:
> r='%s%s'%(r,row.option)
> return r
here it is important to keep the '\n' to separate the returned values
and use your own field name:
r='%s%s\n'(%r,row.plaatsnaam)
Best regards,
Denes.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---