Kbase P26292: Overriding Standard Behavior, how to create an override.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/06/2003 |
|
Status: Unverified
GOAL:
Overriding Standard Behavior, how to create an override.
GOAL:
How to override a procedure
GOAL:
ADM
GOAL:
ADM2
FIX:
1) Open your SmartWindow and choose the SmartObject you wish to override.
2) Choose the popup menu button of the SmartObject, and then select Edit Master from the selection list that appears: The SmartObject will master appear.
3) Open the Section Editor by choosing the Edit Code icon on the AppBuilder tool bar.
4) Select Procedures from the Section combo-box and choose the New button.
Choose the Override radio button: the Name fill-in will become a combo-box.
5) Select the appropriate procedure from the combo-box and choose OK. Note that the Section Editor generates a skeleton of the local procedure. This contains the necessary parameter definitions and invokes the standard behavior by executing RUN SUPER.
6) Add your code for the procedure. Decide where it should be placed relative to RUN SUPER.
7) Check syntax and save your changes.