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: 

Inactive or hide Textbox custom control in modulepool

Former Member
0 Kudos

hi guru,

Iam using textbox custom control in screen painter, so i will inactive or hide that custom control textbox for some condition.

please help me on this

thanx,

man

4 REPLIES 4

Former Member
0 Kudos

HI,

Maintain a field under a group.

In PBO module of the screen code.


loop at screen.
if screen-group1 'G1'.
screen-active '0'.
or 
screen-output '1'. 
endif.
modify screen.
endloop.

Regards and Best wishes.

0 Kudos

In PBO, I am using the code

CREATE OBJECT textedit_custom_container

EXPORTING

container_name = 'NOTE_EDITOR'

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5.

CREATE OBJECT note_editor

EXPORTING

parent = textedit_custom_container

wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder

wordwrap_to_linebreak_mode = cl_gui_textedit=>true

EXCEPTIONS

OTHERS = 1.

so how to hide the Custom textbox according to this code.

sachin_soni
Active Participant
0 Kudos

hi manish,

as explain above using loop at screen , you can achieve your requirement.if you still have doubts please let us know,will try and help you.

thanks

Sachin soni

Former Member
0 Kudos

thanks