Kbase P97286: Pressing Cancel in the Data Dictionary may not restore the previous value of SESSION:SUPPRESS-WARNIN
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/8/2004 |
|
Status: Unverified
SYMPTOM(s):
SESSION:SUPPRESS-WARNING is set
Called the data dictionary with _dict, then pressed cancel in the dialog connect to an existing database or create a new one.
CAUSE:
Known issue reported to development. The data dictionary saves the previous value of SESSION:SUPPRESS-WARNING, then switches it to YES, and at last normally restores it on close.
Now it some circumstances like pressing cancel at the beginning (in the dialog connect to an existing database or create a new one), it forgets to restore SESSION:SUPPRESS-WARNING to the saved value.
FIX:
If _dict is called from a menu-item of one's application, then the following code can work around the problem:
DEFINE VARIABLE lBefore AS LOGICAL NO-UNDO.
lBefore = SESSION:SUPPRESS-WARNING.
RUN _dict.r.
SESSION:SUPPRESS-WARNING lBefore.