Kbase P6976: How to make a widget visible only on certain pages
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/12/2005 |
|
Status: Unverified
GOAL:
How to make a widget visible only on certain pages
GOAL:
How to use simple widgets with smartFolders
FACT(s) (Environment):
Progress 9.x
FIX:
In the container with the smartFolder, create a procedure override for ChangePage.
After the RUN SUPER. add code to check the current page number and set the widget's attributes to values appropriate for that page.
The required code would look similar to the following:
If DYNAMIC-FUNCTION('getCurrentPage':U) = 3 then
/* or page number you want the button visible on*/
Assign button-1:hidden in frame {&frame-name} = False.
Else
Assign button-1:hidden in frame {&frame-name} = True.