Issue in wrapping of text in TextEdit control

Hi,
I'm developing an occasionally connected application using NetWeaver Mobile 7.1. In one of the view, I use TextEdit control to display the address information where the address is a multiline text data. During testing of the application in the simulator, the wrapping of text in the TextEdit control is not working properly. The wrapping property of TextEdit control is set to "soft" but the text is not getting wrapped. Even I tried the other option "hard" wrapping but it throws some error while building of the application.
Please suggest a solution to do wrapping of text using TextEdit control.
Thanks in advance.
Regards,
DVR.

Hi Nipun,
The rows and cols properties are already set and also the data is multiline but the text is not wrapping.
Say the properties of a TextEdit control rows is "4" and cols is "30" was set. The data is also a multiline text say each line has more than 30 characters. During wrapping of text with in TextEdit control the first row should have only 30 characters and rest should be wrapped off to the next row and so on.
But during execution what happens is the text is not getting wrapped instead the first row itself has all the characters of first line of the text and second row has next line of text and so on. The text in a row can be scrolled through using horizontal scrollbar.
My need is the horizontal scroll bar should not come and the text need to the wrapped off with number of cols specified.
Regards,
DVR

Similar Messages

  • Wraping text in table control

    Dear All,
    is there way to wrap the text in Table control.
    regards

    Basically, no. Can you elaborate a little more on your need.
    Regards

  • How to show long text in TextView control in formatted form?

    Hi,
    I have requirement to show long text from backend text edit control to WD application. I am using READ_TEXT Fm to read the long text and passing it to text view UI element.
    The text is shown in simply one long line but I want it to show in the same format as stored in backend textedit control.
    If I take textedit UI control then it shows the text in formatted form.
    Could you please let me know how to achieve these for TextView control? My requirement is that I have to use only TextView control.
    Thanks,
    Chandra

    Hi,
    The Problem solved to some extend but still the exact formatting is not happening though i am using cl_abap_char_utilities=>newline.
    for eg. if the long text is as below.
    "To display the external component, you can now embed an interface view of any window of this component in a window of your current embedding a view of oneu2019s own component. By setting up navigation from one outbound plug of a view of your inbound plug of the inter external component, you enable the external component to be displayed. New line ."
    and if in backend the Last line " New line ." is on next line, on WD it is not displayed on next line.
    Thanks,
    Chandra

  • Issue with length of text field - READ_TEXT & SAVE_TEXT

    Hi,
        I need to allow user to enter max 400 char in one field and that needs to be updated in the VA02 for the corresponding sales order.
        I can able to save the text max 132 chars since TLINE-TDLINE will allow max 132 chars in both READ_TEXT & SAVE_TEXT.
        So here i am looking for the solutions for the below...
    1) How to design one input field to take 400 chars at one shot .... do i need to use table control ?
    2) Once i get the 400 char may be i will split in to 3-4 lines and i can append 130130130... like that through those FM... if not possible can you tell me the alternative.
    regards
    jaya

    You need to use class CL_TEXT_EDIT....
    Kindly stolen from Rich Heilman -:)
    report zrich_0001 .
    data:
          dockingleft  type ref to cl_gui_docking_container,
          text_editor    type ref to cl_gui_textedit,
          repid type syrepid.
    data: itext type table of tline-tdline,
          xtext type tline-tdline.
    parameters: p_check.
    at selection-screen output.
      repid = sy-repid.
      create object dockingleft
                  exporting repid     = repid
                            dynnr     = sy-dynnr
                            side      = dockingleft->dock_at_left
                            extension = 1070.
      create object text_editor
                  exporting
                       parent     = dockingleft.
      xtext = 'http:\www.sap.com'.
      append xtext to itext.
      call method text_editor->set_text_as_r3table
         exporting
               table              = itext
         exceptions
               others             = 1.
    start-of-selection.
      call method text_editor->get_text_as_r3table
         importing
               table              = itext
         exceptions
               others             = 1.
      loop at itext into xtext.
        write:/ xtext.
      endloop.
    You can use <b>RKD_WORD_WRAP</b> to wrap the text into an internal table -;)
    Greetings,
    Blag.

  • TextEdit control of HTMLB

    Hi,
    I want to disable the text area using textEdit control of HTMLB. if I set disabled= "true" in jsp file, then portal throws runtime error "attribute disabled is not available in HTMLB".
    Any suggestion.
    Thanks in advance.
    Manish

    Hi Manish,
         There is no property called <b>disabled</b> but there is a property called <b>enabled</b>.
    enabled="TRUE"
    or
    enabled="FALSE"
    regards,
    prakash

  • Having an issue with passing the text of a link to a session variable.

    I am having an issue with passing the text from a link to a session variable. I am adding this html as a literal for each item in the list that i have populated with a query.
    List<Literal> lit = new List<Literal>();
    for (int i = 0; i < posts.Count; i+=4)
    Literal someLit = new Literal();
    someLit.Text=
    @"<div class='row'>" +
    "<div class='col-md-12'>" +
    "<div class='panel'>" +
    " <div class='panel-body'>" +
    " <!--/stories-->" +
    " <div class='row'> " +
    " <br>" +
    "<div class='col-md-2 col-sm-3 text-center' id='javascript'> <h3>" +
    " <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>" +
    "</h3>" +
    " </div>" +
    " <div class='col-md-10 col-sm-9'>" +
    "<h3><a href='Thread.aspx' runat='server' onserverclick='MyFuncion_Click'> " + posts[i] + " </a></h3>" +
    " <div class='row'>" +
    " <div class='col-xs-9'> " +
    posts[i + 1] +
    " </div>" +
    "<div class='col-xs-3'></div>" +
    posts[i + 2] +
    " </div>" +
    "<br><br>" +
    " </div>" +
    " </div>" +
    " <!--/stories-->" +
    " </div>" +
    " </div>" +
    " </div><!--/col-12-->" +
    " </div>" +
    "</div>";
    lit.Add(someLit);
    for(int i=0; i<lit.Count; i++)
    this.Controls.Add(lit[i]);
    I use one of the list positions as the text for a link in two different spots. For now, lets only talk about the line:
    <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>
    Since I am generating these controls at pageLoad, I can't make them <asp:Linkbutton>s. And since they are anchor elements, I don't have access to an onCommand attribute or onservercommand attribute.
    All I want to do is access the content from inside the specific link tags that I generate on link click and set it as a session variable. That's what I would like my UserProfile_Click function to do. I cant commandargs it in like i can with a linkbutton's
    OnCommnad attribute, however.
    My fear is that the onserverclick attribute resolves so something else on pageLoad normally and since I am generating it the way I am similar to the way a <asp:linkButton> resolves to a generated JavaScript.
    Any help?

    @Brunellus
    For questions related to ASP.NET use the ASP.NET forum http://forums.asp.net     
    You should get more, better and faster answers on the other forum.  Thanks, ahead of time.
    Best Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dynamic header text in table control - Dialog programming

    Hi All,
    I have a table control on one of my dialog screens.  I need to dynamically change the column header texts on this control in my PBO.  Does anyone know how to do this?  I have found all kinds of ways to modify the other characteristics of the fields at run time in the PBO (active, input/output, invisible, etc.) - but not to change the header text!  Any help is appreciated.
    thanks,
    Matt

    Hi Hymavathi,
    I appreciate your help!  This didn't solve the issue, however,...I have used the method you'd mentioned before (many times) for setting it inside the loop at screen:
    %_<screenname>_%_APP_%-TEXT = <text something>.
    - but only in ABAP reports.  It doesn't seem to recogize it (the table control column header text) within a dialog program.  I keep getting a compile error. (saying that the %_<screenname>_%_APP_%-TEXT doesn't exist.
    I tried the suggestion that you stated below (from lateesh) - yet it only let me place i/o field in title text area (not the column header text).  Am still searching...

  • Long text in table control

    Hi SDN, Rich Please respond ..! <b>ITS VERY URGENT</b>
    i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor )
    <b>how do i save this into my customised tables so taht i display the LT in the display screen for RFQ's</b>
    This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
    Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
    i have been tryin the same with the fm's edit_text and read_text, but am not clear on these fm's related to HEADER in the importing parameters of the fm.
    is this wrong? or is there any other way to achieve my requirement?
    Please HELP
    Pratyusha

    Hi,
    Check this code..To display the text in a text editor control..
    First you have to create a custom control in your screen painter and name it as CONTAINER1..
      Then apply this code..
    TYPES: BEGIN OF type_text,
             line(70),
           END OF type_text.
    DATA: t_texttable1 TYPE STANDARD TABLE OF type_text.
    DATA: custom_container TYPE REF TO cl_gui_custom_container,
          editor TYPE REF TO cl_gui_textedit,
          repid LIKE sy-repid.
    repid = sy-repid.
    CALL SCREEN '0100'.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      PERFORM delete_container.
    *- Container franchise codes
      IF editor IS INITIAL.
        repid = sy-repid.
        CREATE OBJECT custom_container
           EXPORTING
              container_name = 'CONTAINER1'
           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 OBJECT editor
             EXPORTING
                parent = custom_container
              wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
               wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_position = '38'
                wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *- Eliminate toolbar
        PERFORM toolbar.
      ENDIF.
      PERFORM load_data.
    Load TextEdit control with texts
      CALL METHOD editor->set_text_as_r3table
        EXPORTING table = t_texttable1.
      IF sy-subrc > 0.
      Display an error message
        EXIT.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush.
    ENDMODULE.                 " STATUS_0100  OUTPUT
          FORM delete_container                                         *
    FORM delete_container.
      IF NOT editor IS INITIAL.
        CALL METHOD editor->delete_text.
        CALL METHOD cl_gui_cfw=>flush
              EXCEPTIONS
                OTHERS = 1.
        IF sy-subrc > 0.
    Errormessage: Error in flush
        ENDIF.
      ENDIF.
    ENDFORM.                    " delete_container
          FORM toolbar                                                  *
    FORM toolbar.
      DATA: lv_toolbar_mode TYPE i VALUE 0.
      CALL METHOD editor->set_toolbar_mode
        EXPORTING
          toolbar_mode = lv_toolbar_mode.
      CALL METHOD cl_gui_cfw=>flush.
      IF sy-subrc > 0.
    Errormessage: Error in flush
      ENDIF.
    ENDFORM.                    " toolbar
    *&      Form  LOAD_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM load_data.
      DATA: gwa_line TYPE type_text.
    gwa_line-line = 'HELLO HOW ARE YOU!!!!!'.
    APPEND gwa_line TO t_texttable1.
    ENDFORM.                    " LOAD_DATA
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      DATA: T_SAVE_TEXT TYPE STANDARD TABLE OF TLINE.
      DATA: S_SAVE_tEXT TYPE TLINE.
      DATA: S_TEXT TYPE TYPE_TEXT.
    Load TextEdit control with texts
      CALL METHOD editor->get_text_as_r3table
        IMPORTING table = t_texttable1.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this helps...
    Thanks,
    Naren

  • Word breaks incorrect when wrapping Greek text

    Hi,
    I'm trying to use Greek in Illustrator, but I'm getting line breaks in the middle of words. This sort of problem also applies to other languages. Does anyone know how this problem might be resolved?
    Note that this is NOT the same thing as turning off hyphenation; I've tried that and it doesn't work. I'm getting breaks in words without hyphens appearing. I've tried with two sorts of Greek fonts: (1) with the Helena font, which replaces Latin glyphs with Greek glyphs, and (2) with a Greek characters in Unicode with a Unicode-compatible Greek font (SBL Greek). With the first option, it seems that Illustrator is causing breaks where it sees non-alphanumeric characters. With the second option, I'm not sure what the problem is; it's breaking in various strange places.
    Setting the language to "Greek" in the Character Pallette does not help. (I'm using ancient Greek, and I'm not sure how that might differ from modern Greek).
    The same problem has apparently occurred in InDesign, and there is even a solution or two in InDesign (see the 2nd link) involving either setting the language to "No Language" (cannot be done in Illustrator, as far as I can see), or find and replace character styles (again, it seems Illustrator can't do this).
    http://forums.adobe.com/message/1873967#1873967
    http://forums.adobe.com/message/1327153#1327153
    How might this problem be solved? Setting "No Break" in the Character Pallette for all the words would require tedious selection. Its seems that this problem could be solved by allowing "No Language" to be selected, or by adding an option to only break at spaces. TextEdit on Mac OS X does the latter and wraps the text properly.
    Thanks,
    David Arndt

    Ehm ... because InDesign can't load the correct rules for that language? No language = no rules.
    Go ahead, try it.
    It is something different than unchecking "Hyphenation" -- that works on entire paragraphs only. This will work for any word (or phrase, sentence, paragraph, multiple book set) you don't want to be hyphenated.
    [Post-thought:] "No language" may lead to surprising results with some OpenType fonts, as a lot (if not all) of features may be tagged to the language. You might suddenly miss ligatures, for example. So, other than for "Other" languages, you should probably just switch hyphenation off.
    End of disclaimer.

  • Wrapping the text on the confirmation dialog

    Can any one pls tell me how to wrap the text on a confirmation dialog?
    thanks in advance.
    regards
    Lakshminarayanan.V

    Hi,
    Currently this is simply not possible. Probably later TextView UI element will be enhanced to support this (at least, this feature is at "Whish List", search this forum for word POLL), and confirmation dialogs will inherit desired behavior automatically.
    For now you have to create your own component and use it pop-over window as confirmation dialog. In your component you may either use TextArea for multi-line display (quick and ugly) or split string into several context attributes and display them using several TextView UI elements (either dynamically created or pre-created till some reasonable maximum, say, 5 lines <-> 5 controls)
    VS

  • No option to set 'No Word Wrap At All' in TextEdit?

    TextEdit is a great plain text editor, but there is one thing that I would assume frustrates developers; it always, always, ALWAYS wraps the text to either the window or the page.  You cannot turn word wrap off completely.  Even going fullscreen, sometimes I have a line of code that's simply too long and should continue off the screen.  I have never seen a horizontal scrollbar using TextEdit.  I am a minimalist (to an extent) developer and like to just use a simple plain text editor.  Even *ahem* Microsoft Notepad allows you turn off word wrap completely.  (Technically though, it does wrap eventually after...I don't know LOTS of characters).
    But anyways, is there a trick to getting a long lines of code to appear as they should in TextEdit?
    Would anyone, or has anyone already tried to rally the troops to get a fix in place to allow us to completely turn off word wrap in TextEdit?

    Thank you guys.  I know most developers don't consider TextEdit to be that great.  I have tried TextWrangler, but there's too much going on there.  I'm used to staring at thousands of lines of code in Notepad in my line of work, so I'm used to it.  I don't want syntax highlighting, auto tabbing, etc.  I'm just looking for a really, REALLY, simple text editor, and TextEdit is just fine, there's just no setting to turn off word wrap completely.
    Thanks again.

  • CS6 Site Management window is blank? No input text fields or controls showing up?

    CS6 Site Management window is blank. No input text fields or controls are showing up. I have reinstalled CS6 Dreamweaver CS6 which is part of my Web and Design Suite, but that did not help.

    Welcome -
    See if this helps
    http://helpx.adobe.com/dreamweaver/kb/cant-select-some-items-site.html
    I seem to recall an "invisible icons' issue. Just for giggles, hover around the bottom left of the panel to see if some edit controls appear.  Just a shot in the dark.

  • Applescript to copy selected text to TextEdit without clipboard

    Hi,
    I am looking for an simple Apple Script that can copy any selected text, start TextEdit and paste it in. I have managed to do this with the clipboard but I would like it to work without clipboard. So that it copies the selected text to a variable and paste it from the variable afterwards.
    Is there any easy solution to this?

    if you're talikng about copying selected text anywhere, the easy solution is to use an automator service. 
    launch automator
    choose service
    choose 'receive selected text in any application' at the top - should be the default
    use the 'New TextEdit Document' action or the 'Set Contents of TextEdit Document' action, depending on what you need
    save, and run from the services menu
    if you want to select text from a specific application then you can use automator or get more fine-grained control by using Applescript, but appllescript doesn't have an easy way to get generic selected text.

  • How to wrap the text in column headers?

    Hi Friends,
    Can anyone please suggest how to wrap the text in column headers of a Java WebDynpro table?
    I believe that caption is the only UI element that a column header can have and it does not allow wrapping of the text.
    My original requirement is as follows,
    In a table I need to dynamically set the width of the columns according to the width configured by the user in some other view. All the columns of the table are dynamically rendered.
    Now what happens is when the user sets the width of the column to a rather low value, say 15 pixels, then the column is displayed like
    Supplier Catalog Name
    Sheila
    Catalog
    Name
    Dropdown
    As you can see it looks rather odd.
    Supplier Catalog Name is the header of the column and I use IWDCaption for header.
    Sheila Catalog Name Dropdown is the value of a particular row at the specified column. I am using a TextView as the TableCellEditor.
    I think what is happening here is that the framework wraps the text in the TextView according to the width specified (15px) and then the column width is extended because it can not accommodate the text (Supplier Catalog Name ) of the column header.
    We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
    I searched some forums and many people have suggested using scrollable columns but I don't understand how it will help in wrapping the text in a column header.
    Any help would be of great advantage.
    Thanks
    Amit

    Hi Deepti,
    Thanks a lot for the answer but the option that you have specified does not wrap the text. Instead it truncates the text being displayed and only the substring of the text which could be displayed in the given pixels is displayed.
    I need to show the whole text wrapped (Meaning if the width of the column is not sufficient then the text goes into the next line).
    Ayyapparaj,
    Thanks to you too for an helpful answer. It seems that the Netweaver has finally come up with a way to wrap the text in the column headers but as Manoj pointed out, I do not see the property headerTextWrapping  for a table column, Can you please specify which version of netweaver supports it?
    We are using SAP NetWeaver Development Studio 7.0.12 as the IDE.
    Thanks
    Amit Kapoor

  • For Wrapping of Text

    Hi,
    is there any way for wrapping text in ABAP which is similar to MS-word or MS-excel.
    Currently  i have 3 fields in an internal table.
    first field is of length 10,
    second field is of length 40,
    third field of length 256.
    Third field is mainly used for Notes.
    client said that report  coulmn length should be 80.
    after 80 i need to wrap the text in next line, with out affecting display of other rows.
    Please guide me.

    use FM RKD_WORD_WRAP
    call function 'RKD_WORD_WRAP'
               exporting
                    textline            = idiagline
                    outputlen           = 80
               importing
                    out_line1           = idiag_1
                    out_line2           = idiag_2
               exceptions
                    outputlen_too_large = 0 
                    others              = 0.
    Regards,
    Joy.

Maybe you are looking for

  • I seem to have two icloud accounts--how can i consolidate?

    I seem to have two iCloud accounts--how do I consolidate?

  • New iMac power cable problem

    I have just bought a new iMac 21.5" and have a problem with the ac cable. I cant fit it all the way into the socket so that the circularplastic is flush against the back of the monitor. It goes about halfway, clicks into place but doesnt feel complet

  • Java JRE 1.4.2_09

    I'm currently running 1.4.2_07, an upgrade to 1.4.2_09 is required for the app. running on the server. Is 1.4.2_09 still supported or should I just jump to 1.4.2_12? And what are the major differences between the two? Thanks in advance for any advice

  • Which is better for business Mail or Entourage 2008?

    I am new to Mac. Any advice on the better app for emails & business? does Mail use mbox? where does it store the email files? Thanks a lot in advance...

  • Problem connecting Huawei E303 Mobile Broadband Dongle to MBP 2012

    I have just purchased the Huawei E303 USB Stick for my mobile broadband from Singapore's StarHub. According to the instruction sheet, the laptop should detect the USB automatically and the mobile broadband should install itself automatically. My MBP