type in the search field "part_number starts with ab"

On Sep 27, 6:20 pm, Omi Chiba <[email protected]> wrote:
> For example, I have a field which has 'abcab' and 'bcabc' data.
> If I provide 'ab' in the search box, I want to just pull the first one
> ('abcab') and exclude second one ('bcabc'). Can we do this ?
>
> models/db.py
> ---------------------
> db.define_table('Product',
>     Field('Part_Number'))
>
> controllers/default.py
> ------------------------------
> def admin():
>     products = SQLFORM.grid(db.Product,deletable=False, paginate=10)
>     return dict(products = products)

Reply via email to