Kbase P68360: Dynamics. How to View a Page in a Folder
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/02/2004 |
|
Status: Unverified
GOAL:
Dynamics. How to View a Page in a Folder
FACT(s) (Environment):
Dynamics 2.1A
FIX:
The viewPage Procedure that views a new page without hiding the current page. You should run this from application code when you want a user to view a new page that is a separate SmartWindow.
viewPage runs changePage to view (and if necessary create) the new SmartWindow, but does not hide the objects on the current page, since they are in a separate window that can be viewed at the same time.
Because the previous page is not hidden, the CurrentPage property is reset only
temporarily so that changePage knows the new page number; then it is reset to its previous value.
Use the procedure selectPage to hide the current page in a container and view a different one.
Example:
/* In this example, a SmartWindow has been placed onto page 5 of a containing SmartWindow. When a button is pressed, viewPage views the subwindow without hiding anything or changing the current page on the main SmartWindow. */
ON CHOOSE OF Btn_SubWin DO:
RUN viewPage(5).
END.