Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## cg-rollback

Arguments: &key (confirm t) window

This function is called by the `:rollback-button` widget of an `object-editor` dialog (see command-buttons), and may also be called directly by application code.

It calls db.ac:rollback if the user confirms in a modal dialog, and displays a couple of status-bar messages in the specified window if one is passed. The confirmation dialog is skipped if the confirm argument is passed as `nil`.

It then ensures that any `object-editor` dialogs and `class-grid` widgets in the environment are brought up to date, by calling uncache-instances-with-pretty-names with the `:all` argument, and then calling update-all-class-interface-widgets. It is strongly recommended that any application that uses `object-editor`s and/or `class-grid`s call this function rather than calling db.ac:commit directly, or else to call those two exported functions that cg-rollback calls. Otherwise the interface objects may be left in a broken state.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version