Kbase P63936: ADM2. How to override the changePage procedure for a smartFolder
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/11/2006 |
|
Status: Verified
GOAL:
How to override the changePage ADM2 procedure
GOAL:
How to code an override of changePage in order to handle a change to a specific page.
GOAL:
Where do I have to put the code that should be run every time the smartFolder changes to another page.
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
FIX:
This should be done in an override of the changePage procedure like this one:
/* Code placed here will execute PRIOR to standard behavior. */ RUN SUPER. /* Code placed here will execute AFTER standard behavior. */
DEFINE VARIABLE currentPage AS INTEGER NO-UNDO. ASSIGN currentPage = getCurrentPage(). CASE currentPage: WHEN 1 THEN DO: /* Here code to be executed when page 1 is opened */
....
END. /* END Page 1 */ WHEN 2 THEN DO: /* Here code to be executed when page 2 is opened */
....
END. /* END Page 2 */ END CASE.
END PROCEDURE.