Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to hide form fields data? – PROGRESS 4GL?

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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

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.

>Solution :

To hide lvc_part in the ELSE block, write

HIDE lvc_part IN FRAME a. 
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading