Progress
ADM 2 Reference


deleteRecord (datavis.p)

Initiates the deletion of the current record in the associated SmartDataObject. Invoked when the delete button is chosen in an Update SmartPanel or in a SmartToolbar.

Parameters: None

Returns: Nothing (procedure)

Notes: Invokes deleteRow( ) in the update target the data visualization object is connected to. If the deleteRow( ) fails, error messages are displayed by invoking showDataMessages( ). Typically customized when you want to add a message to confirm the deletion.

Examples:

PROCEDURE deleteRecord:
/* Purpose:     Super Override*/
/* Code placed here will execute PRIOR to standard behavior. */
  MESSAGE “Are you sure you want to delete this record?”
  VIEW-AS ALERT-BOX QUESTION BUTTONS YES-NO
  UPDATE lAnswer AS LOGICAL.
  IF lAnswer THEN 
    RUN SUPER.
/* Code placed here will execute AFTER standard behavior.    */
END PROCEDURE. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095