create is not a callback. It checks for true/false. A lambda is true. On Monday, 14 January 2013 10:46:07 UTC-6, Kostas M wrote: > > I have a hard time with these grid/smartgrid callbacks. Now regarding the > 'create' option: > > If I put grid = SQLFORM.smartgrid(db.mytable, .... ,create=False), then > correctly, the '+Add' button doesn't appear on the web application. > But if I put a lambda callback there: > grid = SQLFORM.smartgrid(db.mytable, .... ,create=lambda row:False) > the 'Add' button appears! >
--

