Il 01/04/2012 23:01, CtrlSoft ha scritto:
it's a good idea, but i'm using sqlform.grid in app admin and this will create confusion in rows ..., i need to hide rows that are in sidemenu or in top menu.
something like this?

def mycontroller():
    menu_type = request.vars.menu_type or redirect(URL('index'))
    query = db.anymenu.menu_type==menu_type
    form = SQLFORM.smartgrid(db..anymenu, constraints=dict(anymenu=query))
    return dict(form=form)

    M.

Reply via email to