‎2006 Jul 08 4:05 AM
HI, I used screen-active = 0 to set a input field to be invisible(hiden), such as:
parameters: p_batch as checkbox default 'X' user-command batch.
parameters: param like rlgrap-filename default 'c:\test.xls' modif
id id1.
at selection-screen output.
loop at screen.
if screen-group1 = 'id1'.
screen-active = 0.
modify screen.
endif.
endloop.
after executing it, the input field of param is hiden, but the selection-text of this field is still there, how to solve that?
thanks.
legend.
‎2006 Jul 08 4:57 AM
Hi,
to make ur fields invisible use this syntax-
LOOP AT SCREEN.
IF screen-group1 = 'G1'.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Hope this helps u.
Seema.
‎2006 Jul 08 5:44 AM
Hi,
Copy this example and check the result. It is hiding both field and its text.
REPORT ZWA_TEST .
parameters: p_batch as checkbox default 'X' user-command batch.
parameters: param like rlgrap-filename default 'c:\test.xls' modif
id id1.
at selection-screen output.
loop at screen.
if screen-group1 = 'ID1'.
screen-active = 0.
modify screen.
endif.
endloop.
Regards,
Wasim Ahmed
‎2006 Jul 08 5:49 AM
ok, thanks to all. i have tested it, successfully. i only used active = 0 to hide. i don't know why i failed while testing last night, anyway, thanks a lot.
‎2006 Jul 08 5:51 AM
Hi Legend,
If your problem is solved then close this thread after rewarding points.
Regards,
Wasim Ahmed
‎2006 Jul 08 5:45 AM
First you assign a group to all of your fields which you want to hide and also set invisible mode of screen field by going attributes properties.Than try this
LOOP AT SCREEN.
IF screen-group1 = 'ID1'.
screen-active = 1.
screen-input = 0.
screen-output = 1.
screen-invisible = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards
Abhishek