Set the maximum length of textedit element in webdynpro

Hi All,
  How to set the maximum length of texedit element to a some constant characters.setting col and row property to 10 and 2 didnot set max length to 40.setting width and height also didnt helped to limit the characters user can enter to 20.
Thanks,
pkv

>
pkv wrote:
> Hi All,
>
>   How to set the maximum length of texedit element to a some constant characters.setting col and row property to 10 and 2 didnot set max length to 40.setting width and height also didnt helped to limit the characters user can enter to 20.
>
> Thanks,
> pkv
Hi,
Setting row and height is for layout purposes and not for the limiting of text in a TextEdit UI Element.
To ensure that the Text Exit has only 40 characters in 04s - you can do as Alka has suggested.
For doing the same in CE 7.1 - you can use the onChange Action and write code inside that method to limit the number of characters.
I would suggest that you use IWDMessageManager to show a message in the MessageTray whenever the user goes over the limit of 40 characters - rather than accept the whole text and then show some sort of popup.
Thanks.
p256960

Similar Messages

  • How to set the maximum length that a user can enter in Msgstyledtextinput

    Hi Everyone,
    I'm currently using EBS 11.5.1 and 10.2g DB
    Is there a way that I can set the maximum length that a user can input?
    I changed the Maximum Length to lower number (from 150 to 100) but I get the following error.
    Developer Mode Exception encountered in item SaveLocation
    Error: The item SaveLocation has a maximum length (100)
             which is not equal to that of the corresponding VO attribute
           , SaveLocation length (150).
    Action: Make sure they are equal in size. There must be other way to set that value
    Thanks,
    Elmer

    You have to set the maximum length of column to 150 to avoid this error.
    You can set the same in Jdev.
    Thanks
    --Anil                                                                                                                                                                                                                                                       

  • How to set the maximum length in a JTextField component.

    Hi This is a basic doubt. How can i set the maximum lenght in a JTextField.. I tried the setColumns() method. It doesnt do anything.. Pls Help.
    Thanks
    Rajeev

    Here's an example using PlainDocument.
    textField.setDocuemnt( new TextFieldVerifier() );
    class TextFieldVerifier extends PlainDocument {
    int requiredLength = 10; // whatever length you want
    public void insertString( int offset, String str, AttributeSet attSet ) throws BadLocationException {           
    boolean valid = true;          
    if (str == null) {
    return;
    String old = getText( 0, getLength() );
    /* insert the new string at the given offset, into the old string */     
    String newStr = old.substring( 0, offset ) + str + old.substring( offset );
    if (newStr.length() > requiredLength)
    valid = false;
    Toolkit.getDefaultToolkit().beep();
    if ( valid )
    super.insertString( offset, str, attSet );
    }

  • How to set maximum length for TextEdit

    Hi all,
        I have a TextEdit UI element in my webdynpro page and I want to set the maximum number of characters that can be entered in this TextEdit. How can I do this?
    Thanks,
    Satyajit.

    Hi Arun,
         thanks for the reply. But I also want to use the same scenario for an Inputfield. Now I used the same method here and when viewed in the browser, the entire InputField has been stretched. How can I keep the view of the InputField as default but still have a restriction on the number of characters that can be entered in this InputField? It works for TextEdit.
    Thanks,
    Satyajit.

  • How do I identify the maximum length of video in iMovie which can be made into a dvd in iDVD, please?

    How do I identify the maximum length of video in iMovie which can be made into a dvd in iDVD, please?
    I made a sellection of video clips  > pressed on "share" > on iDVD >  after one hour of formating the message was under "project duration"  : "Your project exceeds the maximum content duration. To burn your DVD, change the encoder setting in the Project Info window."
    I have edited out some of the clips and waited anothe hour or so bu the same message appeared !
    I want to know in advance how long can be the video clip sellection for the quality of video chosen ( the best before HD).
    please help if ou can.
    thank you very much indeed.
    Michael
    North London

    It's trying to tell you to change the encoding setting:
    iDVD encoding settings:
    http://docs.info.apple.com/article.html?path=iDVD/7.0/en/11417.html
    Short version:
    Best Performance is for videos of up to 60 minutes
    Best Quality is for videos of up to 120 minutes
    Professional Quality is also for up to 120 minutes but even higher quality (and takes much longer)
    That was for single-layer DVDs. Double these numbers for dual-layer DVDs.
    Professional Quality: The Professional Quality option uses advanced technology to encode your video, resulting in the best quality of video possible on your burned DVD. You can select this option regardless of your project’s duration (up to 2 hours of video for a single-layer disc and 4 hours for a double-layer disc). Because Professional Quality encoding is time-consuming (requiring about twice as much time to encode a project as the High Quality option, for example) choose it only if you are not concerned about the time taken.
    In both cases the maximum length includes titles, transitions and effects etc. Allow about 15 minutes for these.
    You can use the amount of video in your project as a rough determination of which method to choose. If your project has an hour or less of video (for a single-layer disc), choose Best Performance. If it has between 1 and 2 hours of video (for a single-layer disc), choose High Quality. If you want the best possible encoding quality for projects that are up to 2 hours (for a single-layer disc), choose Professional Quality. This option takes about twice as long as the High Quality option, so select it only if time is not an issue for you.
    Use the Capacity meter in the Project Info window (choose Project > Project Info) to determine how many minutes of video your project contains.
    NOTE: With the Best Performance setting, you can turn background encoding off by choosing Advanced > “Encode in Background.” The checkmark is removed to show it’s no longer selected. Turning off background encoding can help performance if your system seems sluggish.
    And whilst checking these settings in iDVD Preferences, make sure that the settings for NTSC/PAL and DV/DV Widescreen are also what you want.
    http://support.apple.com/kb/HT1502?viewlocale=en_US

  • Why FormBuilder add one digit in the Maximum Length of number items...????

    Hi,
    Why does Form Builder add one digit to the Maximum Length property of number data base block items...????
    For example , if a db column is of datatype number(2)... then this item is represented by 3 digits- not 2- in the Maximum Length....This is true if the data block is created via the block wizard....
    Would it be any problem... if in the above example , i modified the Maximum Length to 2 ...????
    Have you noticied it...????
    Thanks,
    Simon

    In forms the definition of a number items length is the length of how many characters it holds and not how many digits.
    If you have length 4 and you want to set a value of 22.22 it will not accept, since 22.22 is 5 characters 4 numbers and the decimal point. And just like Paul said, if the number is negative then you need one more character for the " - " minus sign.
    Tony

  • What is the maximum length of LONG data type in Forms 6i?

    What is the maximum length of LONG data type in Forms 6i?

    Do you mean the maximum size of a LONG that Forms 6i can display or the maximum size that can be stored in the database which sits behind your Forms application?
    Regards, APC

  • Set the column length in an sql query

    Hi,
    Is there a way to set the column length in a query without using sqlplus commands like row size and format column.
    I'd like to do it just from the sql query itself.
    select 'this is a test' from dual; Can I define the width of this column in the select statement
    Cheers.

    Use RPAD,
    SQL> WITH T
      2       AS (SELECT 'this is test' str FROM DUAL
      3           UNION ALL
      4           SELECT 'this is a long test' FROM DUAL
      5           UNION ALL
      6           SELECT 'this is a long long long long test' FROM DUAL)
      7  SELECT RPAD ( str, 20) str,LENGTH( RPAD ( str, 20)) len
      8    FROM T;
    STR                         LEN
    this is test                 20
    this is a long test          20
    this is a long long          20
    SQL> G.

  • In my ALV o/p what is the maximum length of column, I can display ( because

    In my ALV o/p what is the maximum length of column, I can display ( because the length of the text some times exceeding 600 chars ) ?
    Thanks in ADVANCE

    I have declared like
    <b>  S_LAYOUT-MAX_LINESIZE = 1000.
      S_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.</b>
    However ALV output not displaying the entire length.
    Call the following function to display output in ALV form
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = 'ZFRSBOI0'
                IS_LAYOUT          = S_LAYOUT
                IT_FIELDCAT        = FIELDCAT
                IT_EVENTS          = P_EVENTS[]
               it_sort            = p_it_sort[]
                I_SAVE             = 'A'
           TABLES
                T_OUTTAB           = PDET_OTAB_ALV1
           EXCEPTIONS
                PROGRAM_ERROR      = 1
                OTHERS             = 2.
    If the function call is not successful, raise error message
    and come out from the program
      IF SY-SUBRC <> 0.
        MESSAGE E000(00) WITH
                          'Unable to display report'(E01).
        EXIT.
      ENDIF.

  • How Do You Set the Maximum Size of a JFrame?

    Can someone show me a quick example? The JFrame can be empty, I just want to know how to set it's maximum size. I tried using setMaximumSize() and it doesn't work for some reason but setMinimumSize() works fine.
    I tried it using a BoxLayout and even using null as a layout manager and can't get it to work. I heard that the other layout managers don't allow you to set the maximum size of a JFrame so that is why I tried it with the layouts that I did.
    I tried the following code (imported the necessary classes), but it does not work...
    public class MyFrame extends JFrame
        public MyFrame()
            super("TestFrame");
            setLayout( new BoxLayout(getContentPane(), BoxLayout.X_AXIS)  );       
            setMaximumSize( new Dimension(400,200));
            setSize(300,150);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible( true );                
    }// end class

    Reposted from
    {color:#0000ff}http://forum.java.sun.com/thread.jspa?threadID=5236259{color}
    @OP:
    When you repost a topic, please always provide a link to the previous post so people can check what suggestions were already offered (and didn't solve the problem).
    Better still, give a short summary of the advice you have already tried.
    I suggested setBackground(...) so you can see whether your MyFrame is actually occupying the entire real estate of the window. Looks as if trying it out (which I would have done for you if I'd been at home, where my JDK is) would have been too much effort for you.
    I'm pretty much a novice in Swing, but I can tell you this: setLayout controls the layout of components added to the JFrame, not the layout of the frame with respect to its parent container.
    Luck, Darryl

  • Identifying the maximum length of a record in internal table

    Hi,
    Im using an internal table for a string for some requirement.
    Now, at later point of time i need to use for CHAR variable to copy the data from the above internal table.
    I need to identify the max length of the record stored in this internal table so that i can assign that much length to this CHAR variable.
    Is there any standard fm or any abap stmts.
    Thanks
    rohith

    You have to Loop the entire Itab to find the Maximum length of the record stored.
    Just like this:
    data: begin of itab occurs 0,
            v_str1 type string,
          end of itab.
    data: v_len type i.
    data: v_len1 type i.
    itab-v_str1 = 'mahesh sap abap'.
    append itab. clear itab.
    itab-v_str1 = 'mahesh'.
    append itab. clear itab.
    itab-v_str1 = 'mahesh sap'.
    append itab. clear itab.
    loop at itab.
      v_len = strlen( itab-v_str1 ).
      if v_len > v_len1.
        v_len1 = v_len.
      else.
        continue.
      endif.
      clear: v_len.
    endloop.
    write:/ 'Max Length', v_len1.

  • How to set the focus to a first element in oracle apex 3.2.1  and 3.1.2.00

    Hello ,
    I am using oracle apex 3.2.1 in development env. How to set the focus to a first element of a page.
    thanks/mahesh

    Hi,
    This might help
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldr_pgs.htm#CJGJDHCI
    Find "Cursor Focus" from page Display Attributes
    Br,Jari

  • Setting the maximum number of rows in a ResultSet

    Hi everybody,
    Anyone knows if it is possible to set the maximum number of rows to obtain in a ResultSet using JDBC 2.0, and if so, how to do it?
    Thanks in advance.

    Statement st = con.createStatement();
    st.setFetchSize(no_of_rows_here);
    ResultSet rs = st.executeQuery(query);Sudha

  • Can you set the color of a specific element in a JList?

    Is it possible to set the color of a single element in a JList without writing lines and lines of your own class? I know setForgroundColor exists, it just changes all element in a JList, so is there a simple way to tweak it? i am still a newbie, so re-writing swing, would be a bit of a problem for me. Any Suggestions? thanks.

    you write your own renderer, about 6-8 lines, setting the color determined by an
    if/else statement - note: you must set the color in both if and else
    search the forums for
    "implements ListCellRenderer"
    and you should find plenty of examples
    if you just want the selected element a different color, you can do this with
    UIManager.put("List.selectionBackground", new javax.swing.plaf.ColorUIResource(Color.YELLOW));
    but you must do this before you create the JList, and it will affect all JLists in your program.

  • IPod Shuffle: How to set the maximum volume limit

    How do I get back to the volume default I set at the onset of using my shuffle?
    I have speakers in my Ski Helmet and would now like to turn up the volume louder than I have currently set for my in ear earpods.
    Any help is appreciated.
    b

    If you're talking about the Maximium Volume Limit:
    Setting the Maximum Volume Limit
    You can set a limit for the maximum volume on iPod shuffle. You can also set a
    password in iTunes to prevent this setting from being changed by someone else.
    If you’ve set a volume limit on iPod shuffle, the status light blinks orange three times if
    you try to increase the volume beyond the limit.
    To set the maximum volume limit for iPod shuffle:
    1 Set iPod shuffle to the desired maximum volume.
    2 Connect iPod shuffle to your computer.
    3 In iTunes, select iPod shuffle in the Source pane.
    4 Click the Settings tab.
    5 Select “Limit maximum volume.”
    6 Drag the slider to the desired maximum volume.
    The initial slider setting shows the volume the iPod shuffle was set to when you
    selected the “Limit maximum volume” checkbox.
    7 To require a password to change this setting, click the lock and enter a password.
    If you set a password, you must enter it before you can change or remove the
    maximum volume limit.
    Note: The volume level may vary if you use different earphones or headphones.
    To remove the maximum volume limit:
    1 Connect iPod shuffle to your computer.
    2 In iTunes, select iPod shuffle in the Source pane.
    3 Click the Settings tab.
    4 Deselect “Limit maximum volume.”
    Enter the password, if required.
    Note: If you forget the password, you can restore iPod shuffle. See “Updating and
    Restoring iPod shuffle Software” on page 26 for more information.

Maybe you are looking for

  • Downloading files from a dell

    I am looking to download about 5-6 GB from a dell to my mac book 2.1. What is the quickest way to do that and about how long would it take? Thank you, Tracy

  • HELP....CONNECT MACBOOK TO HDTV

    Does anyone know if there is anyway for me to connect my macbook to my Samsung LCD HDTV? There has to be some sort of cable of cord I can purchase to make this happen. HELP

  • Code is working fine with OIM9102 BP14 patch but not in OIM9102 BP20.

    Using OIM API calls, I am able to fetch usr_key and ugp_key succesfully when utilityFactory is initialized with system admin login. When utilityFactory is intialized with non system admin ID, usr_key and ugp_key is returning as "0". This code is work

  • Zen Vision M track t

    I have the latest firmware installed on my 30 Gb Vision M player. Even though I have verified that all my music has the proper track ID tags on my PC, they do not show up properly on the M. They are usually displayed as Track 0 on the Zen, but for so

  • Albums disappeared

    Dear all, I had to reinstall the whole Mac OS X 10.3. I did and now in iPhoto I can not see the previously created albums. Their contents appear in the folder but without the albums. The albums do exist somewhere because when I tried to re-create one