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

Dynamically hidden fields getting displayed when selecting a saved variant

Former Member
0 Likes
1,000

Hi All,

I'm a facing a strange issue where in i'm hiding a selection screen field (a checkbox) using screen-invisible =1. But when i'm selecting an already saved variant which is not using the checkbox, the checkbox is getting displayed.

Please suggest on how to proceed further.

Thanks & Regards,

SriLalitha.

1 ACCEPTED SOLUTION
Read only

dibyajeeban_jena
Active Participant
0 Likes
833


Hi Lalitha,

The screen modification(hiding checkbox) you might be doing based on some condition (depending on values of other fields)  under event  AT SELECTION-SCREEN OUTPUT .

Put a break point on that condition, then select the concerned variant ,,and check the condition is satisfying or not   in debugging mode?

It might not be satifying to do the required screen modification .

Regards

Dibyajeeban

2 REPLIES 2
Read only

dibyajeeban_jena
Active Participant
0 Likes
834


Hi Lalitha,

The screen modification(hiding checkbox) you might be doing based on some condition (depending on values of other fields)  under event  AT SELECTION-SCREEN OUTPUT .

Put a break point on that condition, then select the concerned variant ,,and check the condition is satisfying or not   in debugging mode?

It might not be satifying to do the required screen modification .

Regards

Dibyajeeban

Read only

suresh_kutam
Participant
0 Likes
833

Hello Srilalitha,

TRy as below..

1) Create a perform where you will make the screen field disable.. like below...

FORM f_disable_print_option.

*// disable Check box option on selection screen

   LOOP AT SCREEN.

     IF screen-name EQ 'CHECKBOX.

       screen-invisible = c_1.   "disable

       MODIFY SCREEN.

     ENDIF.

   ENDLOOP.

ENDFORM.

2) call this perform ' f_disable_print_option' in below 3 events - it will never display the disable field...

INITIALIZATION.

   PERFORM f_disable_print_option.

AT SELECTION-SCREEN.

   PERFORM f_disable_print_option.

AT SELECTION-SCREEN OUTPUT.

   PERFORM f_disable_print_option.


Let me know if you still have issue.


BR,

Suresh K