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

Module-Pool - textbox

former_member269988
Participant
0 Likes
2,438

I am creating a module-pool to display some information on a screen created a tabstrip with 3 tabs (each tab calls a sub-screen), the first flap created at the end of the page a container and from it created a textbox through the method (cl_gui_textedit).

The problem I am facing is that when changing the tab container remains on the screen in the same position I created the tab 1 .... already tried to put all the elements in the same group, already I tried to create in pbo a method of destruction of the textbox but nothing worked.

I created the tabstrip through wizard, so all my information is loaded before the screening, that is not got no action by clicking on the second tab.

Does anyone have any suggestions?

1 ACCEPTED SOLUTION
Read only

former_member269988
Participant
0 Likes
2,202

Hi,

Thanks Max for your help.

I solved the problem. What happens is that when I create a Tabstrip via wizard he uses the same PBO module tabs, so any action created in this module will be called on all tabs.

12 REPLIES 12
Read only

Former Member
0 Likes
2,202

Hi

How have you created the container?

You should insert it in the subscreen where the editor has to be displayed

Max

Read only

0 Likes
2,202

Hi Max,

thanks for your feedback.

Well, I created through layout editing, then instantiate the object with his name

CREATE OBJECT textedit_custom_container

   EXPORTING  container_name              = 'CONT_9005_INF'

CREATE OBJECT note_editor

      EXPORTING parent        = textedit_custom_container

                wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position

                cl_gui_textedit=>wordwrap_at_windowborder

                wordwrap_to_linebreak_mode = cl_gui_textedit=>false

Read only

0 Likes
2,202

But where?

In the subscreen?

Max

Read only

0 Likes
2,202

Yes, i have a screen 1 containing tabstrip within the tab to call SUBSCREEN 1.1 it that created this container

Read only

0 Likes
2,202

I've created a simple program with tabstrip, I've used wizard:

The wizard assign different subscreens to each tabstrip

In the first tabstrip I've insert an editor like yours:


MODULE PBO_0110 OUTPUT.

   CHECK G_EDITOR IS INITIAL.

   G_CONTAINER_NAME = 'EDIT_CONTAINER'.

   CREATE OBJECT G_EDITOR_CONTAINER

     EXPORTING

       CONTAINER_NAME              = G_CONTAINER_NAME

     EXCEPTIONS

       CNTL_ERROR                  = 1

       CNTL_SYSTEM_ERROR           = 2

       CREATE_ERROR                = 3

       LIFETIME_ERROR              = 4

       LIFETIME_DYNPRO_DYNPRO_LINK = 5.

   IF SY-SUBRC NE 0.

*    MESSAGE A004.

   ENDIF.

   CREATE OBJECT G_EDITOR

     EXPORTING

       MAX_NUMBER_CHARS           = 120

       PARENT                     = G_EDITOR_CONTAINER

       WORDWRAP_MODE              = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION

       WORDWRAP_POSITION          = 40

       WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.

ENDMODULE.                 " PBO_0110  OUTPUT

I've no problem, the container EDIT_CONTAINER is inserted in the subscreen 101

Max

Read only

0 Likes
2,202

Then I also can enter the container and the textbox .... the problem is that when changing the tab container remains on the screen

Read only

0 Likes
2,202

Hi

It's strange because the container belongs to the subscreen assigned to the tab1, so if you go from tab1 to another one, the subscreen is changed too and you shouldn't see it

have you used the same subscreen for all tab or every tab has own subscreen?

Max

Read only

0 Likes
2,202

No no, I created a SUBSCREEN for each tab, see the prints below.

Read only

0 Likes
2,202

Uhm

try to chech the sizing of your subscreen,

and post the image of the screen painter for the subscreen with container

Max

Read only

0 Likes
2,202

Hi MAx,

Follow a screen painter where i created the container

Read only

0 Likes
2,202

Hi

the sizing is ok? I mean the sizing of your subscreen is lower than subarea of the tab?

Max

Read only

former_member269988
Participant
0 Likes
2,203

Hi,

Thanks Max for your help.

I solved the problem. What happens is that when I create a Tabstrip via wizard he uses the same PBO module tabs, so any action created in this module will be called on all tabs.