Sorry i didn't mention in my previous post ,
this is also be in controller.py
def selector():
if not request.vars.keywords:
return ''
pattern = request.vars.keywords + '%'
selected = list(set([row.customer_name for row in db((db.inward_entries.customer_name.like(pattern,case_sensitive=False))(db.inward_entries.created_by==auth.user.id)).select(limitby=(0, 10))])) return ''.join([DIV(k,
_onclick="jQuery('#w2p_keywords').val('%s')" % k,
_onmouseover="this.style.backgroundColor='yellow'",
_onmouseout="this.style.backgroundColor='white'"
).xml() for k in selected])
Thanks
Sandeep