Help with Text Editor

My requirement is to show a text editor on the screen.allow the user to type in it. (Example  he type n lines). Store the content in D/B table. Next time i display the screen, all n lines should be displayed.Now if he enters m lines in addition to n lines ... then i should display n+m lines in the text editor.
How can i do that.

Hi Karthik,
Go through program <b>RSDEMO_DRAG_DROP_EDIT_TREE</b>.
Reward if this helps,
Satish

Similar Messages

  • Please Help with text parsing problem

    Hello,
    I have the following text in a file (cut and pasted from VI)
    12 15 03 12 15 03 81 5 80053 1 1,2,3 $23.00 1 ^M
    12 15 03 12 15 03 81 5 84550 1 1,2,3 $15.00 1 ^M
    12 15 03 12 15 03 81 5 84100 1 1,2,3 $15.00 1 ^M
    12 15 03 12 15 03 81 5 83615 1 1,2,3 $15.00 1 ^M
    12 15 03 12 15 03 81 5 82977 1 1,2,3 $15.00 1 ^M
    12 15 03 12 15 03 81 5 80061 1 1,2,3 $44.00 1 ^M
    12 15 03 12 15 03 81 5 83721 1 1,2,3 $15.00 1 ^M
    12 15 03 12 15 03 81 5 84439 1 1,2,3 $44.00 1 ^M
    12 15 03 12 15 03 81 5 84443 1 1,2,3 $40.00 1 ^M
    12 15 03 12 15 03 81 5 85025 1 1,2,3 $26.00 1 ^M
    12 15 03 12 15 03 81 5 85008 1 1,2,3 $5.00 1 ^M
    this method reads the text from a file and stores it in a ArrayList
        public ArrayList readInData(){
            File claimFile = new File(fullClaimPath);
            ArrayList returnDataAL = new ArrayList();
            if(!claimFile.exists()){
                System.out.println("Error: claim data - File Not Found");
                System.exit(1);
            try{
                BufferedReader br = new BufferedReader(new FileReader(claimFile));
                String s;
                while ((s = br.readLine()) != null){
                         System.out.println(s + " HHHH");
                        returnDataAL.add(s);
            }catch(Exception e){ System.out.println(e);}
            return returnDataAL;
        }//close loadFile()if i print the lines from above ... from the arraylist ... here is waht i get ...
    2 15 03 12 15 03 81 5 80053 1 1,2,3 $23.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 84550 1 1,2,3 $15.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 84100 1 1,2,3 $15.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 83615 1 1,2,3 $15.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 82977 1 1,2,3 $15.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 80061 1 1,2,3 $44.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 83721 1 1,2,3 $15.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 84439 1 1,2,3 $44.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 84443 1 1,2,3 $40.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 85025 1 1,2,3 $26.00 1 HHHH
    HHHH
    12 15 03 12 15 03 81 5 85008 1 1,2,3 $5.00 1 HHHH
    HHHH
    I see the ^M on the end of the lines ... but i dont understand why im getting the blank lines
    in between each entry ... I printed "HHHH" just to help with debugging ... anyone have any ideas why i am getting the extra blank lines?
    thanks,
    jd

    maybe its a FileReader deal.. Im not sure, maybe try using InputStreams. This code works for me (it reads from data.txt), give it a try and see if it works:
    import java.io.*;
    public class Example {
         public Example() throws IOException {
              BufferedReader b = new BufferedReader(new InputStreamReader(new FileInputStream("data.txt")));
              String s = "";
              while ((s = b.readLine()) != null) {
                   System.out.println(s);
              b.close();
         public static void main(String[] args) {
              try {
                   new Example();
              catch (IOException e) {
                   e.printStackTrace();
    }

  • F4 Help with text table in WD abap

    Hi,
    i am using country related input help with check table T005 in one of table and i want to display the country text along with country id in my table, f4 for country is coming however if i select country from f4 it showing country id in the input field of table.
    i want to have country text also in one of my input fields in the table, i have seen f4 help works if we have explicit search help and using parameter assignment we can have id and text defaulted if we use same context for id and text fields,  however in this case country table t005 has check table t005 where texts are stored in text table t005t so web dynpro abap is't picking up the texts??
    please suggest how can i get the texts as soon as i select country in the f4??

    Hi Kranthi,
    You merely have to have an internal table storing list of countries, which you only need to do once, e.g. on load of application (method WDDOINIT of COMPONENTCONTROLLER). In your view, you have to declare a method for event onEnter of the input field, but this method doesn't have to have any code. Your code will be in method WDDOBEFOREACTION, where you read get country name from country key. Once you've got country name, transfer value to a context attribute to which you've already mapped as a source for attribute value of the UI element.
    Check out SAP Webdynpro component FITV_IMG_DEFHTLCATA -> view V_ITEM.

  • PC Suite 6.83.14.1 problem with Text Editor

    Hi,
    I'm getting error while executing the Text Editor of PC Suite and Click on To. for selecting the address.
    I'm using USB cable to connect my phone with the Notebook.
    I found the below error.
    AppName: textmessageeditor.exe AppVer: 6.83.108.5 ModName: msvcr71.dll
    ModVer: 7.10.3052.4 Offset: 00010440
    In order to troubleshoot, I have carried out the following activities :-
    1. Uninstalled the PC Suite 6.83.14.1
    2. Used the Nokia PC Suite Cleaner
    3. Installed the PC Suite 6.83.14.1
    But the problem still persists.
    My System details are as follows:
    Operating system:
    Microsoft Windows XP
    Build 2600
    Service Pack 2
    Language: English
    Language for non-Unicode programs: English
    Locale: English
    Input language: English
    Nokia PC Suite:
    Version 6.83.14.1
    Language: English
    Connectivity Cable Drivers:
    Version 6.83.9.0
    PC Connectivity Solution:
    Version 7.7.10.0
    No supported Bluetooth stack found
    Regards,
    Dwarika

    Please find the logs attached.
    Attachments:
    e8a5_appcompat.txt ‏1 KB

  • Help - need text editor component

    Hello,
    I need a simple text editor component to add to my application.
    I need to load it from a database file line by line.
    It must be able to handle page breaks (new page) when the user types more than will fit on a page.
    I have not been able to find anything to do this in java, I found a .net TextControl, but I want to stay in java if possible.
    Are there any code samples or anything available to do this?
    If it does not handle page breaks, it is useless to me because I need to write the text back to the database and must be able to handle multi-page.
    I thought about fileing a jtextarea one page at a time by loading the text in an array. I still have the problem of if the user types more than will fit on a page.
    Thanks for the help.
    Frank

    That might help you.
    http://forum.java.sun.com/thread.jsp?forum=57&thread=42
    964
    regards,
    StasWow! That's a gem - erm - (havent tested /run it yet but) ...thank you

  • Pls help with JTree editor problem

    Hi,
    I have a JTree where each node in the tree is a JPanel. In each
    JPanel are two JTextField objects. Only one of the JTextField objects
    is editable.
    When I click on node (a line in the JTree) with the mouse, it is
    painted using the custom editor (TreeCellEditor) that I have written.
    When the selected and editable JTextField has the focus, and when a
    certain key is hit, I capture that key, do some things, and then select
    a different node in the JTree.
    When selecting the new node, I need the node to be painted with
    the editor, just as if I had clicked on it with the mouse.
    In the method called as a result of the key binding, I call the
    following --
    TreeUI.stopEditing( JTree ) -- stops editing of the cell that resulted
    in the key binding call
    TreeUI.startEditingAtPath( JTree, TreePath )
    -- according to the JavaDocs, this should select the new cell and
    start editting of it.
    This last method does call my editor to get the components, but then my
    Renderer is also called (twice in fact). When the cell is painted, it is
    painted with the Renderer's components.
    PLEASE HELP HERE !

    Thank you so much for giving a reply to this problem.
    I will experiment with your suggestion. However, in looking at the JavaDocs
    I would need to make one class that implements both TreeCellEditor and
    TreeCellRenderer, with the methods getTreeCellEditorComponent() and getTreeCellRendererComponent(). Since currently, my editor is called and then
    my renderer is called, over-writing the editor's result, I would suspect that
    both of these methods would also be called (even though they are in the same
    class), having the same effect.
    Again, thank you.

  • Problem with text editor font

    Hiii..
    Actually I am facing some problems with the text editor font. Since I have some part of text was written in arabic (For labels), currently these parts are not readable and appears like this:
    "ط§ط³ظ… ط§ظ„ط¥ط¯ط§ط±ط© ط§ظ„طھط¯ط±ظٹط¨ظٹط©"
    I have tryed to fix that using:
    Tools --&gt; Preferences --&gt; Code Editor --&gt; Font
    However it still arise.
    Please reply me the solution if you have some idea about this..
    Regard's

    Which JDeveloper version?
    What is the character encoding settings for your project's compiler in the project properties?

  • Problem with text editor

    I am displaying a network graphics screen. Now in 1 of the user-command i want to display a  text editor in a popup. I used CALL FUNCTION 'TERM_CONTROL_EDIT' . But when the editor is coming it is actually not a editor just a pop-up window, and i cannot write anything in that.I dont understand where the problem is.Cant i call a text editor as a popup in default screen 1000 (used by sap to generate network graphics)

    Hi Have used the Class
    use this it will help to you.
          g_text_container       TYPE REF TO cl_gui_custom_container,
          g_text_editor          TYPE REF TO cl_gui_textedit,
    CREATE OBJECT g_text_container
          EXPORTING
            container_name = 'EMAIL_BOX'.
       CREATE OBJECT g_text_editor
          EXPORTING
             parent = g_text_container
             wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
             wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
        CALL METHOD g_text_editor->set_toolbar_mode
          EXPORTING
            toolbar_mode = 0.
        CALL METHOD g_text_editor->set_statusbar_mode
          EXPORTING
            statusbar_mode = 0.
    For this u need to craete a screen se 51.
    Thanks,

  • New to After Effects - need help with text manipulation!

    Hi all, I'm new to AE and this forum and I'm looking for some advice. I've been asked by the boss at work to create a short video clip, around 10-15 seconds, where text is displayed on the screen (3 words), after the few seconds, I want a 'forging' noise to happen and the final word in the text to be changed to another word and have a metallic effect applied, similar to the effect in this tutorial:
    Create Hot Metallic Text in After Effects - After Effects - macProVideo.com Hub
    Will this be difficult to do and do you guys think a complete beginner like myself can do it? I've got a lot of experience with the likes of PS, so I'm not too shy with Adobe software.
    Thanks,
    John

    johnster1991 wrote:
    Thanks for the advice, I appreciate it. So will it be difficult to have one word of text come onto the screen and overlay on top of the existing text, as if it's crashing over it? Any ideas on the steps I would use to do this? Thanks
    As you begin your career of using AE, you will change your vocabulary. Overlay will be replaced with spatial references like in front or behind.
    Designing text with surface styles like chrome or metal is not difficult. You can even import them from Photoshop if you have some PS chops or friends who can do it quickly.
    TEXT ONE can be easily replaced with TEXT TWO in any of dozens of different ways but to drop TWO in front of ONE is easy, you're just setting position keyframes. The finesse of animation, though, lies in the illusion of motion, exaggeration, overshooting and recoil. Your TWO could fall and squish and rebound and bounce or it could raise a dust cloud as it hits or it could make the camera wiggle. These are the things that separate simple key framing from animation and motion graphics.

  • New bee looking for applescript help with text edit app

    I have a huge text files (20+) , I want to find a list of words like weather, farmers, ploughing. I want to find these words one at a time, as my text file is 250+ Mb in size.
    I want applescript to count the how many times each word appears in the text.
    Paste that occurrence of word into an spreadsheet file in a row named after text file , and in a column named weather, farmers, ploughing.
    Please help.
    Thanks much.
    CF
    PS so far I can open the text files with applescript, that is about the extent of my ability in programing.
    Message was edited by: coldfusions onco

    For a file of that size, you would need to use some shell utilities to get decent performance. To count words, the following script breaks up the text into words, then counts the number of times the specified word is found (a dictionary file is used as an example, so the match is equivalent to 'contains'):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theFile to "/usr/share/dict/web2" -- a 2.5MB list of words
    set someWords to {¬
    {theWord:"weather", theCount:0}, ¬
    {theWord:"farmers", theCount:0}, ¬
    {theWord:"ploughing", theCount:0}}
    repeat with anItem in someWords
    set aWord to quoted form of theWord of anItem
    try -- break up into individual words, then search and count
    set theCount of anItem to (do shell script "tr -cs '[:alpha:]' " & quoted form of linefeed & " < " & theFile & " | grep -ic " & aWord) as integer
    end try
    end repeat
    someWords
    </pre>
    Is this related to your Automator post?

  • Urgent - help with Text direction in InDesign CS4

    Hello,
    I use InDesign CS4 on Windows 7. It's a standard version (without options for right-to-left languages).
    Whenever I make a new text frame, it seems to have a right-to-left "logic" of the text. The text types left to right, but the period in the end would go all the way right.
    It also mixes up tabs. It looks like this:
    Instead of:
    Usually I get around it by pasting another correctly formatted text-frame or text, and it works.
    Now I'm trying to create a new document with master frame (in order to be able to easily change the layout successively of a many-paged document), where I need to insert existing (formatted) text. But this text take this "right to left logic", whether I past the text, or even a whole text frame.
    I could find nothing in the character/paragraph options to get rid of this.
    I would greatly appreciate if you could help me.
    with respect,
    Jerusalem Nun.

    This behaviour is normal. Changing the default property of any style, when no document is open, changes the style for every new document, but not for existing document.
    Take a look what is your basic style where all other styles are build up on it, in your case, go to the paragraph style and look what is the basic style which was used.
    If the default style was used (it is the one in brackets), you have always a problem. You should not use it in any case.
    Because you don't have a ME version of InDesign you can't change direction directly, but you can create a new document with the default settings and the same paragraph (and character, table and cell styles) in a new document without RTL styles. Save this document, no content is required.
    Go to the 'infected' document, open the paragraph style panel and in the panel menu take "Load all text styles", select the new document and overwrite with the incoming styles.
    If necessary you might repeat it with the Table, Cell, Character and Object Styles, as all of them have some kind of direction settings.
    I don't know how good your styles were created, you have to adjust your document. And I would strongly recommend—I repeat—I strongly recommend to work always with styles.

  • Flash Site Template Help With Text

    So I downloaded a flash template to use for my website... all I need are some editing of the texts, pictures, and some of those links. Here is the template:
    http://www.templatemonster.com/flash-templates/24451.html
    My problem is I'm completely NEW at flash. I used to use FrongPage 2003 for my webdesign but I wanna use this for my new website (since it looks a lot better!) How do I edit the text fields? I can only seem to move the bar along the timeline to watch the animation, and see all the layers and item properties that none have anything with the text in them. And also the images as well, if I need to do anything special with those (within template link above you'll see they flash white for a second) and the main logo has some animation there. I have all the fonts required but I don't know if I also have to make the logo with those special white flashy lines like a GIF animator or if that's just some special affect within the template itself.
    Now due to legal notices specified by the site I can't share the template with you but I'll attempt to answer any and all questions i can to see if I can get this all figured out so I can begin adding my own content to the site. Thanks in advance.

    Doesn't look like there's an xml file for the text. Reading the template help index, and its saying some text might have complex coding for special effects and that I'd have to edit by the Library or something, so I'll try using that reference for now. I appreciate the help and I may come back if this can't help me lol
    EDIT:   It says I'm missing the font file "tahoma" mapped to _sans    ....??  I have tahoma... as well as the main title logo isn't appearing in the .fla file anymore even though I got the correct font. I'm confused >.<
    Edit 2: As well I get this a lot on many different areas:
    Forms Component - Version 0.81
    Couldn't load configuration.
    Message was edited by: undreamingreality

  • Please help with text boxes

    Can somebody help me wit hmy problem. I have a fom with many tables in it, some cells of the table are text boxes or at least they were when I developed it. Now I need to edit some of the cells and for some reason I cannot do it as the cell is not a text box but became (untitled<draw>) I cannot change its type back to text. Can some one advise what to do whitouh retyping text again in the new cell.
    Many thanks in advance

    You are welcome!
    I have a preference for Javascript (just get in the syntax zone) and use it for most things (except dates).
    As you know:
    this = current object
    rawValue = accesses the value of object
    From an Excel point of view FormCalc is similar and has inbuilt function like sum(), Max(), etc. Syntax is $ for current object and you don't need the rawValue. This is very handy when summing a column in a repeating table. Also FormCalc is excellent for working with time and dates. (not that you can't work around in Javascript, but it is heavier).
    Adobe have a very good reference for FormCalc at http://www.adobe.com/go/learn_lc_formCalc_82 and I would recommend that to you. I think it comes from the LC help file, but is easier to use.
    From a performance point of view, you can either have FormCalc in the calculate event of an object, which looks back at other fields (this will fire each time one of these fields changes). Alternatively you can have the FormCalc in the exit event of a field, which pushes a calculation/value forward to another object.
    Functions are handy if you have a script that you are using several times in a form. You write the script in a "script variable" and then call it in the objects events. HOWEVER, script variables are available in Javascript only.
    One last thing is that if you have a constant (like VAT), then rather than including  "* 0.21" in all of your calculations, use a global variable in the Form / Properties / Variables tab. currentVat = 0.21. Then in your calculations would be "* currentVat.value". If the VAT rate changes then you only have to change it in one location.
    In summary FormCalc is more akin to Excel; just watch the syntax.
    Good luck,
    Niall

  • Help with text formatting in Stickies

    I just discovered the Stickies app and it's almost perfect for helping me keep track of my tasks and to-dos. However, I'm slightly obsessive on minor details so I have a few questions:
    Is it possible to center the text without having to paste from another source? I've set the style the way I want it in Word and then paste it into a new note where it looks perfect. Large bold centered text. I go to Note > Use as Default but the text alignment isn't saved. I saved the style as a favorite but have to drill down the styles dialogs just to center text. I'll be creating an deleting a lot of these during the day and it's actually easier for me to read these when the text is centered.
    Same as 1 but for line-spacing. When I try to set the default with 1.5x line spacing new notes are created in 12pt Time New Roman
    Is there a way to set it so that Command+Shift+Y always does a Paste and Match Style? My current workaround is to select all and then paste style to set them as the default font.
    Thanks!

    I had the same problem with CP7 and just upgraded to CP8.01. This version seemed to format my long answers almost perfectly when I imported the first two question pools - then it reverted back to the same old CP7 behavior. This makes me think that there must be a way to do this.
    Update: Here's the workaround that I've used to get these "long questions" and "long answers" to fit into the multiple question Master Slide. I copied then duplicated the "MCQ, T/F, FIB, Sequence" Master Question slide. On the new one, I expanded the Question area box, both horizontally and vertically so it will accommodate even very lengthy questions.
    I then did the same for the answers area - I have to adjust both so they didn't overlap - and I reduced the size of my "Review Area" since I won't be needing it in my exam format. After saving my project, I then imported a new question pool that was in GIFT format. Of course all of them are imported using the original "MCQ, T/F, FIB, Sequence" Master Question slide format. But now I can view my "Question Pool"  (Windows > Question Pool), then select all of them (Control, A) then in the "Properties" tab you should have a pull down that allows you to select the new question master slide you just created. Select it and all of your imported slides now should display properly.
    Note that this seems to work only when your answers can fit on two lines - not three lines or more. But if you've stretched wide the answer area box in you master slide this will work for most long answers.

  • Help with text format

    I am attempting to emulate an example in shown in:
    http://developer.java.sun.com/developer/Books/gui/swing2/swing2_chap11.pdf
    With the following code
    fieldFormat = new NameFormat();
    JFormattedTextField rField = new JFormattedTextField(fieldFormat);
    rField.setColumns(15);
    rField.setValue(initialValue);
    class NameFormat extends Format {
         public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition) {
              fieldPosition.setBeginIndex(toAppendTo.length());
              String str = obj.toString();
              char prevCh = ' ';
              for (int k=0; k<str.length(); k++) {
                   char nextCh = str.charAt(k);
                   if (Character.isLetter(nextCh) && prevCh == ' ')
                        nextCh = Character.toTitleCase(nextCh);
                   toApendTo.append(nextCh);
                   prevCh = nextCh;
              fieldPosition.setEndIndex(toAppendTo.length());
              return toAppendTo;
    }I get the following error:
    FormattedField.NameFormat should be declared abstract; it does not define parseObject(java.lang.String,java.text.ParsePosition) in java.text.Format
    Therefore I determined there must be methods missing. Upon looking I find the following two other methods defines for Format .
    formatToCharacterIterator(Object obj) {}
    parseObject(String source, ParsePosition pos) {}
    The problem is I am unable to determine what the methods should do or look like if added to NameFormat.
    Any suggestions or help would be appreciated.
    Thanks
    rykk

    Forget it I can't chew gum and walk at the same time.
    rykk

Maybe you are looking for

  • Error while calling a method on Bean (EJB 3.0)

    I am getting an error while calling a method on EJB. I am using EJB3.0 and my bean is getting properly deployed(i am sure b'cos i can see the successfullly deployed message). Can any body help me Error is --> Error while destroying resource :An I/O e

  • Illustrator CS6 / CC and previous Pantone color books

    Hi all, I've understood that Illustrator CS6 / CC has the new Pantone+ color books, those color books doesn't have CMYK values so the default of rIllustrator CS6 / CC is to use the Lab values when I add a Pantone swatches to my document.  One of my c

  • Not able to compile .pll or .fmb through installation file in R12 Upgrade.

    While compiling .pll or .fmb individually using this command 1. frmcmp_batch module=$AU_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb userid=apps/appla1na output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special batch=yes OR 2.frmcmp_batch m

  • Material No. mandatory in PO

    Hi, I want to make Material No. mandatory in PO creation for certain document types but for certain company codes only.   If I made the field mandatory in the field selection group, it is becoming mandatory for all.  But I want this for certain compa

  • Resize all images in document

    Hello, I have long document with 300+ images. I need to re size them all to W=63,5 mm and H=53 mm. I dig the Forum and find out this script from user "Harbs." but it is for re scaling images to certain percent: This will scale all images to 90% of th