Progress
ADM 2 Reference
confirmExit (datavis.p)
Data visualization version of confirmExit. Checks the value of the DataModified and RowObjectState properties to make sure there are not unsaved or uncommitted changes before allowing its container to initiate a
"
destroy"
operation.Parameters:INPUT plCancel AS LOGICAL
If field values have been modified and not saved, it returns TRUE and the destroyObject will be cancelled.
Returns: Nothing (procedure)Notes:
- Invoked from destroyObject and confirmExit itself.
- A SmartContainer publishes this event to all its container targets before initiating destroyObject. If data are modified in one of its container targets, the destroyObject is cancelled.
- The first object where updates are uncommitted will display the message
“
Unsaved changes. Exit operation cancelled.”
.- Used internally. Could be customized to add additional checks before allowing an Exit, or to modify the message displayed.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |