Consultor Eletrônico



Kbase P28434: How to trap for Folder changes to specific pages?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/25/2003
Status: Unverified

GOAL:

How to trap for Folder changes to specific pages?

FIX:

By overriding the Procedure "Selectpage" we can trap for which page is being invoked either before or after the default behavior.

Sample Syntax;

1) Create a new smartpage.
2) Add a SmartFolder with atleast 2 pages.
3) Click on the section editor.
4) Choose Procedures.
5) Click add New procedure
6) Select Overide
7) Select Selectpage
8) After Run Super add the folowing code;
Message "The page is now " + String(PiPagNum) view-as Alert-Box.
9) Run the window and change the folder pages.