08-06-2015 5:57 PM
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?
08-14-2015 2:17 PM
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.
08-06-2015 6:03 PM
Hi
How have you created the container?
You should insert it in the subscreen where the editor has to be displayed
Max
08-06-2015 6:13 PM
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
08-06-2015 6:21 PM
08-06-2015 6:29 PM
Yes, i have a screen 1 containing tabstrip within the tab to call SUBSCREEN 1.1 it that created this container
08-06-2015 6:47 PM
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
08-06-2015 7:07 PM
Then I also can enter the container and the textbox .... the problem is that when changing the tab container remains on the screen
08-06-2015 7:12 PM
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
08-06-2015 7:45 PM
08-06-2015 9:12 PM
Uhm
try to chech the sizing of your subscreen,
and post the image of the screen painter for the subscreen with container
Max
08-07-2015 4:47 PM
08-07-2015 6:55 PM
Hi
the sizing is ok? I mean the sizing of your subscreen is lower than subarea of the tab?
Max
08-14-2015 2:17 PM
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.