Text editor in Score module agonizingly clunky! Fix?
When creating scores from midi regions, the text editor drives me nuts when adding lyrics: The word/character positioning is different between text edit/create mode and what appears on the screen after editing, and different again between that and what appears in print preview mode or actual print-out. This is absolutely crazy-making when trying to line words/syllables up with their corresponding notations!
Also the cut & paste functions don't work as in any other text editor I've seen.
Also-also I can't get it to accept a new default font and size.
Suggestions? Dr. Kevorkian's phone number?
Thanks!
Hi,
it looks like you have some problem with RFC. It stopped on the following line:
* Communication error in RFC-Call
message x628(ke) with 'RFC_ERROR' subrc msg_text.
Ask your basis guy to check it. The job on application server tried to connect to the central instance and it failed. The job run on central instance does not need to make any RFC call. Hence there is no problem in this case.
Regards
Similar Messages
-
How to call a text editor from a module pool program
Hi All,
I want to call the text editor from my modulepool program. Enter my text in it and save it.This text needs to be saved in a Z-program with 2 fields as primary keys. The next time while I call this same record from this z table, I need to fetch the existing text and display it.
The user now can put in additional text and can again save it. This process thus goes on..
If anyone has worked in this type of scenario, then please help me in doing this.
Useful answers will surely be rewarded.
Thanks,
Susanth.Hi Sushanth,
We save the text not as fields in a ztable directly but as a text.Please check the format below since it is based on a working code....
first you need to create a text in s010 transaction...
there should be some key based on which you plan to save the text..imagine it is Purchase order then..PO+item numner is always unique.eg:0090010(900PO/item10).so in the code you can append these two and they will be unique..so you can always retrieve them,overwrite,save them anytime you need
**************data declarations
TYPES: BEGIN OF TY_EDITOR,
EDIT(254) TYPE C,
END OF TY_EDITOR.
data: int_line type table of tline with header line.
data: gw_thead like thead.
data: int_table type standard table of ty_editor.
****************fill header..from SO10 t-code..when you save you need the unique key..youfill it here and pass it in save_text function module
GW_THEAD-TDNAME = loc_nam. " unique key for the text -> our unique key to identify the text
GW_THEAD-TDID = 'ST'. " Text ID from SO10
GW_THEAD-TDSPRAS = SY-LANGU. "current language
GW_THEAD-TDOBJECT = 'ZXXX'. "name of the text object created in SO10
*To Read from Container and get data to int_table
CALL METHOD EDITOR ->GET_TEXT_AS_R3TABLE
IMPORTING
TABLE = int_table
EXCEPTIONS
ERROR_DP = 1
ERROR_CNTL_CALL_METHOD = 2
ERROR_DP_CREATE = 3
POTENTIAL_DATA_LOSS = 4
others = 5.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop data from int_table and save to int_line-tdline appending it.
*save the text
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
HEADER = GW_THEAD
TABLES
LINES = InT_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC 0.
ENDIF.
*To pass to Container
CALL METHOD EDITOR ->SET_TEXT
hope that the above sample with helps you solve the problem
Please check and revert,
Reward if helpful
Regards
Byju -
Module Pool Text Editor Problem
Hi
I have developed module pool program which has 3 tab strips. In the last (3rd) Tab Strip I need to input Long Text. I have the done the coding but when I go to the Last tab and then come back to any other tabs, the text editor is overwriting the other fields in the other tabs. Can any tell how to solve this problem
This is he code I have written
****90000******Screen
PROCESS BEFORE OUTPUT.
MODULE status_9000.
MODULE modify_screen9000.
module test_me.
LOOP AT t_operation INTO s_operation WITH CONTROL toperation.
MODULE move_data.
MODULE modiy_screentblctrl.
ENDLOOP.
CALL SUBSCREEN sub1 INCLUDING sy-repid '9001'.
CALL SUBSCREEN sub2 INCLUDING sy-repid '9002'.
CALL SUBSCREEN sub3 INCLUDING sy-repid '9003'.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
CHAIN.
FIELD zaodheader-heatnum MODULE check_heatnumber.
ENDCHAIN.
LOOP AT t_operation.
MODULE update_itab.
ENDLOOP.
MODULE user_command_9000.
CALL SUBSCREEN sub1.
CALL SUBSCREEN sub2.
CALL SUBSCREEN sub3.
**************9003*****
PROCESS BEFORE OUTPUT.
MODULE STATUS_9003.
MODULE display_texteditor.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9003.
**************9003*****
DATA : ccont TYPE REF TO cl_gui_custom_container,
tedit TYPE REF TO cl_gui_textedit.
MODULE display_texteditor OUTPUT.
CREATE OBJECT ccont
EXPORTING
parent =
container_name = 'CC'
style =
lifetime = lifetime_default
repid =
dynnr =
no_autodef_progid_dynnr =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6 .
IF sy-subrc <> 0.
ENDIF.
CREATE OBJECT tedit
EXPORTING
max_number_chars =
style = 0
wordwrap_mode = wordwrap_at_windowborder
wordwrap_position = -1
wordwrap_to_linebreak_mode = false
filedrop_mode = dropfile_event_off
parent = ccont
lifetime =
name =
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " DISPLAY_TEXTEDITOR OUTPUT
Edited by: kumar1819 on Apr 7, 2010 8:05 AM
SolvedHi kumar,
**************9003*****
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9003.
Case SY-UCOMM.
When 'TAB2'.
Call screen 9002.
**************9003*****
In 9001 and 9002 screen what code u r writing.
Regards,
Raj. -
Any function module for calling a text editor in subscreen?
Hi,
I would like to know if there is any function module that can be used to call a text/note editor and can be displayed in a subscreen of a main screen (dialog programming)? This text/note editor should not be able to edit, but for display only.
Please help. Thanks...>
Pablo Casamayor wrote:
> Hi,
>
> maybe this can help:
>
> check program SAPTEXTEDIT_TEST_1
> in this program pay attention to:
>
>
> MODULE pai INPUT.
>
> CASE ok_code.
> ....
> WHEN 'FIND'.
> PERFORM find_text.
> ....
> WHEN 'HIGHLIGHT'.
> highlight = 1.
> PERFORM highlight_lines USING highlight.
>
>
>
> *&---------------------------------------------------------------------*
> *& Form FIND_TEXT
> *&---------------------------------------------------------------------*
> FORM find_text.
> found = 0.
> IF case_sensitive = 'X'. " button on Dynpro
> case_sensitive_mode = editor->true.
> ELSE.
> case_sensitive_mode = editor->false.
> ENDIF.
> IF whole_word = 'X'. " button on Dynpro
> whole_word_mode = editor->true.
> ELSE.
> whole_word_mode = editor->false.
> ENDIF.
>
> CALL METHOD editor->find_and_select_text
> EXPORTING search_string = search_string
> case_sensitive_mode = case_sensitive_mode
> whole_word_mode = whole_word_mode
> CHANGING string_found = found.
> * Flush for proper work of the following if statement
> CALL METHOD cl_gui_cfw=>flush.
> IF NOT search_string IS INITIAL.
> IF found NE 0.
> MESSAGE s000 WITH text-013.
> ELSE.
> MESSAGE s000 WITH text-014.
> ENDIF.
> ENDIF.
> ENDFORM. " FIND_TEXT
>
> *&---------------------------------------------------------------------*
> *& Form HIGHLIGHT_LINES
> *&---------------------------------------------------------------------*
> * -->P_HIGHLIGHT text *
> *----------------------------------------------------------------------*
> FORM highlight_lines USING p_highlight.
> IF selection EQ 'X'.
> CALL METHOD editor->highlight_selection
> EXPORTING highlight_mode = p_highlight
> EXCEPTIONS has_no_effect = 1.
> IF sy-subrc NE 0.
> * add your handling
> ENDIF.
> ELSE.
> CALL METHOD editor->highlight_lines
> EXPORTING
> from_line = from_line
> to_line = to_line
> highlight_mode = p_highlight
> EXCEPTIONS has_no_effect = 1.
> IF sy-subrc NE 0.
> * add your handling
> ENDIF.
> ENDIF.
>
> ENDFORM. " HIGHLIGHT_LINES
>
> and this link:
> http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm
>
> Best regards.
>
> Edited by: Pablo Casamayor on Apr 17, 2009 9:19 AM
Hi Pablo,
I have look through the program SAPTEXTEDIT_TEST_1. This program does the Text Selection and Highlighting the Text only after the buttons of each of the function is clicked.
My requirements will be, having all the selected text (with a string pattern) to be highlighted when this text editor is displayed. Is this possible?
Really thanks for your replies...
Regards,
Chuak Fen -
Multiple Selection in dropdown in module pool/text editor
Hi,
How to provide an option for multiple selection in dropdown/listbox? Is there any option for this other than triggering F4 function and displaying in ALV or table control with multiple selection option?
otherwise, is it possible to have multiple selection in text editor?
Thanks,
AmalHI,
Instead of displaying multiple selection in deopdown list go for multiple section in ListBOx. It will be easier for you. Here is the demonstration of using ListBox along with screen shots and Code.
Check this Link
<Link farm to blocked site removed by moderator>
Edited by: sum_it2 on Nov 16, 2011 9:37 AM
Edited by: Vinod Kumar on Nov 16, 2011 3:01 PM -
How to clear the text in the Text Editor
Hi all,
I created a Text editor and also i am having language field in the screen.
whenever i change the language auomatically the text has to change when the text exists for that
language.
this is working fine, but when the Text exist , the text editor should be blank.
But it is carrying the Previous editor text itself into it .
How to clear the text in the Editor.
Regards,
MadhaviHello Madhavi
The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
*& Report ZUS_SDN_TEXTEDIT_CONTROL
*& Thread: how to clear the text in the Text Editor
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
*& By default the itab GT_OUTTAB contains texts in DE and EN.
*& To switch the language directly enter into the command window:
*& LANGU=DE, LANGU=EN or LANGU=FR
REPORT zus_sdn_textedit_control.
TYPE-POOLS: abap.
TYPES: ty_t_text TYPE TABLE OF as4text
WITH DEFAULT KEY.
TYPES: BEGIN OF ty_s_outtab.
TYPES: language TYPE spras.
TYPES: text TYPE ty_t_text.
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab TYPE STANDARD TABLE OF ty_s_outtab
WITH DEFAULT KEY.
DATA: gt_outtab TYPE ty_t_outtab,
gs_outtab TYPE ty_s_outtab.
DATA: gd_language TYPE spras.
DATA: go_docking TYPE REF TO cl_gui_docking_container,
go_textedit TYPE REF TO cl_gui_textedit.
DATA: gd_okcode TYPE ui_func,
gd_repid TYPE syst-repid.
START-OF-SELECTION.
PERFORM fill_texts.
gd_language = syst-langu.
PERFORM init_controls.
* Link the docking container to the target dynpro
gd_repid = syst-repid.
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM set_text_editor.
* NOTE: dynpro does not contain any elements
" ok-code => GD_OKCODE
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
TRANSLATE gd_okcode TO UPPER CASE.
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'LANGU=DE' OR
'LANGU=EN' OR
'LANGU=FR'.
PERFORM get_text_editor.
SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
PERFORM set_text_editor.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form FILL_TEXTS
* text
* --> p1 text
* <-- p2 text
FORM fill_texts .
* define local data
DATA: ld_string TYPE string.
gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
ld_string = 'Good morning'.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
ld_string = 'Guten Morgen'.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
ld_string = space.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
ENDFORM. " FILL_TEXTS
*& Form INIT_CONTROLS
* text
* --> p1 text
* <-- p2 text
FORM init_controls .
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
* repid =
* dynnr =
* side = dock_at_left
* extension = 50
* style =
* lifetime = lifetime_default
* caption =
* metric = 0
ratio = 90
* no_autodef_progid_dynnr =
* name =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_textedit
EXPORTING
* max_number_chars =
* style = 0
* wordwrap_mode = wordwrap_at_windowborder
* wordwrap_position = -1
* wordwrap_to_linebreak_mode = false
* filedrop_mode = dropfile_event_off
parent = go_docking
* lifetime =
* name =
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " INIT_CONTROLS
*& Form SET_TEXT_EDITOR
* text
* --> p1 text
* <-- p2 text
FORM set_text_editor .
BREAK-POINT.
CLEAR: gs_outtab.
READ TABLE gt_outtab INTO gs_outtab
WITH KEY language = gd_language.
CALL METHOD go_textedit->set_text_as_stream
EXPORTING
text = gs_outtab-text
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " SET_TEXT_EDITOR
*& Form GET_TEXT_EDITOR
* text
* --> p1 text
* <-- p2 text
FORM get_text_editor .
CLEAR: gs_outtab.
CALL METHOD go_textedit->get_text_as_stream
EXPORTING
only_when_modified = cl_gui_textedit=>true
IMPORTING
text = gs_outtab-text
* is_modified =
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MODIFY gt_outtab FROM gs_outtab
TRANSPORTING text
WHERE ( language = gd_language ).
ENDFORM. " GET_TEXT_EDITOR
Regards
Uwe -
How to call text editors in smart forms?
In my module pool program,I included text editors for three fields.I want that fields in smart forms too.I need to know how these text editors are called in smart forms?
Hi achu,
Any text that gets saved has a corresponding entry in table STXH table. It usually has the following parameters : TDOBJECT,TDNAME,TDID and TDSPRAS.
What you have to do is create a new text element and under general attributes ---> Type - give Include Text.
And in the include text you give the above four parameters which correspond to the text you want to display.
P.S. Do not forget to check the 'No error if no text exists' checkbox.
Hope this helps.
Regards,
Arun -
How to create a text editor, the one like header text in PO
Dear Ones,
My requirement is that I want to create a text editor for storing terms and condition plant wise.
The editor should be the one like header text in PO. It can take end number of lines.
I created the text object ('TERMS') in table ttxob and text for it in table ttxot.
Also created text id ('L000' and 'L001') in table ttxid and text for it in table ttxit.
Now using FM read_text, save_text and edit_text, I have written a program but it does not save the data.
When I run the program initially it displays me blank, then I enter some data into it. Again when I come back it displays the data and also saves the edition. But if I close my session the data is gone.
It means it is not actually saving the data in database. My code is as below:
*& Report ZAK_TEXT_EDITOR
REPORT zak_text_editor.
DATA : head TYPE STANDARD TABLE OF thead WITH HEADER LINE,
line TYPE STANDARD TABLE OF tline WITH HEADER LINE.
DATA : tdname TYPE thead-tdname.
SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-001.
SELECTION-SCREEN : SKIP 1.
PARAMETERS : id TYPE thead-tdid OBLIGATORY
MATCHCODE OBJECT zak_textid.
SELECTION-SCREEN : SKIP 1.
SELECTION-SCREEN : END OF BLOCK blk.
START-OF-SELECTION.
CONCATENATE 'TERMS' id INTO tdname.
head-tdobject = 'TERMS'.
head-tdname = tdname.
head-tdid = id.
head-tdspras = sy-langu.
head-tdlinesize = 132.
APPEND head.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = id
language = sy-langu
name = tdname
object = 'TERMS'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
lines = line
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = head
INSERT = ' '
SAVEMODE_DIRECT = ' '
OWNER_SPECIFIED = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
TABLES
lines = line
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
CALL FUNCTION 'EDIT_TEXT'
EXPORTING
DISPLAY = ' '
EDITOR_TITLE = ' '
header = head
PAGE = ' '
WINDOW = ' '
save = 'X'
LINE_EDITOR = ' '
CONTROL = ' '
PROGRAM = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
RESULT =
TABLES
lines = line
EXCEPTIONS
id = 1
language = 2
linesize = 3
name = 4
object = 5
textformat = 6
communication = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.CONSTANTS:
line_length TYPE i VALUE 254.
DATA: ok_code LIKE sy-ucomm.
DATA:
Create reference to the custom container
custom_container TYPE REF TO cl_gui_custom_container,
Create reference to the TextEdit control
editor TYPE REF TO cl_gui_textedit,
repid LIKE sy-repid.
START-OF-SELECTION.
SET SCREEN '100'.
MODULE USER_COMMAND_0100 INPUT *
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
MODULE status_0100 OUTPUT.
The TextEdit control should only be initialized the first time the
PBO module executes
IF editor IS INITIAL.
repid = sy-repid.
Create obejct for custom container
CREATE OBJECT custom_container
EXPORTING
container_name = 'MYCONTAINER1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Create obejct for the TextEditor control
CREATE OBJECT editor
EXPORTING
wordwrap_mode =
cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = line_length
wordwrap_to_linebreak_mode = cl_gui_textedit=>true
parent = custom_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
others = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT -
Why can't I cut or paste in my wiki rich text editor
the browswer does a lovely job of viewing my pbworks classroom page but i cannot type, cut, or paste in PBWorks' rich text editor mode so i can't edit from my phone and i suspect i will find the same problem when we switch to ipads next fall. any help?
This problem should be at least partly fixed in Firefox 5, which will be released later this month. If you'd like to help us test the fix now, you can download Firefox Beta from the Android Market:
https://market.android.com/details?id=org.mozilla.firefox_beta -
CL_GUI_TEXTEDIT - Text Editor is having old text..
Hello Experts,
I have created a text editor using the standard class CL_GUI_TEXTEDIT and invoking the same in two different places.
In-order to use the text editor screen it in two places i have used FREE <obj> foor clearing the object.
My problem is, whenever i am using the texteditor screen in both a places for the first time, the data is populated perfectly and if i come to the same screen again the text editor populated with old entries...
I am clearing the object using the keyword FREE.
I fould lot of threads for this issue, but still i am not able to figure out the issue.
I need all your suggestions to fix this.
Thanks in advance!
Rgds,
BenuHi,
I have the same problem and did call the FREE Method and the FREE object.
The Problem is that my textedit control does not appear any more after those statements...
do I have to re-init the control? and how? this code i do after the FREE statements in the PBO of a dynpro
* Container anlegen
CREATE OBJECT go_custom_container
EXPORTING
container_name = 'CONTAINER_1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
RAISE general_fault.
ENDIF.
* Textedit anlegen
CREATE OBJECT go_textedit_control
EXPORTING
parent = go_custom_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
RAISE general_fault.
ENDIF.
* Eingabemodus auf "read-only" setzen
CALL METHOD go_textedit_control->set_readonly_mode
EXPORTING
readonly_mode = 1.
* Toolbarmodus setzen (1 = an, 0 = aus)
CALL METHOD go_textedit_control->set_toolbar_mode
EXPORTING
toolbar_mode = 1.
Thanks and regards,
Daniel -
Is it possible to call the TEXT EDITOR in a program?
Hi,
I want a function module which will popup a text editor where the user can write some text and then i can use this text for further processing.
do we have any such function modules or text editor which i can call from the program to take long text inputs from the user?
thanks in advanceYou can use the Class CL_GUI_TEXTEDIT
REPORT YTEST.
*module create_container_pbo_2000 output.
DATA:
obj_cust_cont_credential TYPE REF TO cl_gui_custom_container,
* obj_cust_cont_character TYPE REF TO cl_gui_custom_container,
* obj_cust_cont_preempmnt TYPE REF TO cl_gui_custom_container,
obj_text_cred TYPE REF TO cl_gui_textedit,
* obj_text_char TYPE REF TO cl_gui_textedit,
* obj_text_pemp TYPE REF TO cl_gui_textedit,
* Internal table to hold text for container reason1
BEGIN OF i_table_text OCCURS 0,
line(132) TYPE c, " Line text
END OF i_table_text,
* Internal table to hold text for container reason2
BEGIN OF i_table_text1 OCCURS 0,
line(132) TYPE c, " Line text
END OF i_table_text1,
* Internal table to hold text for container looking for another job
beGIN OF i_table_text2 OCCURS 0,
line(132) TYPE c, " Line text
END OF i_table_text2.
* Subroutine to create text container for remarks on credentials
PERFORM get_container_credential.
* Subroutine to create text container for remarks on character
* PERFORM get_container_character.
* Subroutine to create text container for remarks on preemployeement
* PERFORM get_container_preempmnt.
call screen 100.
*endmodule. " create_container_pbo_2000 OUTPUT
form get_container_credential .
IF obj_cust_cont_credential IS INITIAL.
* To create the object custom container and link to the container on
* screen
CREATE OBJECT obj_cust_cont_credential
EXPORTING
container_name = 'CCREDENTIALS'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
* To create the a TextEdit Control and link to the custom container
CREATE OBJECT obj_text_CRED
EXPORTING
parent = obj_cust_cont_credential
wordwrap_mode = cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
wordwrap_to_linebreak_mode = cl_gui_textedit=>true
EXCEPTIONS
others = 1.
IF sy-subrc EQ 0.
* To remove the toolbar
CALL METHOD obj_text_CRED->set_toolbar_mode
EXPORTING
toolbar_mode = 0
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
* To remove the status bar
CALL METHOD obj_text_CRED->set_statusbar_mode
EXPORTING
statusbar_mode = 0
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3
ENDIF. " IF sy-subrc EQ 0
ENDIF. " IF obj_cust_cont_credential
endform. " get_container_credential
module STATUS_0100 output.
SET PF-STATUS 'ZYH454_TEST1'.
SET TITLEBAR 'xxx'.
endmodule. " STATUS_0100 OUTPUT
module USER_COMMAND_0100 input.
if sy-ucomm EQ 'BACK'.
leave to screen 0.
endif.
endmodule. " USER_COMMAND_0100 INPUT -
Portal Rich Text Editor in Firefox 3.5 Not Working
I'm using Oracle Portal Version: 10.1.4.0.0 (Build: 594)
The text item Rich Text editor works fine in IE 6 and has reduced functionality in Firefox 3.0 (scroll doesn't work). I've just updated to Firefox 3.5 and the text editor doesn't work at all now.
The user is presented with a grey box where all the text controls are squashed into the top left hand corner.
The following errors appear in the Error Console :
Error: element.children.tags is not a function
Source File: http://xyz.example.net:7778/images/webword/WebWordMenuToolbar.js
Line: 1
Error: attachEvt is not defined
Source File: http://xyz.example.net:7778/images/webword/buildUI1.js
Line: 76
(I've replaced our server url with http://xyz.example.net)
Has anyone else noticed this? Has anyone got any suggestions on what I can do to investigate/fix it?
Thanks,
Matt
Update :
There is a patch available to potentially fix the Rich Text Editor issues in Firefox
"The Rich Text Editor Does Not Work Correctly In FireFox" - Metalink Doc ID: 456512.1
or you can replace the RTE completely with a 3rd party editor :
"How to integrate third party RTE (FCKeditor) with Oracle Portal" - Metalink Doc ID: 352796.1
Using FCKEditor may well solve the issues but I only use Firefox for development. Our users use IE6 so I don't want to replace the interface unless I have to.
Edited by: Matt Hawkins on Jul 15, 2009 1:58 PMThis is a known issue in both Portal 10.1.4.x and Portal 11.x :
Bug 8708210 (11) NOT ABLE TO RENDER RICH TEXT EDITOR WITH FIREFOX 3.5 BROWSER
This bug is not published on Metalink.
There is no solution yet. Consider to use IE Tab (https://addons.mozilla.org/en-US/firefox/addon/1419) for editing file items until this bug is solved. -
Hello Experts,
I have an ALV Grid where the last column is displayed as push buttons. When i click on a pushbutton, a text editor is opened up using ABAP OO. Now, I enter the text and SAve it. A standard text is created against the selected row in ALV Grid. Then I come back to the alv grid and click on another button of some different row. Again the text editor opens up with the previous text. I nter the new text and click on save. However, this time the standard text is not created. I have am making the container and text editor free as i click on 'back'. Still the data is not getting refreshed.
Please, let me know where m i going wrong.
Regards,
SonalHi Sonal,
I have faced similar issue with respect to module pool with container on the screen.
Try using the following on back action....
call method wf_init_edit->delete_text. (wf_init_edit -> editor reference - type ref to cl_gui_textedit )
Also we can free the container using
call method wf_init_cont->free. (wf_init_cont -> container reference - type ref to cl_gui_custom_container )
Hope it helps.
Regards,
Byju -
Pasting from the clipboard using SharePoint 2010 rich text editor
Currently we are using Microsoft SharePoint 2010. In the Rich Text Editor their is a Paste option in which a user can copy from say a Word document and paste it in their content place holder. Right now I recieve an error message when trying to use the paste button " Your browser is not configured to allow access to your computer’s clipboard. Use Control+X for Cut, Control+C for Copy, and Control+V for paste". I cannot use the paste button for whatever reason. I have tried to change my javascript file within FireFox and it still doesnt work. After working with Microsoft on the problem they informed me that it was FireFox causing the problem and suggested I contact you for information or possible fixes.
See:
*http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
*https://addons.mozilla.org/firefox/addon/allowclipboard-helper/ - AllowClipboard Helper -
OBJECT_OBJREF_NOT_ASSIGNED for Text editor
We tried to use Text editor on a Screen which is RF enabled. It is working fine when we work in SAP. When this is being connected from LM01 the below error message is coming.
Runtime error: OBJECT_OBJREF_NOT_ASSIGNED
Exception: CX_SY_REF_INITIAL
The code:
IF g_editor IS INITIAL.
*-- Create custom Container
CREATE OBJECT g_editor_container
EXPORTING
container_name = 'EDITOR'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc <> 0.
ENDIF.
*-- Create Text Editor
CREATE OBJECT g_editor
EXPORTING
style = 0
max_number_chars = 28
wordwrap_mode = 2
wordwrap_position = 14
wordwrap_to_linebreak_mode = cl_gui_textedit=>false
parent = g_editor_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6
IF sy-subrc <> 0.
ENDIF.
*-- Remove text editor toolbar
CALL METHOD g_editor->set_toolbar_mode
EXPORTING
toolbar_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
*--Remove text editor status bar
CALL METHOD g_editor->set_statusbar_mode
EXPORTING
statusbar_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
ENDIF.
Can someone please suggest what is missing here.
Thanks,
NKumarHi,
Looking at the code the problem seems to be at:
==============
IF g_editor IS INITIAL.
Create custom Container
CREATE OBJECT g_editor_container
EXPORTING
container_name = 'EDITOR'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc 0.
ENDIF.
Create Text Editor
CREATE OBJECT g_editor
EXPORTING
style = 0
max_number_chars = 28
wordwrap_mode = 2
wordwrap_position = 14
wordwrap_to_linebreak_mode = cl_gui_textedit=>false
parent = g_editor_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6
IF sy-subrc 0.
ENDIF.
Remove text editor toolbar
CALL METHOD g_editor->set_toolbar_mode " This point
EXPORTING
toolbar_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
*--Remove text editor status bar
CALL METHOD g_editor->set_statusbar_mode " This point
EXPORTING
statusbar_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
ENDIF.
===============
You are creating the object "g_editor" and catching the exception. I think create object for g_editor is failing and since you are not checking this it is causing the problem.
You can fix the code as follows:
=====
IF g_editor IS INITIAL.
Create custom Container
CREATE OBJECT g_editor_container
EXPORTING
container_name = 'EDITOR'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc 0.
ENDIF.
Create Text Editor
CREATE OBJECT g_editor
EXPORTING
style = 0
max_number_chars = 28
wordwrap_mode = 2
wordwrap_position = 14
wordwrap_to_linebreak_mode = cl_gui_textedit=>false
parent = g_editor_container
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6
IF sy-subrc 0. -
> put the below code under this if. That means the code is executed only
if g_editor is created.
Remove text editor toolbar
CALL METHOD g_editor->set_toolbar_mode " This point
EXPORTING
toolbar_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
*--Remove text editor status bar
CALL METHOD g_editor->set_statusbar_mode " This point
EXPORTING
statusbar_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_call_method = 1
invalid_parameter = 2
OTHERS = 3.
ENDIF.
ENDIF.
=====
Maybe you are looking for
-
Communication Problem with the second battery
Hello, In Lenovo Solution Center it says that there is communiction problem with the second battery. I already had this problem some months ago, back then it didn't charge the second battery. I got a new one and it worked again. Now it says the same
-
Archiving file in application server
Hi Can anybody of you please let me know how to archive a file from one directory to other in the application server? I dont want to read one file into an internal table and then loop on that to create a new file. Looking for some FM or command that
-
How can I prevent a negative cash discount?
The logic being used to determine a cash discount for an invoice billing document is: Total Cost of Materials u2013 Total Freight Cost - Base Value. Base Value x Cash Discount % = Calculated Cash Discount. Base Value u2013 Calculated Cash Discount
-
IDOC Status 50 / Idoc added
Hello Guru's I can only find a description 'Idoc added'. What does IDOC status 50 mean? Best regards
-
Hey folks, I realize this is as much a Microsoft and computer settings issue as anything else....but if I have a novice user who I send an interactive PDF with a map inserted...how likely is that person going to be to click through security warnings