Kbase P103017: How to programmatically get the Filename of current window opened in AppBuilder
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/8/2005 |
|
Status: Unverified
GOAL:
How to programmatically get the Filename of current window opened in AppBuilder
FIX:
See the code below:
DEFINE VARIABLE ch AS CHARACTER NO-UNDO.
DEFINE VARIABLE i_context AS CHARACTER NO-UNDO.
RUN adeuib/_uibinfo.p (?, ?, "PROCEDURE", OUTPUT i_context).
RUN adeuib/_uibinfo.p (i_context,'',"file-name", OUTPUT ch).
MESSAGE ch
VIEW-AS ALERT-BOX INFO BUTTONS OK.
The code above returns in the ch variable the filename of the current window in AppBuilder. If for instance you save the code above in a file and you set this file to be run in the pro*Tools, you will be messaged the file name of the current AppBuilder window.