Limit length of htmlb:textEdit

<htmlb:textEdit
     id="Edit_Text"
     text="Text to change - or just add text"
     wrapping="SOFT"
     rows="10"
     cols="30"
  />
Specify Wrapping = "SOFT" in your textedit tags....

Thanks for your answer.
I found the problem.
In fact my textEdit is encapsulated in a html:group / html:groupbody.
If I put width = 100% to the group and width = 100% to the textEdit, the problem occurs.
If I put only a width to the group, there is no problem.
Thanks
Regards.

Similar Messages

  • Copy & Paste Data to htmlb:textEdit

    Hi,
    when I Copy & Paste Data from MS Office to <htmlb:textEdit> the following occurs:
    1) In the <htmlb:textEdit> note, the content is displayed without formatting. (OK)
    2) Saved content is displayed without formatting in the backend. (OK)
    3) Printing the content via SmartForms/Adobe pdf, #-signs are appearing. For example, spaces created with the tab key are displayed as ###.  (PROBLEM!)
    Are there anybody who knows how I can solve this problem. Basically, I just want to print what I see in my web application.
    I suspect that the <htmlb:textEdit> control is not completely removing all formatting from MS Office.
    What do you think?
    Any help is greatly appreciated.
    /Elvez

    Hi Elvez,
    I experienced, that the textedit uses '##' to identify a carriage return. We simply remove the placeholder, if we have to use the value of a textedit in other contexts.
    I don't think that it is related to the copy from MS Office, since the textedit takes erverything as plain text.
    Regards

  • How to store contexts of HTMLB TextEdit in R/3

    Hi,
    I've searched everywhere for examples on this and found nothing.
    Has anybody managed to store contexts of HTMLB TextEdit in R/3 and retrieve them into a TextEdit ?
    As Eddy just taught me, 10 points to the best answer
    Milan.

    Hi Thomas,
    the function you suggested did the job thank you and top points awarded .
    I was then able to pass the internal table containing the text to the SAVE_TEXT function and store the text in R/3.
    Using the READ_TEXT function I can now retrieve the text for viewing, which leads to my next problem...
    In a textView I am able add some abap scripting to enable the textView to display the text contents of an internal table.
    But I want to display the text in a textEdit set to disabled, the problem is I cannot get the textEdit to accept displaying text as the result of some abap scripting.
    For example, in a textView this works...
    <htmlb:textView encode   = "TRUE"
                   wrapping = "TRUE"
                   design   = "EMPHASIZED"
                   layout   = "PARAGRAPH" >
                   <%  do ltext_nlines2 times. %>
                   <%  read table ltext2 index sy-index into ltext_line2. %>
                   <%= ltext_line2 %>
                   <%  enddo. %>
                </htmlb:textView>
    but the same is not possible in a (disabled) textEdit for example...
    <htmlb:textEdit id   = "shortDescription"
                       disabled  = "true" >
                   <%  do ltext_nlines2 times. %>
                   <%  read table ltext2 index sy-index into ltext_line2. %>
                   <%= ltext_line2 %>
                   <%  enddo. %>
                 </htmlb:textEdit>
    does anyone know if it is possible to run some abap script in a textEdit to display the contents of an internal table ?
    Thanks,
    Tomas.

  • Numeric field limit length to visible area

    I have a pdf saved as Dynamic XML Forms with a numeric field checked to limit length to visible area, but the "limit to visible area" option does not work. If save the same pdf as Static Form works fine.
    Can someone provide an example or tell me how to solve it?
    Thanks in advance

    In the change event you can place the following script (Java Script)
         if(xfa.event.newText.length >maxLength)xfa.event.change = "";
    Replace the "maxLength" with the maximum numbers you want the user to enter..
    This way it can stop the user to enter more characters after reaching the maxLength.
    Thanks
    Srini

  • Htmlb:textedit position in TD

    Hello,
    I have a little problem with a htmlb:textedit.
    I put a htmlb:textedit  in a TABLE but I can't align it on the bottom of the cell. The textedit is always on the top.
    <%---- col 1----
    %>
    <%---- col 2----
    %>
    <%---- col 3----
    %>
    Thanks a lot for your precious help.
    Véronique

    Hi,
      Inside your BSP application use below code (example) for alignment..
       <htmlb:gridLayout rowSize   = "1"
                              columnSize  = "2"
                              cellSpacing  = "5" >
              <htmlb:gridLayoutCell rowIndex    = "1"
                                    columnIndex         = "1"
                                    horizontalAlignment = "left" >
        <---  your codes  --- >
           </htmlb:gridLayoutCell>
      </htmlb:gridLayout>
    Here,
    rowSize - Use this attribute to determine the number of rows.
    columnSize - Use this attribute to determine the number of columns
    If you get more information about gridlayout, refer the SBSPEXT_HTMLB BSP Application ->GridLayout.bsp
    Thnx
    Suriya

  • Javascript access to htmlb textEdit

    Hi,
    Since the htmlb object textEdit does not support javascript access through the jsObjectNeeded option I tried another approach.
    This approach is mentioned several times on SDN but it does not perform as excepted.
    <% String compID = null; %>
    <hbj:textEdit
    id="reaction"
         text=""
         wrapping="SOFT"
         rows="5"
         cols="50">
         <%compID = myContext.getParamIdForComponent(reaction);%>
    </hbj:textEdit>
    <%=compID%>               (<-- test to write ID to html page)
    This code retrieves the ID of the htmlb component. It works fine as I can write the htmlb ID to the html page.
    However I need this ID in my javascript during a validation. The problem is that the ID is empty in the javascript.
    Please help.
    Raymond

    Hi Raymond,
    Try out the following piece of code (the code is tested and is working):
    <hbj:textEdit      id="addComments"
                        wrapping="SOFT"
                        text=""
                        rows="2"
                       cols="100" >
         <% addComments.setJsObjectNeeded(true); %>
    </hbj:textEdit>
    Then through javascript you can access the id of the text edit in the similar fashion.
    var txtAdCom= eval(func("addComments"));
    var value =txtAdCom.getValue();
    var length = txtAdCom.getValue().length;
    Please do reward with points if the solution is helpful.
    Thanks
    Ritushree

  • How do I limit length of a dropdown menu?

    I have a drop down menu that represents a field in my database table that is several hunfred characters long. How could I limit the size of the text box on my JSP page so that it doesn't represent the entire length of the string? Either cutting it off at a certain point and not being able to see the remainder of the string would be good or even better if when the string was selected, the user could scroll across a text box of size 30 across to see the entire string.
    Please help and show some code if possible.
    Thank you very much in advance for your assistance.

    This is the tag I am trying to limit the size of the drop down menu.
    PLEASE HELP!!!!
    <TR>
    <TD ALIGN="right"><B><B><div class="text">Number:</div></B></TD>
    <TD><SELECT type="select" name="Number">
    <OPTION value=0> - Select Number - </OPTION>
    <%
    String[] NumberList = beanName.getList("NumberList");
    if (NumberList != null)
    for (int i=0; i < NumberList.length; i++)
    if (NumberList.equals (strSelectedResource))
    %>
    <OPTION selected value="<%= NumberList[i] %>"> <%= NumberList[i] %> </OPTION>
    <%
    else
    %>
    <OPTION value="<%= NumberList[i] %>"> <%= NumberList[i] %> </OPTION>
    <%
    else
    %>
    <OPTION> No Numbers Loaded </OPTION>
    <%
    %>
    </SELECT>
    </TD>
    </TR>

  • Third party software to limit length

    I'm getting ready to help a guy, who owns a dance studio, buy a Mac and digitize his library. At his dances he likes to keep the songs under 3 minutes.
    Is there an easy to use program that works with iTunes that would stop playback after a set period of time?
    I know I can edit length in GB, but I'd rather not have to do this with his 15,000 songs...

    You could create an applescript or use Automator which looks for songs > 3 minutes, then sets the stop time to 3 minutes.
    I looked over at dougscripts.com but could find one.
    Check over there for some help.

  • 50+ Hour Movie, does Quicktime Pro have a movie limit length???

    Hi, I currently making a 50+ hour "art" film, and I've been told that since Final Cut Pro's sequences can only be 12 hours long, I would have to stich about 5 x 12 hour sequences together in Quicktime Pro. Does anyone know of Quicktime's limitation's?? Any advice would be great. Thanks.
    Dan

    Does anyone know of Quicktime's limitation's?
    Would assume only you wll likely know for sure as I can't believe too many people would be creating contiguous clips of such duration. In any case, as a "temorary topic of interest," I conducted a basic experiment. Took a feww short cuts, however, to speed up the process. Used a two hour plus (1.5 GB) iPod compatible source file and "stitched" 16 segment duplications together. Total duration for the combined clip was 35 hours, 20 minutes, 18 seconds, and some odd frames and a final files size on the order of 24 GBs. Realize this isn't the 50 hours plus you specifically asked about, but figured it would make an adequate test for the purposes of this forum.
    Would suppose it all depends on what you mean mean by limitations here. QT had no problem creating and playing the target file described above. In fact, I was very surprised that all 544 (16 x 34) chapters in the final file were functional. Took approximate 45 minutes or so to create the file. (Neglected to note exact timing) Since I assume a lot of disk caching was going on during the "set-up" and the actually writing phases of 24 plus GBs of data, this timing seems reasonable. Only real peculiarity noted was the accuracy of file/property info for the target file. While segments in the "source" file seemed to increase as expected as more and more segments were pasted together, these windows were found to be totally inaccurate in the opened target file. Total file (i.e., data) size displayed for the summary track was equal to the data size of the chapter track. Total audio track data size was depicted as zero bites while only the video track appeared to be accurate. Not sure if these inaccuracies represent bugs in QT player or a limitation in readout capabilities. In any case, the finder indicated a total file size of about 24 GBs which implies the audio track was actually about 2 GBs (which sounds about right here). While I assume there will be an upper limit to file sizes created in this manner, I would tend to worry more about disk caching and immediate HDD file storage space first.
    Any advice would be great.
    Not sure the workflow I employed (all at once stitching) would be the best in your case. Might be a better approach to "stitch" one file at a time in case your run into unanticipated problems. In addition, it would give you a chance to see if this process is a linear or geometric progression in terms of time and space requirements. Would appreciate you feedback here.

  • ESS- Address feild - limit length

    Hi,
    We have a requirment that when employees change their address through ESS portal the length of the field - Address Line 1 (STRAS) should be limited to 25 chracters. Normal allowed length is 60.
    Please advice how to acheive this without modifying the SAP field attributes. any User Exit which can throw error message etc?
    Thanks!

    Inorder to get this working on ESS you need to do the new BADI HRPAD00INFTYBL. That is the only way...the reason is decoupled framework...below is the some part of SAPs documentation for this BADI. If you read through the rest of the
    SAP documentation from SE18 you will notice why the BADI you implemented only works for backend and not ESS/MSS...
    " you have implemented the BAdIs and  enhancement spots for the infotype framework that is not decoupled and want an infotype to act in the same way in applications that directly use the decoupled infotype framework (such as Employee Self-Services and HR Administrative Services), you must also implement this BAdI or enhancement spot.
    Implement the HRPAD00INFTYBL BAdI if you want to perform additional validation for standard infotypes. This is usually required if you enhance an infotype with customer fields and want to perform checks on the entered values."

  • TextEdit: set maximum length

    Hi,
    Is there a way of setting the maximum number of characters that may be entered in a text edit field.
    Many Thanks,
    Paul

    Hi, to clarify slightly.
    I am using the following htmlb control to accept text in a BSP.
      <htmlb:textEdit    id       = "AREA_REASON"
                         text     = "<%=AREA_REASON%>"
                         height   = "50"
                         width    = "400" />
    Currently the user can enter as much text as they want into this window.  I want to limit the text to 255 chars to prevent potential loss of text when the data is passed to the back end.
    If there is no way of doing this by setting a htmlb property would it be possible to use javascript to do this?
    Thanks,
    Paul

  • Limit display length of textfield to 2 characters

    Hi,
    in my form i have a textfield for dayname like "Montag" which is german for Monday.
    On my form i do not have so much space therefore i want to show only "Mo" (first to characters).
    How can i acchieve this?
    Thank you
    Kind regards
    Manfred

    Hi Manfred,
    In Palletes select
    Objects (Tab) -> Field (tab) -> there is a check box 'Limit Length' . check that box  and enter 2 in the box 'Max Chars:'.
    Regards,
    Shaira Madhu

  • Split a multiline string from TextEdit into multiple strings

    Hi all,
    I have a small question. I have a string that comes from a multiline TextEdit used for comments. This string has to be split into multiple strings with max 72 chars. The wrapping is set to "hard".
    Can anybody help me on this?
    Thanks
    Francisco

    Hi Francisco,
    this is the complete code I tested, a bit ugly concerning the println etc... (****, not formatting here?):
    package com.btexx;
    import java.util.StringTokenizer;
    import com.sapportals.htmlb.Button;
    import com.sapportals.htmlb.Form;
    import com.sapportals.htmlb.TextEdit;
    import com.sapportals.htmlb.enum.TextWrapping;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.rendering.IPageContext;
    import com.sapportals.htmlb.rendering.PageContextFactory;
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    public class TextEditExample extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            IPageContext pageCtx = PageContextFactory.createPageContext(request, response);
            Event lastEvent = pageCtx.getCurrentEvent();
            if (lastEvent == null) {
                Form form = pageCtx.createFormDocument("myFormDocument");
                TextEdit te = new TextEdit("Edit_Text");
                te.setId("TextEditID");
                te.setText("Text to change - or just add text");
                te.setWrapping(TextWrapping.HARD);
                te.setTooltip("Edit and/or add text");
                te.setRows(10);
                te.setCols(72);
                form.addComponent(te);
                Button btn = new Button("MyButton");
                btn.setOnClick("react");
                form.addComponent(btn);
                pageCtx.render();
            } else {
                TextEdit te = (TextEdit) pageCtx.getComponentForId("TextEditID");
                String text = te.getText();
    //            for (int j = 0; j < text.length(); j++) {
    //                System.out.println(text.getBytes()[j] + " - " + text.substring(j, j+1));
                StringTokenizer st = new StringTokenizer(text, "nr");
                String[] texts = new String[st.countTokens()];
                while (st.hasMoreTokens()) {
                    System.out.println("Line : " + st.nextToken());
    I swear, I did not press Return within the TextEdit box, and after that, 13/10 appeared within the text. If just this code does not work the same on your machine, then it seems to be a bug in (your) htmlb (because my P/HF are the most actual, at least they have been yesterday).
    Hope it helps
    Detlev
    Message was edited by: Mark Finnern
    added the [code ] [/code ] (without the blanks)

  • Maximum length of SQL*Plus Command?

    I'm typing a long query into SQL*Plus (Linux, version 9.2.0.1... yes, I know it's ancient).
    If I run this query, all works fine:
    select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$')
    else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    'UPDATEMYAUDITING_TABLESETTEST_DETAILS='''||GRANTEE||'''WHEREMYAUDIT_REFNO=''A.F
    update myauditing_table set test_details='AUDIT_TRAIL is set to: DB' where myaud
    it_refno='A.FE';(In other words, is SQL that generates other SQL: if AUDIT_TRAIL is set to something interesting, tell me who has access to the AUD$ table. And it's working fine... the agg_concat function mentioned is simply Tom Kyte's stragg function under another name, as lifted word-for-word from http://www.sqlsnippets.com/en/topic-11591.html)
    Now this is what happens if I take out the linebreak after the mention of AUD$, so that the command is submitted as one single line of code:
    SQL> select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$') else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    SP2-0734: unknown command beginning "s set to: ..." - rest of line ignored.The error message indicates that the text has been 'split' at the 'AUDIT_TRAIL is set to...' bit, so that "s set to" is being treated as a new command, which is of course syntactically invalid. There is definitely no other change in text between the two versions, apart from the removal of a carriage return before the "else" statement.
    Possibly a coincidence, but the first "s" in "s set to" appears at position 258 in the entire text... close to a possible 255 or 256 character limit, perhaps?
    The same problem happens whether I run the command as a script (@mysql.sql) or typed in directly into a client SQL*Plus session. Is there some inherent limit to the length of commands that SQL*Plus can process in this version? My code runs fine on 10g and 11g databases/clients, whether it's on one line or two. Anyone know of a bug in 9i regarding this? And if there's a workaround (other than the obvious one of upgrading, of course!)

    As mentioned, it's choking at the 258th character, not the 240th. Also, it's a SELECT statement, not a COPY command (one relates to the database, the other is an internal SQL*Plus feature). And someone else also kindly pointed out that SQL*Plus has a command limit length (i.e., database-related commands) of 2500 characters. So I don't think that's the issue.
    I can be a bit more specific about this one now, though. I've a sequence of Solaris boxes running 9.2.0.1 up, and the results are that 9.2.0.1 is affected; and it's a problem for 9.2.0.7:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
    PL/SQL Release 9.2.0.1.0 - Production
    CORE    9.2.0.1.0       Production
    TNS for Solaris: Version 9.2.0.1.0 - Production
    NLSRTL Version 9.2.0.1.0 - Production
    SQL> select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$') else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    SP2-0734: unknown command beginning "s set to: ..." - rest of line ignored.And...
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for Solaris: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    SQL> select 'update myauditing_table set test_details='''||grantee||''' where myaudit_refno=''A.FE'';' from (select case when upper(value) in ('DBO','TRUE')  then (select agg_concat(grantee) from dba_tab_privs where table_name='AUD$') else (select 'AUDIT_TRAIL is set to: '||value from dual) end as grantee from v$parameter where upper(name)='AUDIT_TRAIL' order by grantee);
    SP2-0734: unknown command beginning "s set to: ..." - rest of line ignored.But in 10.2.0.1, the problem disappears.
    I am not sure, but it is perhaps related to metalink note 285913.1, since we did get some ORA-00600: internal error code, arguments: [qernsRowP], [1] errors in the alert log with a slightly different version of the above query. Changing the query obviously alters the test, though, so it may be completely unrelated.
    Either way, I think it's definitely a version-specific SQL*Plus bug (though it would be nice if any other 9i owners out there could try it and report back!)
    Anyway, the workaround is simply to submit the command on two separate lines, wherever possible. And of course... to upgrade.

  • Error Message through Dynamic Configuration length problem

    HI All,
    We are trying to raise an error message with the help of Dynamic configuration in the Message mapping.
    The need is to populate the message with certain variables.
    However we are facing the problem that the message is getting truncated beyond a certain length.(Around 60 characters)
    Similar custom messages in other interfaces are working fine for messages up to 100 characters.
    Question:
    1. What could be the maximum length for an error message in case of mapping failure?
    2. What could be limiting the length of the message in our case?
    Thank you for looking into this.
    Regards,
    Ankesh

    hi Ankesh,
    yes, there is limit length, see this oss [Note 974481 - XI Adapter Framework DynamicConfiguration Module|https://service.sap.com/sap/support/notes/974481]
    regards.
    Mickale

Maybe you are looking for

  • OneDrive for Business/SharePoint API - GET folders 'shared with me' if shared from a group/s.

    Does anybody have any ideas of how to get the list of folders shared with a user from a group? I can already retrieve files shared with a user from another user with: https://{tenant}-my.sharepoint.com/_api/search/query?querytext='(SharedWithUsersOWS

  • Update plant on BSEG based on Inter-company invoice

    Dear All, I have requirement to update Plant on BSEG for an Intercompany invoice. Does there exists any customization for the same? Currently the Accounting document is getting generated but plant field in empty. If not can you please suggest the use

  • BOM at delivery level

    Hi all, I have an issue. Is it possible to explode the BOM at delivery level with getting it exploded at sales order level? Sudha

  • Job and Spools

    Hi, In SM36, I create a job with ONE step : run program "prog_1". Then in a special case, in this program "prog_1" :  we submit a second program "prog_2" which create also a log "log_2" .  Then we return to "prog_1" to edit a log "log_1". Resume:   a

  • Image Quality Checking

    Hai all, I want to develope a java software that conducts a number of image quality tests. All these tests should be compatible with x9.37 standard. That means I want to compare the pixel values against the value set by the x9.37 standard. But I don'