Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hide screen elements using screen-active

Former Member
0 Likes
2,843

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,301

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.

Read only

dani_mn
Active Contributor
0 Likes
1,301

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

Read only

Former Member
0 Likes
1,301

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.

Read only

dani_mn
Active Contributor
0 Likes
1,301

Hi Legend,

If your problem is solved then close this thread after rewarding points.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
1,301

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