‎2010 Jun 09 6:23 AM
Hi Everyone,
I have used a text editor in one of my module pool program.
The text editor is part of one of the subscreen of a tabstrip that displays after I enter some values on the initial screen.
Everything is fine but the problem arrives when I try to go back from the tabstrip to the initial screen.
Now when I provide different values and go to the tabstrip, all other values are displayed correctly but the text editor contains the same text as before, corresponding to the values enetred for the first time on the initial screen.
Thanks in advance.
‎2010 Jun 09 6:50 AM
Hi,
In your PBO event, write code MODULE DISPLAY_DATA.
and then double click on DISPLAY_DATA and then write code
IF SY-UCOMM = 'NXT' OR SY-UCOMM = 'PRV'.
PERFORM FREE_OBJECT.
ENDIF.
and then double click on FREE_OBJECT and write code
CALL METHOD TEXT_EDITOR->FREE
EXCEPTIONS
OTHERS = 1.
CALL METHOD CONTAINER->FREE
EXCEPTIONS
OTHERS = 1.
CLEAR : CONTAINER,TEXT_EDITOR.
‎2010 Jun 09 6:41 AM
hi,
You need to clear the text editor.If you are using CREATE OBJECT to create the text editor, then use method FREE to clear the content of the text editor.
‎2010 Jun 09 6:50 AM
Hi,
In your PBO event, write code MODULE DISPLAY_DATA.
and then double click on DISPLAY_DATA and then write code
IF SY-UCOMM = 'NXT' OR SY-UCOMM = 'PRV'.
PERFORM FREE_OBJECT.
ENDIF.
and then double click on FREE_OBJECT and write code
CALL METHOD TEXT_EDITOR->FREE
EXCEPTIONS
OTHERS = 1.
CALL METHOD CONTAINER->FREE
EXCEPTIONS
OTHERS = 1.
CLEAR : CONTAINER,TEXT_EDITOR.
‎2010 Jun 09 7:48 AM
Thanks everyone.
Using CALL METHOD text_editor->free
EXCEPTIONS
OTHERS = 1.
followed by FREE text_editor solved the issue.
Thanks..
‎2010 Jun 09 7:48 AM
Thanks everyone.
Using CALL METHOD text_editor->free
EXCEPTIONS
OTHERS = 1.
followed by FREE text_editor solved the issue.
Thanks..
‎2010 Jun 09 6:53 AM
Are you populating the text editor based on user input & you want to refresh the value if the user input changes ?
‎2010 Jun 09 7:49 AM
Thanks everyone.
Using CALL METHOD text_editor->free
EXCEPTIONS
OTHERS = 1.
followed by FREE text_editor solved the issue.
Thanks..