Maximum characters in textEdit field

Hi all,
   I am using TextEdit control. now i want to set the maximum character for the control. for example 100 characters.
  how to achieve this.
Regards,
Shanthakumar.

Hi,
You should use LengthValidator to set the maximum character for the control.
Check this:
Client-side Input Validation with HTMLB - Intermediate
Regards,
Praveen Gudapati

Similar Messages

  • Restrict TextEdit field length to 240 chars

    Hi,
    In my Web-Dynpro application, I need to restrict the TextEdit field length to 240 chars maximum size.
    The users shouldn't be allowed to enter more than 240 characters!
    Best Regards,
    Amol

    Hi,
    try creating a simple type under the dictionaries->logical dictionary->data types->simple type of type String and in the Definition tab set the max length to 240. create a value attribute under the context and set the type to the simple type created and bind it to the Input field.
    This will restrict the length to 240.
    Regards,
    Poojith MV

  • Length of textEdit Field

    I've a question depending the textEdit Field of htmlb Extension:
    Is there any possibility to define a maxlength for this field as it is with InputField?
    I need kind of a textarea with limitation of 2048 signs...
    Thanks in advance

    Yes, of course:
    What solved my problem was:
    /people/sap.user72/blog/2005/02/07/bsp-howto-show-a-progress-bar-for-limiting-text-input
    in coordination with
    http://www.mediacollege.com/internet/javascript/form/limit-characters.html
    Message was edited by:
            Matthias Stangl

  • Maximum Characters Input Box

    What is the fattest letter? i.e. what should I use to test
    that content always fits within an input box regardless of what the
    user types? Is it the letter "M"? I know M is used as a standard in
    other design circles.
    Thanks

    Thank you. Is there an easy way to do the opposite, have a
    user's text adapt to the textfield? For example, I have an input
    textField that is 100 pixels in width, single-line, size 20 _sans
    font (Maximum Characters turned off for demo. purposes). You can
    input 5 "M's" before the field begins scrolling right, or you can
    enter 24 lowercase "l's". In this case the input is for a form that
    will be printed, therefore scrolling cannot occur (since it wouldnt
    show up on the print form), and Maximum characters must be turned
    on. So I would have to limit maximum characters to 5 right? In
    reality I'm working with much larger textfields, but you get the
    idea. Is there a way to set the maximum characters based on user
    input?

  • Update Rule routine to get last 4 characters of a field

    I am aware I can do this using a formula.  However, can someone assist in writing the routine which gets the last four characters of a field.  The field is part of the COMM_STRUCTURE? Thanks

    Hi,
    For determining the length of the field, you have to use first the statement DESCRIBE so you get the figure into a variable (I do not have a SAP system right now, so errors can occur in the following):
    <b>data length type i.
    describe comm_structure-field length into length.
    length = length - 4.
    result = comm_structure-field+(length)(4).</b>
    However, please shift your field is RIGHT JUSTIFIED earlier than using these statements. Please consider the instruction SHIFT. That will insure you that you get the right characters.
    Regards

  • How to find Maximum of a date field using BEx

    We are trying to just display the maximum of a date field in a BEx report along with some fixed text .
    If we need to create a formula using Maximum function , how to use the same?
    For ex, we have a field "Flight Date" in the cube and cube has been updated with flight date till 10.09.2006.
    we want to display in the BEx report something like "Flight details are available only till <maximum of the flight date field from the cube>"
    Please help.

    Srilakshmi,
    Create a formula on the data and then sort the query on the date , that way the latest date would come on top. I am not sure if you can have something the way you have described..
    an option could be :
    Have a query on the cube with a condition of top date where the date could be a formula , this way you would get the latest date. se this as a value set to filter another query that displays only the date and nothing else , have some static text beside the query to indicate that this is the latest date.
    Hope it helps..
    Arun
    Assign points if helpful

  • How to accomodate more than 255 characters in character field

    HI All
    i need to accomodate more than 255 characters in character field. How can i do that ?
    thanks in advance!!!

    Hi,
    You can try the following things:
    1. Use a datatype STRING and check it will work.
    2. In se11 transaction goto datatype and search for char* in data elements.
    You will find predefined data types ,you can make use of it.
    For eg. char2000,char3000,char4000 etc.
    Hope this will help.
    Regards,
    Nitin.

  • Xpath in BPM correlation. Have to pass only few characters of a field in co

    Hi All,
    Header file:
    MDk-111;1728;175;02.09.11;781961.09;0.00;0.00;781961.09;;;;;;;;;0
    MDk-112;8574;175;02.09.11;4462;1112;104098800;104102150;;;;;;;;;2
    MDk-113;1729;175;02.09.11;781962.09;0.00;0.00;781961.09;;;;;;;;;0
    MDk-114;8575;175;02.09.11;781963.09;0.00;0.00;781961.09;;;;;;;;;0
    Detail file:
    MDk-112;8574;175;02.09.11;;DEBIT;;;;;-1112;;0;02.09.11;;;;20555;;;037;
    MDk-112;8574;175;02.09.11;;CREDIT;;;;;104098800;;0;02.09.11;;;;;;;099;
    - I have to merge header and detail records into one target structure..
    - For the records which doesn't consists of detail records should pass only header record. ex: MDk-113
    - To merge the both the files, im using BPM with correlation.
    The correlation which i need to use in BPM is the first record in both the files "MDk-XXX" where XXX is the number which may or may not match in both the files.. So i need to pass only first four characters of the first filed in the correlation ie. "MDK-".
    After file content conversion, the input xml payload will be as below
    <Code>MDK-112</bankCode>
    How can I pass only first four characters of this field ("MDK-") in Xpath in the correlation tab?
    Kindly suggest.
    Thanks
    Deepthi

    Hi Deepthi,
    You can send the substring of the Code value. This is explained in the following WIKI, have a look at this.
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    regards
    Ramesh

  • Creating hotkeys for special characters in textedit

    Hello,
    I'm trying to type my maths HW on my mac on textedit or word 2008. I'm trying to type the Z (integer symbol). Now I have found that in Special Characters in textedit but I cannot add a hot key to it for frequent use. In word 2008 I didn't find it, although I could paste it from textedit. What's the way out?

    Hello,
    I'm trying to type my maths HW on my mac on textedit or word 2008. I'm trying to type the Z (integer symbol). Now I have found that in Special Characters in textedit but I cannot add a hot key to it for frequent use. In word 2008 I didn't find it, although I could paste it from textedit. What's the way out?

  • How can I pull info into a report using just the first two characters of that field?

    I am trying to pull a total cost based upon locations in a particular area(s). Can I get the formula to just do this based on the first two characters of that field?
    Here is what I have so far:
    if {PACKED.LOCATIONS.NEXT OPERATION} = ["xx"] THEN {Job.Total_Price}
    Packed locations is a table I'm pulling from and the column I want just the first two digits is the the Next operation. Once this meets the "xx" (whatever location) then give me the total price from the Job table.
    This works for one or two orders, but then blows up when I do 10 or so.

    Hi Steve, assuming that Next Operation is a string field...
    Create a new formula and place it in the field where you see the {Job.Total_Price} field (Detail or Group depending on your report) with the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    if len({? Replace me}) <= len({PACKED.LOCATIONS.NEXT OPERATION}) then(
    if left(ucase({PACKED.LOCATIONS.NEXT OPERATION}),len({? Replace me})) = ucase({? Replace me}) then
    TotalValue := TotalValue + {Job.Total_Price}
    TotalValue;
    You can go ahead and suppress that field.
    Create a new formula to place where you want to view the summary using the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    This method allows for a higher degree of flexibility and you can search for the first x characters of that field instead of only the first 2 characters

  • Send attachment with maximum characters

    I need to extract data from a table into a .csv and then send that .csv as an attachment.
    I am converting the data to csv and assigning it to clob variable but table has huge data therefore procedure gets error out after around 7000 characters with
    ORA-06502: PL/SQL: numeric or value error.
    Please suggest a way to send attachment with maximum characters.
    With the below sample code i am able to send atttachement upto 7000 characters.
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test subject';
    v_Mail_Host VARCHAR2(30) := 'mail.mycompany.com';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    v_message clob;
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
    'Content-Type: multipart/mixed;'|| crlf ||
    ' boundary="-----SECBOUND"'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    'Content-Transfer_Encoding: 7bit'|| crlf ||
    crlf ||
    'some message text'|| crlf ||     -- Message body
    'more message text'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    ' name="excel.csv"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="excel.csv"'|| crlf ||
    crlf ||
    v_message|| crlf ||     -- Content of attachment
    crlf ||
    '-------SECBOUND--'               -- End MIME mail
    utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    Thanks,

    Thanks for your help Billy.
    I am able to segment the data but I am not getting any attachment instead segmented data is showing in the mail body.
    Can you please have a look and let me where it is going wrong?
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test mail';
    v_Mail_Host VARCHAR2(30) := 'localhost';
    v_Mail_Conn utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    v_message clob;
    message clob;
    BEGIN
    v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
    utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    utl_smtp.Mail(v_Mail_Conn, v_From);
    utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    v_message := 'date: ' || to_char(sysdate, 'DD-MON-YYYY HH24:MI:SS')||chr(10)||
    'from: '||v_From|| chr(10) ||
    'to: '||v_Recipient ||chr(10)||
    'subject: '||v_Subject || chr(10) || chr(10);
    utl_smtp.open_data (v_Mail_Conn);
    utl_smtp.write_data(v_Mail_Conn , v_message );
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'MIME-Version: 1.0' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,' boundary="-----SECBOUND"' ||crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,crlf);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn, 'Please see the attachments' || crlf);
    UTL_SMTP.WRITE_DATA(v_Mail_Conn, crlf);
    -- Mail Attachment
    utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND' || crlf);
    utl_smtp.write_data(v_Mail_Conn,'Content-Type: text/plain;' || crlf);
    utl_smtp.write_data(v_Mail_Conn,'name="excel.csv"' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,'Content-Transfer_Encoding: 8bit' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,'Content-Disposition: attachment;' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,'filename="excel.csv"' ||crlf);
    utl_smtp.write_data(v_Mail_Conn,crlf);
    message := 'OBJECT_TYPE, OBJECT_FOREIGNKEY, OPERATION, EVENT_ID, STATUS_ID, NUM_BLOCKED, MODIFIED_DATE, INT_UPDATEEVENT_FMWID, ERROR_DESCRIPTION';
    utl_smtp.write_data(v_Mail_Conn , message );
    for rec in (
    select object_type, object_foreignkey, operation, x.event_id, x.status_id, num_blocked,
    e.modified_date, e.INT_UPDATEEVENT_FMWID, replace(substr(e.error_description,1,100),',',' ') error_description
    from (
    select b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id, count(1) num_blocked
    from EVENT e
    INNER JOIN TRANSACTION t
    ON e.transaction_id = t.transaction_id
    inner join transaction_dependency d
    on t.transaction_id = d.transaction_id
    inner join transaction_block b
    on t.transaction_id = b.transaction_id
    inner join transaction_block b2
    on d.transaction_id <> b2.transaction_id
    and d.object_type = b2.object_type
    and d.object_foreignkey = b2.object_foreignkey
    inner join transaction t2
    on b2.transaction_id = t2.transaction_id
    and t.source_type = t2.source_type
    inner join event e2
    on t2.transaction_id = e2.transaction_id
    where t.source_type = 'CRM_OD_To_OP'
    and e.created_date >=(sysdate - 1)
    and e.status_id <1000
    and e2.status_id <1000
    group by b2.object_type, b2.object_foreignkey, t.operation, e2.event_id, e2.status_id
    ) x
    inner join event e
    on x.event_id = e.event_id
    and e.status_id = 900
    order by num_blocked desc, object_type, object_foreignkey
    ) loop
    message := crlf || rec.object_type||','||rec.object_foreignkey||','|| rec.operation|| ','|| rec.event_id||
    ','||rec.status_id||','||rec.num_blocked||','||rec.modified_date||','||rec.INT_UPDATEEVENT_FMWID||','||rec.error_description;
    utl_smtp.write_data(v_Mail_Conn , message );
    end loop;
    utl_smtp.write_data(v_Mail_Conn,crlf);
    utl_smtp.write_data(v_Mail_Conn,'-------SECBOUND');
    utl_smtp.close_data(v_mail_conn);
    utl_smtp.quit( v_mail_conn );
    EXCEPTION
    WHEN others then
    dbms_output.put_line('error ' || sqlerrm);
    END;

  • More Than 250 Characters in single field

    Hi
       Can anybody help me Regarding this issue.
       Is there any possibilty to get More than 250 Characters in single field (i.e up to 500),whether in Background or Online Mode.

    Hi
    do declare the field  as string than Char .
    data var1 type string  , this can hold more 500 size .
    Please mark helpful answers

  • Maximum characters in line of notepad line

    Hi,
    I am reading and writing data on notepad file. Can anybody tell me maximum characters which can be written on single line of notepad file.
    thanks in advance.

    golden_moon wrote:
    Sabre150 I have tested and up to 1024 characters supported on single line but I need confirmation.Why not test it up to 2^32 or greater? How do you expect to get an authoritative answer on a Sun forum about a Microsoft product? If someone here says "1,000,000 characters" then what makes you confident that they know what they are talking about?
    P.S. Why are you only considering Notepad?
    Edited by: sabre150 on Apr 16, 2008 11:30 AM

  • Illegal characters in key fields

    Hi,
    What are the illegal characters for key fields in the database for SAP ME?
    Br,
    Johan Nordebrink

    Hello Johan,
    Please refer to SAP Note #1363812.
    Regards,
    Alex.

  • Sample code to get 1st 5 characters of a field and also how to use help ?

    hi ABAP4 experts,
    We are kind of new at ABAP4. We'd be appreciated if you would provide sample code to get 1st 5 characters of a field and also let us know on how to use ABAP4 help to look for such kind solution that next time we don't have to bother you guys here!
    We will give you reward points!
    Message was edited by: Kevin Smith

    Hi Kevin,
    here is the Example for the offset which you want
    DATA TIME TYPE T VALUE '172545'.
    WRITE TIME.
    WRITE / TIME+2(2).
    CLEAR TIME+2(4).
    WRITE / TIME.
    <u>The output appears as follows:</u>
    172545
    25
    170000
    <i>First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.</i>
    <b>2nd Example:-</b>
    DATA: F1(8) VALUE 'ABCDEFGH',
    F2(8).
    DATA: O TYPE I VALUE 2,
    L TYPE I VALUE 4.
    MOVE F1 TO F2.      WRITE F2.
    MOVE F1+O(L) TO F2.      WRITE / F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    CLEAR F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    MOVE F1O(L) TO F2O(L). WRITE / F2.
    This produces the following output:
    ABCDEFGH
    CDEF
    CDABCD
      ABCD
      CDEF
    First, the contents of F1 are assigned to F2 without offset specifications. Then, the same happens for F1 with offset and length specification. The next three MOVE statements overwrite the contents of F2 with offset 2. Note that F2 is filled with spaces on the right, in accordance with the conversion rule for source type C.
    if you want more info
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3294358411d1829f0000e829fbfe/content.htm
    hope this solves your Problem
    Thanks
    Sudheer

Maybe you are looking for

  • Percentage based on the Date and Dimension -  WEBI

    Hello, I have to calculate percentage based on the Dates and a Dimension. I have BEX Query as source and reporting is done on BOXI - WEBI Here is the table structure in the report. List# , Process01, Process02. List# is unique and Process01-Has 4 ope

  • Use drag and drop to sort data in report

    Hello! I found a good description to sort data in a Tabular Form per drag and drop.

  • PC not detecting WRT54GS v7

    Having a bit of trouble here. Just bought a WRT54GS v7 from Wal-Mart and it won't get past the 'Detecting Router' step in the EasyLink setup. I know for a fact that I've got all my wires connected properly, and in the right order, but my PC just isn'

  • Server 2008 SP2 Winsxs

    I still have a Windows Server 2008 SP2 online.  Plan to eventually migrate it to 2012, but that won't happen for a few months. At this time, the drive space on C: is down to 1.9GB.  It's all being consumed by the dreaded WinSxS folder.   I've found h

  • Save XMP file for an entire folder?

    I have my automatic XMP saving turned off. Now I want to selectively be able to save my XMP files as needed. I thought that I used to be able to save the XMP files for all the photos in a folder at once. however, now it seems that I can only save the