[Stackoverflow] [Progress OpenEdge ABL] How to hide form fields data? - PROGRESS 4GL?

Status
Not open for further replies.
B

Bharat

Guest
Below query is giving results as expected but it fails to hide form field value when the variable lvl_select is set to Yes or No after updating the form fields.

Expected Results:

When lvl_select = Yes then update only form field lvc_part

When lvl_select = no then hide update the value of the form field lvc_part and update lvc_part1 whereas lvc_part1 then hide the value of the form field lvc_part and update lvc_part1

Code:
DEFINE VARIABLE lvl_select AS LOGICAL NO-UNDO.
DEFINE VARIABLE lvc_part AS CHARACTER NO-UNDO.
DEFINE VARIABLE lvc_part1 AS CHARACTER NO-UNDO.
DEFINE VARIABLE  path AS CHARACTER NO-UNDO.

FORM
lvl_select COLON 20
lvc_part COLON 20
lvc_part1 COLON 20
path

WITH FRAME a  no-labels width 80 ATTR-SPACE.

mainloop:
REPEAT:
   DISPLAY 
     lvl_select
     lvc_part
     lvc_part1
     path
     WITH FRAME a.

   UPDATE 
     lvl_select
     WITH FRAME a.

   IF lvl_select = YES THEN
   DO :
       UPDATE 
         lvc_part
         WITH FRAME a.
   END.
   ELSE
   DO:
      UPDATE 
        lvc_part1
        WITH FRAME a.
   END.
END.

Continue reading...
 
Status
Not open for further replies.
Top