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

Inactive or hide Textbox custom control in modulepool

Former Member
0 Likes
655

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
Read only

Former Member
0 Likes
567

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.

Read only

0 Likes
567

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.

Read only

sachin_soni
Active Participant
0 Likes
567

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

Read only

Former Member
0 Likes
567

thanks