How to limit the length of editable text in CL_GUI_TEXTEDIT ?

Hi;
I have used an instance of CL_GUI_TEXTEDIT on a container. But I want to limit the length of text that can be entered in the text edit ? The method LIMIT_TEXT is protected so I can not call it in the abap source code.
Is there any other way to limit the length of text in Text Edit Control ?
Kind Regards.
Erkan.

Hi,
Protected methods are essentially for inherited classes only. To access a protected method, inherit a class from this class and then create and instance of the child class and then using the instance object, call the protected method.
Hopefully it should work.
Thanks,
Chandra

Similar Messages

  • How to limit the length of text in a column

    Hello All,
    I have a report built from direct database request.
    I have a comments column , for some of ID's the comment lines are more than 10. For soem rows it is 1 line and for some rows it is having 10 lines.
    Even though in properties if i select wrap text not helping me.
    I want it to show a single line and remaining 9 lines like a link if user wants to see detailed comment he can click on it.
    Can anyone please help me how to achieve this.
    Thansk in advance.
    SR

    Hi SR,
    Which OBIEE version are you using?
    In obiee 11.1.1.7 the column will be extended up to the length of the data(horizontally and vertically)
    Thanks,
    Pavani

  • How to increase the length of selection texts

    Hi to all..
    please do a favour......
    My problem is ,I am not able to enter long text in SELECTION TEXTS after certain length ,but we need long texts .So what I have to do to enter long texts..
    plz respond

    Hi Suribabu,
    In SE63 We can increase the length of the text.
    There is one option called Praposal,Edit Icon, There you can increase the length Max 255(see the Data element LXEUNITLIN) of the selection text.
    Regards
    Bhavani

  • How to increase the length of selection text

    hi All,
    I have a requirement where the select option text is longer then the usual size.
    I tried to use the selection screen comment but it is not coming in the same line.
    Kindly suggest on this.
    Select-options:s_st_obj FOR hrp1001-objid NO INTERVALS
    here s_st_obj text is Object ( PERNR / Position id / Org.id)

    Hi,
    I think not able to display all text, try to delete the spaces between words
    Object(PERNR/Pos id/Org.id)
    Regards,
    Sunil

  • How to limit the number of search results returned by oracle text

    Hello All,
    I am running an oracle text search which returned the following error to my java program.
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    #### ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    java.sql.SQLException: ORA-29902: Fehler bei der Ausführung von Routine ODCIIndexStart()
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    When i looked up the net, one suggestion that was given is to narrow the wildcard query, which i cannot in my search page. Hence I am left with the only alternative of limiting the number of results returned by oracle text search query.
    Please let me know how to limit the number of search results returned by oracle text so that this error can be avoided.
    Thanks in advance
    krk

    Hi,
    If not set explicitly, the default value for WILDCARD_MAXTERMS is 5000. This is set as a wordlist preference. This means that if your wildcard query matches more than 5000 terms the message is returned. Exceeding that would give the user a lot to sift through.
    My suggestion: trap the error and return a meaningful message to the user indicating that the search needs to be refined. Although it is possible to increase the number of terms before hitting maxterms (increase wildcard_maxterms preference value for your wordlist), 5000 records is generally too much for a user to deal with anyway. The search is not a good one since it is not restricting rows adequately. If it happens frequently, get the query log and see the terms that are being searched that generate this message. It may be necessary to add one or more words to a stoplist if they are too generic.
    Example: The word mortgage might be a great search term for a local business directory. It might be a terrible search term for a national directory of mortgage lenders though (since 99% of them have the term in their name). In the case of the national directory, that term would be a candidate for inclusion in the stoplist.
    Also remember that full terms do not need a wildcard. Search for "car %" is not necessary and will give you the error you mentioned. A search for "car" will yield the results you need even if it is only part of a bigger sentence because everything is based on the token. You may already know all of this, but without an example query I figured I'd mention it to be sure.
    As for limiting the results - the best way to do that is to allow the user to limit the results through their query. This will ensure accurate and more meaningful results for them.
    -Ron

  • I have two options in my apple contacts. And I chose to not expose my hotmail contacts to limit the length of my list. Now whenever I add someone they get saved to my hotmail contact list, rather than iCloud. How do I change this?

    I have two options in my apple contacts. And I chose to not expose my hotmail contacts to limit the length of my list. Now whenever I add someone they get saved to my hotmail contact list, rather than iCloud. How do I change this?

    Settings>Mail,Contacts,Calendars>Default Account (in the Contacts section), set this to iCloud.

  • How to limit the number of items that a list control can hold?

    Hi,
    I am using a Flex3 List control for one of my projects.
    I add drag & drop functionality to it, so that i can drag & drop elements from one control to another.
    How to limit the number of items that a list control can hold / can be dropped in a list control ?
    - Sen.

    1. Listen for the dragdrop event on the control you are dragging onto.
    2. check the length of the items in the dataprovider - if it exceeds your maximum override the default drop action with e.preventDefault(); (assuming you used e for the event on the handler).
    Regards,
    Mark.

  • How to change the lengths of the layout

    Hi ,
    I am executing one report, output is coming fine but next if i go to print preview for PO number only 9 digits are appearing one digit is missing, actually column is trucated, there in print preview there is one tab called Change Layout, there if i see length of the PO no is 9, so its showing only 9 digits, actually length of the PO no should be 10.in change layout the length is editable i can change from 9 to 10, after that there is a button called copy, then it will show correctly, it works only one time, so each and every time user has to change the length, so can any one suggest how to change that length in the layout permanently, bcos there is no save button there.
    Can any one tell me from where all these lengths are coming which are appearing in change layout.Surely its not coming from the report.

    Hi friend,
    That depends upon the space provided by the ALV column for that variable or the heading size its not based on the data element size.
    If you want to be more clear lust count the space available for each field available at the print preview.
    The details for that are stored in table T180S just see the documentation available for that table.
    And see when the table is getting filled like that so that you will be able to find a solution where and how it is getting populated.
    Use column width optimization for getting the correct output.
    If you have any queries in this please revert back to me i will help you.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 5, 2012 4:01 PM

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • How to restrict the length of the input?

    Hi all, could any one tell me how to restrict the length of the input string? My SOA Suite is 10.1.3.1
    I tried the following; getting an error.
    <element name="RestrictLengthProcessRequest">
    <simpleType name="SSN">
    <restriction base="string">
    <length value="10"/>
    </restriction>
    </simpleType>
    where RestrictLengthProcessRequest is the message name of the corresponding .wsdl and SSN is the input whose length is to be restricted.
    The error is : 'Attribute name not defined on element simpleType'
    Thanks in advance.
    Edited by: user11275112 on Aug 27, 2009 11:44 PM

    Hi swathi,
    For this you have to create a simple data type. No need of writing a code.
    Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
    Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
    Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
    Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
    Regards
    Manohar

  • How to limit the number of boxes to tick in LC

    I would like to know the "javascript" in Lice Cycle to limit the number of boxes ticked
    for example i have 20 boxes and i would like that the client can only tick 5 boxes
    thank you

    Thank you Steeve
    But my problem is that i don't know which boxes the client will want to tick so all boxes have to be available at the beginning.
    When the client will have ticked 5 boxes in this case and only in this case, all others boxes must become unavailable so it is very difficult to set up
    if you have any idea
    thanks anyway
    Date: Fri, 15 May 2009 09:44:33 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to limit the number of boxes to tick in LC
    This is a form validation issue. For example, you may have a text field and the value entered into that field determines which checkboxes must be completed to satisfy a validation or business rule. The attached sample requests the value "foobar" to be entered into a text field. If you enter "foobar" and exit the field, 2 of 3 checkboxes have the access property changed to "protected", meaning a user cannot no longer select those checkboxes.
    // form1.page1.subform1.input::exit - (JavaScript, client)
    if (this.rawValue == "foobar") {
        form1.page1.subform1.cb2.access = "protected";
        form1.page1.subform1.cb3.access = "protected";
    Steve
    >

  • How to limit the number of pages a PDF can print?

    Hi,
    Does anyone know how to lime the number of pages a PDF can print? For example, if a PDF has 100 pages, it only allow the user to print no more than 100 pages.
    Any software can achieve this ?

    But once I purchased a ebook, which required be opened with Adobe digital edition, the ebook only allow to print 57 pages out of 300+ pages total. 
    Are there any way to convert a PDF to a ebook and encrypted by the printing limits?

  • How to limit the size of the displayed drop down ?

    Hello,
    basically the subj.
    I'm generating the drop down item from SQL based LOV.
    one of the records is looooong.
    Is there a way to limit the length of the drop down so it doesn't occupy 1/2 of the page?
    // i tried substr in LOV - it didn't produce expected result.
    Thank you.
    Andrew

    Chris,
    it's interesting - I have a text area to the right of the "select list" item. When i use your code that area moves furher to the right.
    I observe - the actual size of drop down doesn't change. only the size of the td can be increased...
    I'm using FF
    Here is the html code . I chopped off the rest of the values in options:
    <td align="left" rowspan="1" colspan="1" style="display: block; width: 100px;">
    <input type="hidden" value="3657620048154732" name="p_arg_names"/>
    <select id="P1_SELECT_BA" onchange="get_APP(this,'P1_SELECT_APP'); get_SRV(this,'P1_SELECT_SERVER')" size="1" name="p_t01">
    <option value="NULL">- No BA Selected -</option>
    <option value="Accounting">Accounting</option>
    <option value="Audit">Audit</option>
    <option value="BSD">BSD</option>
    //chopped off here

  • How to limit the max dialog no that one user can use at the same time?

    Hi,
    I meet one performance problem that one user can open 6 sessions in the GUI and he/she can run 6 reports at the same time witch could occupy 6 dialogs in the sap R/3 instance. It makes poor performance for other users.
    Would you pls tell me how to limit the no. of sessions one user can create at the same time or how to limit the no. of dialogs one user can occupy at the same time?
    Thanks a lot!
    I used this parameters in the default profile as blew:
    rdisp/rfc_check 1
    rdisp/rfc_use_quotas 1
    rdisp/rfc_max_own_used_wp 20 (means: 20%)
    It still didn't work.
    Sean

    Hello,
    We can reserve DIA W.P by giving value to the parameter :- rdisp/rfc_min_wait_dia_wp=1(default)
    that have to necessarily remain free for other users.
    This parameter is used to reserve a number of dialog work processes for Dailog mode.
    For eg. If 10 dialog w.p. are configured for the instance(rdsip/wp_no_dia=10) and the parameter rdisp/rfc_min_wait_dia_wp=3 is set,parallel RFC's can occupy a maximum of 7 DIA W.P.3 DAI W.P. always remain free for dialog mode.
    But now the question is how we assign/restrict this free dialog w.p. to the specific user.
    Reply...
    Regards,
    JUNAID

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

Maybe you are looking for

  • Slow startup in mavericks

    So I upgraded to mavericks and my boot time extended to about 2/3 times the original time can anyone help me? The following is my bootlog. 1/12/13 10:52:11.000 am bootlog[0]: BOOT_TIME 1385866331 0 1/12/13 10:54:31.000 am syslogd[18]: Configuration N

  • Videos to DVD

    How can I make a DVD from videos I downloaded from internet? I made a DVD and my DVD players can't read it. I remember there was a warning about burning data or something. Thank you,

  • Illustrator & Photoshop CS3 Freeze When I Try to Open a Document

    I have CS3 installed, and just since yesterday, when I open photoshop or illustrator and then try to open a document (just from file-open), the entire program freezes and won't let me click anywhere. I have to ctrl-alt-del to get the program closed.

  • Dynamically generating text item in developer

    Hi, I am developing applicationn in developer 6i and I am facing problem regarding displaying records in form. My query is select ename, edept from sale where city = 'NYK' suppose this query fetch 10 records and I dispalyed them in developer but prob

  • [Solved] gcc 4.7 breaks passenger-install-nginx-module

    I needed to recompile nginx with some different options, but since upgrading to gcc 4.7 running passenger-install-nginx-module always gives the following compilation error: g++ -Iext  -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DH