‎2015 Aug 03 9:41 AM
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.
‎2015 Aug 03 10:15 AM
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
‎2015 Aug 03 10:15 AM
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
‎2015 Aug 03 10:16 AM
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