Application Development 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: 

How do i enable/disable a custom control (G_EDITOR) on the screen?

Former Member
0 Kudos

Hi.

I have a text-editor custom control (named REF_COND) on my screen.

When i do a LOOP AT SCREEN, how do i enable/disable the custom control?

I tried the following codes, but it doesn't work.

***********************************************************

ELSEIF SCREEN-NAME = 'REF_COND'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

***********************************************************

Thanks.

null

null

2 REPLIES 2

Former Member
0 Kudos

Hi Kian,

CALL METHOD cl_gui_textedit->set_readonly_mode...

True or false.....

If the hint is useful… Say thanks by reward….

Regards,

Prabhu Rajesh

Former Member
0 Kudos

CALL METHOD G_EDITOR->SET_READONLY_MODE

EXPORTING

READONLY_MODE = CL_GUI_TEXTEDIT=>TRUE.