Kbase 18967: How to Hide an SmartObject Placed on Page 0.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to hide certain page 0 smartobjects when they are on another page.
FACT(s) (Environment):
Progress 9.x
Progress ADM2
FIX:
Suppose you have a SmartDataObject, a SmartViewer, and a Navigation Panel on page 0 of a Smart Folder. The 3 objects will be visible on all pages of the folder. However, if you follow the steps below, you can hide the navigation panel (or similarly any other object) when you are on page 2 of the folder.
1) Create a SmartWindow and place an SDO and a folder with 2
pages on it.
2) Place a SmartViewer, and a Navigation Panel on the folder
on page 0.
3) Create a new override procedure for Changepage.
4) Place the following code before Run Super:
IF DYNAMIC-FUNCTION('getCurrentPage':U) = 2 Then
RUN hideobject IN <your navigation panel's name>.
Else RUN viewobject IN <your navigation panel's name>.