Can anybody help ? or grid and smartgrid shouldn't be used with custom fields ?
Regards brushek On 5 Wrz, 16:22, brushek <[email protected]> wrote: > On 5 Wrz, 15:55, Johann Spies <[email protected]> wrote: > > > Hallo Brushek, > > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > > > @auth.requires_login()> def dodajserwer(): > > > response.flash = T('Serwery') > > > form=SQLFORM.grid(db.serwery) > > > Apparently the usage is either SQLFORM.smartgrid(table) or > > SQLFORM.grid(query) > > > Try 'form = SQLFORM.smartgrid(db.serwery)' > > I tried this one before posting... > > > > > or 'form = SQLFRORM.grid(db(db.serwery.id > 0))' > > ... and this one doesn't change the situtaion, the error is the same. > > regards > Brushek

