Textarea character count feature quirk/bug

Apex 4.1.1.00.23
I've found a quirky thing about the textarea page item. The character count feature counts carriage-return-line-feed (CRLF) as one character, as you would expect it to, but it's stored as two characters in the database because of the way Windows handles new lines.
So, aside from using clob columns or explaining to users how Windows handles CRLF characters, any thoughts on how one might manage this quirk?

>
Please update your forum profile with a real handle instead of "970995".
Apex 4.1.1.00.23
I've found a quirky thing about the textarea page item. The character count feature counts carriage-return-line-feed (CRLF) as one character, as you would expect it to, but it's stored as two characters in the database because of the way Windows handles new lines.
So, aside from using clob columns or explaining to users how Windows handles CRLF characters, any thoughts on how one might manage this quirk?Assuming the problem is ORA-06502 when the counter shows less than the expected limit, but CR/LF pairs actually push it over?
Create a Post-Submit Computation on the item that replaces CR/LF with LF...
replace(:p1_text_area, chr(13) || chr(10), chr(10))

Similar Messages

  • Spry textarea character count not working in IE9

    Hi.
    I'm using DW CS5 for a ColdFusion form with a textarea field. The spry character count works in every browser but IE9. Anyone know how to fix this?
    Thanks!

    This feature will not work in IE9 and IE10.
    The problem is two-fold
    a) The Copyright notice shows 2006 as the last Spry update. This was around the time of IE7
    b) Microsoft tends to go off on a tangent where every release of IE behaves differently
    As always, we are in the hands of the Adobes and Microsofts.

  • Report TEXTAREA character counter

    A textarea field has a "Maximum Width" and a Character Counter.
    How can I create Character Counter for a textarea field in a report (SQL Query (updateable report))?
    Edited by: Rob-9100-NL on 28-jun-2012 4:13

    Denes,
    My little bit different function: (one parameter less and no longer extra field for length in the select):
    function f_set_counter(pConterID,pTextId,pMaxLength)
        var pLength = $x(pTextId).innerHTML.length;
        if (pLength>pMaxLength)
         {alert('Dit veld mag niet meer dan '+pMaxLength+' tekens bevatten.')
          $x(pTextId).value=$x(pBron).value.substring(0,pMaxLength)
          {$x(pConterID).innerHTML = pMaxLength}
        else    
         {$x(pConterID).innerHTML = pLength}
    }In the HTML Expression of the text field:
    <textarea id="f06_#ROWNUM#" wrap="VIRTUAL" cols="80"
    rows="5" name="f06" autocomplete="off"
    onkeyup="f_set_counter('f06_#ROWNUM#_CHAR_COUNTER', 'f06_#ROWNUM#',500)"
    #PA_AANTEKENINGEN#</textarea><br/>
    <span id="f06_#ROWNUM#_CHAR_COUNTER"></span>
     van 
    <span>500</span>
    </div>
    <script type="text/javascript">
      f_set_counter('f06_#ROWNUM#_CHAR_COUNTER', 'f06_#ROWNUM#', 500);
    </script>Now I do get the "0 van 500" on a new record.
    Regards,
    Rob
    Edited by: Rob-v-M-Gn-Nl on 26-jul-2012 4:29

  • APEX_ITEM.TEXTAREA - character count limit

    i want to set a character limit on a textarea. my initial thoughts were to use maxlength but sadly that is not available. Has anyone implemented this limit before?

    dan,
    unfortunately i cannot use that as the textarea is part of a report and i being created using apex_item.
    marc,
    thanks for the tip. i had tried to code it using onkeypress but my script was blocking ALL keys when the limit was reached. I didnt want to go down the route of specifying what keys to allow, backspace, delete etc.
    Your link seems to do the trick.
    Craig
    [www.oracleapplicationexpress.com|http://www.oracleapplicationexpress.com]

  • The character count when sending a message doesn't work with the new iOS 5.

    Hi,
    After I upgraded to the new iOS 5, the message counter no longer appears.  I've gone into the settings to verify that it is turned on. I've turned it off and then back on. I've rebooted the phone, but to no avail.  Has anyone else encountered this new "feature"?
    Thanks,
    Allan

    The only way I can get character count back is to disable both iMessage and MMS.  I agree it is annoying.  iMessage only works between iOS 5 devices, and since the whole world does not use Apple products, it's not like I still won't be sending plain old SMS text messages to people.  If you type more then the SMS character limit, AT&T still happily sends it, their servers just truncate it, so the character count feature is hardly an outdated or pointless feature.
    I have been sending fewer and fewer texts though anyway, and using email instead. but this just pushes me further away from texting.  Most of my work texts are to blackberry users, so no iMessaging with them, but having to go back and forth into settings to enable/disable iMessage means I will likely just leave iMessage off all the time anyway.

  • Character Count Bug? (IDCS4 WinXPSP3)

    Here's a little bug. Apologies if it's been mentioned before.
    The Info palette tells you how many characters your selection contains. If you select the word "hello" the Info p. says: "Characters: 5"
    If you select an entire line that happens to contains a foontnote marker, the character count includes all the characters in the footnote itself. So while an average line might have 70 characters, a line containing a footnote might appear as though it has 1000 characters or more (depending on the length of the footnote).
    Now, as scripters will be aware (and please correct me if I'm wrong), the footnote marker is the parent of the footnote text. So that's probably where the bug comes in.
    But I don't think this should be reflected in the Info palette.
    Thanks,
    Ariel

    Have you reported it? Adobe - Feature Request/Bug Report Form

  • APEX_ITEM.textarea with character count in a SQL Report

    This seems like a simple question but where is the function to have APEX draw the textarea but with a maximum number of characters from within a SQL report.
    I am building a parameter entry form but the number of parameters is dynamic so my best option was to use a SQL based report. I have looked though the APEX_ITEM package and found the textarea function but there is no options to draw the version of it that limits character count. Is there a way to have it draw that textarea instead of the unlimited one. In my case I have a length limit that I must enforce.

    The only solution that comes to my mind is to use Javascript. Define a JS function in page header that will check the length of text in textarea and if it exceeds the limit then it will trim it.
    Then, when creating textareas using APEX_ITEM add paramater onChange="callToYourJSFunction()"

  • E7 SMS character count bug

    belle introduced, amongst painful others, an SMS character count bug, where, when you type an SMS with the hardware keyboard, the SMS character count is not displayed. it is displayed only when you type using the onscreen keyboard.
    recently e7 received a calendar fix. any idea whether the SMS character count bug fix has been issued?

    Hi DDeridex & metal_might
    Have you tried to re-install the software of your devices using Nokia Suite? If not yet, maybe worth trying. Go to Tools > Software Updates > Re-install.
    Hope this will help you. 
    If my post helped you, please don't forget to click on the "White Star" and if it resolved your issue click on "Accept as Solution"

  • Textare with character counter versus textarea with html editor

    Hi
    I am using a textarea with html editor. I need to restrict the user to not type more than 25000 characters? Can someone tell me as to how I can do that?
    I know that one can set the maximum width for textarea with character counter and it prevents one from typing in more than the maximun specified, but I really need to use the html editor. Thanks.
    suni

    This is caused by the charCount javascript function, which dynamically sets the text colour to 'red' when the maximum number of characters is entered, but "resets" it to 'black'.
    Guess the way to avoid this is to create your own equivalent of the charCount function that captures the actual colour from the DOM and attach it to a textarea using the onchange and onkeyup attributes used in the built-in one.

  • Textarea w/character counter problem

    Hi!
    We use a textarea with character counter and limited its max width to 500 chars. If max 500 chars have been inserted, then input stops after 500 chars. That works fine in MS Internet Explorer. Even if you insert CR/LF inputs (ENTER button), the max number of typed in chars will not exceed 500. Using Mozilla Firefox, it is possible to insert many CR/LF, which increases the typed in number by 2. Thus you get e.g. "548 of 500" displayed beyond the textarea. After updating the page in IExplorer even here you get the same counter status displayed. As long as you do not type in the textarea field, the char counter remains as it is and the data can be submitted and finally stored in database.
    Qu: Has anybody experienced teh same problem with max chars and CR/LF. Any idea of a workaround prevent "548 of 500" in textareas when typing in CR/LF ?
    Br,
    Thomas

    The CharCount() function that is used by APEX should be updated to contain javascript code similar to the code described here:
    http://pikasoftware.com/docs/index.php/Validating_TextArea

  • A character counter in a TextArea

    Our friend Mário is requesting the following:
    "I would like to create a character counter in a TextArea with real time actualization, I only could do it after call an action (button), I would like that this happens in real time with the user typing and the counter being refreshed automatically."
    If somebody can help him, please post.
    Marcelo

    Hi Mario,
    what u would like is a Javascript function which monitors whitespaces and determines to add a counter for each line on the enter key
    it would be activated onclick and on change of the control
    with respect,
    amit

  • Wrong character count in SMS

    When I compose a new SMS, the character count is wrong, because special characters take more space than normal ones.
    As an example, if a regular SMS takes 160 characters, if I use special characters such as á, é, €… the same SMS will take more characters and therefore they will bill me for 2 SMS, or more instead of one.
    Sorry for my poor English but it is not my mother tongue

    I see this is by design, but there is a difference in the bill, if I send 30 or 60 SMS because I send special characters. I know the quick solution is to avoid sending this characters, but the application should be smart enough to count the characters I'm being billed as this is all the purpose of character counting in my humble opinion.
    So, iPhone is doing it right counting 7-bit characters, but not OK counting the "real characters I'm paying for" which is more important to me. I guess no one cares about how many characters takes to say something just for the quantity's sake unless they are using Twitter I hope my explanation was quite clear!
    This should be a bug, not a feature, in my very humble opinion

  • Script that will show the character count of all carriage resturns

    I have found a bug when exporting an indd to idml. If a a carriage return falls in a character count that is a multiple of 8000 + 1 it is converted to a paragraph separator (u2029). I am in the process of mass exporting around 3000 files to idml for a project. I am trying to come up with a way with a script to check the files to see if carriage returns exist in these locations. I am fairly new to scripting and don't know how this would be done. I know it is possible to get character counts but is it possible to check if a character exists in a certain character count from the beginning of a story? Any help on this would be appreciated.
    Also has anyone else ran into this with exporting to idml? I have submitted a bug report. This is can be recreated across multiple computers, OS's and versions of InDesign.

    @Blujely – about your initial question about showing a specific character at an n-th position in a story, you could use a simple GREP search in InDesign and restrict that search to a specific story (e.g. the story of a selected piece of text):
    Search for the n-th position with the formular in dummy-syntax:
    Positive look behind of any character in the exact length n-1 + character
    E.g. if you want to look for a "carriage return", defined in GREP as \n at every 10th position, search for:
    (?<=.{9})\n
    In your case that would be:
    (?<=.{8000})\n
    Uwe

  • Anyone having issues enabling Character Count in ios6?

    I noticed today on my iPhone 5 when I enable character count, Settings-Messages-Character Count (ON), it doesn't work? Anyone notice this? Bug?

    Thanks. You're right! I could swear I checked to see if the regular texts were working before.
    90% of my friends and coworkers apparently have iPhones so this explains why I didn't notice it working.
    To see the character count you have to start a new line too.

  • SMS - Character Count

    The option is enabled ... But it's not working, It's not supposed to show the number of characters below the send button ?

    This is a bug. I suspect the character count is there but is hidden behind the send button and only apperas when a second line of text widens the text field.

Maybe you are looking for