Using TEXT EDITOR in a Container
Hi,
I have one question about the scroll bar.
I don´t know how can i control the scroll bar.
Someone know which method can i use?
Regards,
Fred
I understand about your explanation but this refers to vertical scroll, i didn't specify yet but i want some answer about the horizontal scroll. Sorry about that.
Thanks for your answer.
Regards,
Fred
Similar Messages
-
Regarding using text editor in 11g for writting query
how can i use text editor in oracle 11g for writting query as in oracle 9i in which we use 'ed' command.
user13063489 wrote:
how can i use text editor in oracle 11g for writting query as in oracle 9i in which we use 'ed' command.This is really for asking in the database forum.
However I assume you are using sqlplus
If this is the case define the _EDITOR variable to one of the following as appropriate ....
DEFINE _EDITOR=notepad
DEFINE _EDITOR=vi
For more assistance use the database general forum. -
Hi,
I am have a long plain text doc and I would like to copy and paste it on to a rtf doc in Text Editor, however when I attempt this I am unsuccessful. Is this possible using the text editor? How do I acheive this. I would also like to understand what this app does but can't really find a clear explanation.
ThanksThe capabilities and features of TextEdit are intentionally both basic, and quite generic.
Many of the folks working with text extensively will tend toward the use of a full-on text editor such as the command line text editors vim or emacs, a GUI version of those editors such as MacVim or the emacs distros for OS X, or loading and using the (free) TextWrangler tool in place of TextEdit, or moving toward a purpose-built text-processing tool such as using Scrivener for writing or Xcode for programming.
For what you're probably up to here, I'd guess that TextWrangler is probably the best and most flexible approach. That tool can read and write all sorts of different file formats and encodings, and it's GUI based — as you'd probably prefer to use here.
Text files can and do have various formats and various contents — different file organizations and different text encodings, whether using RTF, or a text file containing Unicode or ASCII / ISO Latin 1 or various other character encodings, so without some idea of what you're dealing with here, a more specific answer is difficult.
"Simple" text files usually aren't, unfortunately. -
Simultaneously watch film and use text editor?
I've been using an app called "Listen&Type" for years that allows me to open and control a film clip in a separate window and simultaneously call up a text editor for recording notes while watching the clip:
http://www.nattaworks.com/english.html
As you can see from their website, the app hasn't been updated in a while (and, judging by the last update of their website, probably never will be). My problem is that this app is PowerPC-based and I plan on upgrading to Mac OS X Lion when it comes out. But according to various reports, support for PowerPC apps via Rosetta will be dropped in Lion.
Does anyone happen to know of an alternative to this app, i.e. one that offers similar functionality?
Thanks.Try searching on MacUpdate and CNET Mac Downloads. As for Lion compatibility check out THIS.
-
Using Text Editor control in Visual Compose
Hello,
I have added Text Editor control in a input form with certain dimensions, but when I preview the form the text edit field has different height than my layout view.
Do you know what am I doing wrong?
MarceloHello marcelo,
When you check the configuration panel (on the upper- right side). There's an option in layout "fit content" this might be on auto, you could change it to actual size.
Regards -
How to use long text editor in Webdynpro
hi ,
I want to use text editor in webdynpro. I want to save the data in long text.
My requirement is the format of data should remain same(It should not get changed).
Thanks
SKHi,
use text editor uielement and bind it with a attribute of type string. convert this string into a table using function module
fill another internal table which is type compatible with table of SAVE_TEXT function module.
CONVERT_STRING_TO_TABLE. Call the function module SAVE_TEXT to save this text.
you need to find proper tdobject and tdid value which is to be passed in importing parameter "header".
similarly use FM "READ_TEXT" and convert the returned data into string using FM CONVERT_TABLE_TO_STRING.
Bind the returned table to an attribute of your context. The data will be displayed in the same format in which you entered it.
Thanks
Vishal Kapoor
Edited by: vishal kapoor on Oct 19, 2010 3:51 PM -
Hi,
I have been using text editor control.
In this when we click load file button...an open prompt window appears..
there we will be finding Files of type... dropdown..containing values like text(.txt) file and All file types..
Is there any way to restrict this dropdown to single value..i mean to .txt file..should only be viewed omitting
All files option in dropdown..
i am using CL_GUI_TEXTEDIT..control...
Is there any option to do it...
Please Help me out.
Thanks & Regards,
Sandy.Hi Sandy,
I don't think there is any method for this. As the dialog box opened is depending on your OS.
But, you can cross check the uploaded file for " .txt " using CP (contains pattern) function of string.
DATA: xl type string.
xl = '*.txt'.
IF not P_FILE CP xl. "P_FILE is name of file you will get.
"Error"
ENDIF.
Sachin -
Problem in reading the modified text from text editor
Hi all,
Im using text editor for saving the long text entered in the text editor as standard text in So10 tcode.
Here im facing an issue in reading the text from text editor. That is, when the text is entered by the user for first time, then the below method reads the text successfully. But when i do some changes in the existing text present in the text editor and try to read, then the modified text is not returned by the below method.
I use the "CALL METHOD g_editor_ftext1->get_text_as_stream" to read the text. Given below is my code.
CALL METHOD g_editor_ftext1->get_text_as_stream
IMPORTING
text = ig_text_table
is_modified = g_xthead_updkz
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
The return value of "is_modified" is always returned as 0.
Could anyone pls help how to read the modified text using the above method?Check if this works and if it works then there should be some mistake in your coding
REPORT abc.
PARAMETERS:pa1 TYPE bwart.
DATA: container TYPE REF TO cl_gui_docking_container,
editor TYPE REF TO cl_gui_textedit,
report TYPE syrepid,
mod TYPE i,
modon TYPE i.
DATA:tlines TYPE TABLE OF tdline,
wa_tlines TYPE tdline.
AT SELECTION-SCREEN OUTPUT.
report = sy-repid.
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING repid = report
dynnr = sy-dynnr
side = container->dock_at_left
extension = 1070.
CREATE OBJECT editor
EXPORTING
parent = container.
ENDIF.
wa_tlines = 'This is test before a change'.
APPEND wa_tlines TO tlines.
CALL METHOD editor->set_text_as_r3table
EXPORTING
table = tlines
EXCEPTIONS
OTHERS = 1.
CALL METHOD editor->go_to_line( 1 ).
START-OF-SELECTION.
CLEAR tlines[].
CALL METHOD editor->get_text_as_stream
EXPORTING
only_when_modified = '1'
IMPORTING
text = tlines
is_modified = modon
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
IF modon = 1.
WRITE 'Changed'.
ELSE.
WRITE 'Not changed'.
ENDIF.
WRITE modon. -
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.
===== -
Get the long text from Text Editor
Hi,
I am using text editor to enter the long text, after entering the text in the text editor
when press the save button i am getting the long text into the internal table . this is working fine till here.
But when press SAVE button , i want the text into the internal table and the text editor to be closed.
but here i am not able to get the data into internal table as it is again creating text editor .
Can anyboby help me .Hi,
Refresh the table. -
Using Text Predicates with table aliases
Is there any way to use text predicates with the CONTAINS operator against an event based on a table alias? Just trying to add the function "Contains" to the event struct doesn't work, and reading through the developer's guide, it looks like I need to manually construct an attribute set and add an exf$text attribute for it to work.
The note in the docs says "The attribute sets consisting of one or more text attributes have to be assembled using the ADD_ELEMENTARY_ATTRIBUTE procedure and they cannot be created from an existing object type" and even if I created an attribute set from my table-alias-based event struct and added a new exf$text attribute to it, I can't see how the data would get from the table column into that attribute for evaluation. Is this use case unsupported?> {quote:title=user10427457 wrote: The reasons why I'm going to all this trouble are because 1) I'd like to keep my rules together and avoid having to have a separate rule class for the text-search rules, and 2) doing an object-based rule where I pass the CLOB in would prevent me from being able to use the CONTEXT index, which enables me to use other operators like WITHIN SENTENCE in my rules.
> }{quote}
Text feature has two types of indexes - CONTEXT and CTXRULE. CONTEXT index is ideal for searching for a document that matches a given query pattern. CTXRULE is used to identify a query pattern that matches a given document. Your application is best suited for CTXRULE and not the CONTEXT index. The Expression Filter automatically uses the CTXRULE index for attributes that are identified as Text attributes (using exf$text). This way you can write a single expression involving scalar attributes as well as text predicates and match them against instances of the event structure. Please read the following chapters for a better understanding of this functionality.
Document classification - CTXRULE:
http://download.oracle.com/docs/cd/B14117_01/text.101/b10729/classify.htm
Expression Filter with CTXRULE:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b31088/exprn_spatialpred.htm#CHDDBICC
In short, you should be able to create a Text attribute in the object-based event structure and expect the Expression Filter to automatically make use of CTXRULE index when appropriate.
Regards,
-Aravind. -
Programmers text editor?
I'm looking for a programmers text editor. Two features is has to have are syntax highlighting and the ability to select, cut and copy columns (not just rows).
Any suggestions?
/Raj/The two most commonly used text editors are BBEdit and TextMate.
BBEdit: http://www.barebones.com/
TextMate: http://macromates.com/
Both have free demos and support plug-in syntax coloring for any non-standard coding you might do. TextMate is cheaper (in most cases) and several hardcore coders I know swear by it.
If you don't want to spend money Text Wrangler is the free version of BBEdit and it does line numbers for sure and it does 4 character tab-stop columns but I'm not sure about column numbers exactly.
Hope that helps,
=Tod -
Hi,
I want to have advanced text editor in my WPC web form. I went through the How To.. guide on creating a
new web form and i saw in the section 6 that there is an element type htmleditadvanced which gives
advanced text editor. But i couldnt see such a component in my editor components.
I am using SP16. Can anyone let me know why it is missing or what needs to be done to get a advanced
text editor. I am not looking for tinyMCE here.
Regards
BPOn the solaris 10 for x86 os, I redirect some sysent
table's interfaces like that SYS_read, SYS_pread,
, SYS_pread64, SYS_readv, SYS_mmap.I'm afraid I still don't understand what you're saying. How did you redirect them?
Then using Text Editor to edit a file, but my
function was not be run. So I'm confused.Is this a generic editor (like vi) or something that you've compiled/written?
Darren -
is it possible to show a text editor in a container?
Hi,
S u can do it.
Check below code. In screen 200 create a custom control with name 'TEXT_EDIT'.
REPORT ZPARA1.
DATA: ok_code TYPE sy-ucomm.
CLASS cl_gui_cfw DEFINITION LOAD.
DATA: obj_custom_container TYPE REF TO cl_gui_custom_container,
obj_textedit TYPE REF TO cl_gui_textedit.
call screen 200.
MODULE status_0200 OUTPUT. " PBO module of screen 200
IF obj_custom_container IS INITIAL.
CREATE OBJECT obj_custom_container
EXPORTING
container_name = 'TEXT_EDIT' " Custom control name in screen 200
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
CREATE OBJECT obj_textedit
EXPORTING
max_number_chars = 1000
parent = obj_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.
ENDIF.
CALL METHOD obj_textedit->set_focus
EXPORTING
control = obj_textedit.
ENDMODULE.
Edited by: Sap Fan on Sep 9, 2009 2:27 PM -
%20 issue for text editor
Hi All,
I have an issue using text editor. I am trying to populate dropdown from R/3. For all the spaces it puts %20 in the text editor. Also, if I enter some data along with some spaces in the text editor and try to save it to R/3 then all the spaces are saved as %20.
I am sure some of you might have come up with this issue and would have definitely found out some solution. Expcting your early help.
NOTE: I am on SP16
Thanks and Regards,
MurtuzaHi,
It seems that your entries are URL-escaped.
Do you call a specific FM ?
Best regards,
Guillaume
Maybe you are looking for
-
I would like to copy my iPhoto (9.4.1) library from my Mac Pro (10.7.5) to a Macbook Pro (10.7.5). Can I drag the iPhoto Library from the Pictures folder to Air Drop and send them to the MacBook? If I then move that to the Pictures folder on the MacB
-
My MacBook keeps switching the primary network connection to Ethernet cable
I've hooked up a Belkin N+ Wireless Router and it works just fine. Problem is everytime I shut down my computer or put it on sleep, the computer switches it's network connection to Ethernet and disconnects from my wireless network. I have to go into
-
I updated my iPad and now the apps will not update. It says cannot update or download now...cancel or retry. I have sign out turned it completely off, signed in and tried. I have not done a hard reset in the pin hole in the back as yet. I see oth
-
Hi all, I have a requirement to make a select options low field disable and high field editable. Can anyone guide me on this.......!!! Awiting u r reply. Regards, Rashmi
-
Turning on iMac G5 power PC only shows ? mark inside a tiny file folder on
When i booted up my G5 iMac today only a tiny file folder appeared in the center of the screen, inside it was a ? symbol alternating with a blue/black head cartoon. Apple technician said reset the PRAM. Immpossibe to hold down 4 keys and also turn th