Progress
ADM 2 Reference
cancelRecord (browser.p)
SmartDataBrowser version of cancelRecord. Cancels an Update, Add, or Copy operation. For a cancel of an add or copy, deletes the previously added row from the RowObject temp–table in the associated SmartDataObject, and redisplays the previously current record. For a cancel of an update, redisplays the field values of the previous row. Sets the value of the NewRecord property back to
“
No”
.Parameters: NoneReturns: Nothing (procedure)Notes:
- Invokes cancelRecord in
datavis.p
(RUN SUPER).- Invoked when an update is cancelled, usually by choosing the Cancel button in an Update SmartPanel or the Cancel button or Cancel menu item in a SmartToolbar.
- Customized when additional processing is needed when a record Add, Copy, or Update is cancelled. You might want to do this to restore other related nondatabase fields or other objects to their original values, or to undo some action that was taken when the Add, Copy, or Update was initiated.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |