Release 10.1A: OpenEdge Development:
ADM Reference

> ## cancelObject

> Procedure that passes a cancel request to its container.

> Location: datavis.p

> Parameters: None

> Notes:

> - The convention is that the standard routine always passes an cancel, OK, or exit request to its CONTAINER-SOURCE. The container that is actually able to initiate the cancel should override this and not call SUPER.

> - 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:

>     PROCEDURE addRecord:
>     /*
>     ** Code placed here will execute PRIOR to standard behavior.
>     */
>       RUN SUPER.
>     /*
>     ** Code placed here will execute AFTER standard behavior.
>     */
>       iRecTotal = iRecTotal + 1.
>       DISPLAY iRecTotal WITH FRAME {&FRAME-NAME}.
>     END PROCEDURE.

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