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: 

Module-Pool - textbox

former_member269988
Participant
0 Kudos

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

former_member269988
Participant
0 Kudos

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

Former Member
0 Kudos

Hi

How have you created the container?

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

Max

0 Kudos

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

0 Kudos

But where?

In the subscreen?

Max

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Uhm

try to chech the sizing of your subscreen,

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

Max

0 Kudos

Hi MAx,

Follow a screen painter where i created the container

0 Kudos

Hi

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

Max

former_member269988
Participant
0 Kudos

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.