Progress
ADM 2 Reference
addRecord (datavis.p)
Initiates the creation of a new record. First verifies that there is no update pending. If there is an update pending, notifies the user that current values must be saved or cancelled before the Add operation takes place, then it displays initial values.
Parameters: NoneReturns: Nothing (procedure)Notes:
- Publishes updateState
“
Update”
to signal related objects that the update is in progress.- Sets the NewRecord property to
"
Add"
.- Invokes enableFields. The addRow method in the associated SmartDataObject will be invoked at a lower level (from addRecord in
viewer.p
for a SmartDataViewer or in browse triggers for a SmartDataBrowser).- Is invoked when an Add is initiated (typically by choosing the Add button in an Update SmartPanel, or the Add button or Add menu item in a SmartToolbar).
- Is customized when additional processing is needed in the visual SmartObject at the start of an Add operation. When an addRecord override is invoked, the new record has not yet been created, and there is no transaction active. If you want to customize the Add operation for the SmartDataObject that manages the table being shown in the visualization, you can override addRow to customize the processing at the time the new row is added to the RowObject temp–table, or override submitRow to customize the saving of the newly added row.
Examples:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |