grid = SQLFORM.smartgrid(db.item, user_signature = False, oncreate =
auth.archive, onupdate=auth.archive)

oncreate may be optional, depending on whether the current record is
archived or the previous record. This has not been settled in web2py
but will be settled in the next few days.


On Nov 19, 7:17 am, 黄祥 <steve.van.chris...@gmail.com> wrote:
> hi,
>
> is it possible for sqlform.grid and sqlform.smartgrid use the archive
> table for record versioning?
>
> i tried to use the sqlform.grid and sqlform.smartgrid with record
> versioning but returned an error :
>
> AttributeError: 'DIV' object has no attribute 'process'
>
> my controller is :
>
> def index():
>     grid = SQLFORM.smartgrid(db.item, user_signature =
> False).process(onsuccess = auth.archive)
>     return dict(grid = grid)
>
> did anyone know how sqlform.grid and sqlform.smartgrid archived table
> for record versioning?
>
> thank you so much in advance

Reply via email to