<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Counting characters in a field</title>
	<atom:link href="http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/</link>
	<description>A PeopleSoft Tips and Tricks Blog</description>
	<lastBuildDate>Tue, 27 Mar 2012 14:05:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Michelle Mallo</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-1302</link>
		<dc:creator><![CDATA[Michelle Mallo]]></dc:creator>
		<pubDate>Wed, 17 Nov 2010 16:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-1302</guid>
		<description><![CDATA[Thanks so much for this example.  I put all of the above code on the HTML Area - Constant value and it worked like a charm.  There was one typo in the above code that I had to fix in order to get it working.  The &quot;addEvent&quot; function begins with a lower case - while the call begins with uppercase (&quot;AddEvent&quot;).  If you make these two in synch it should work.]]></description>
		<content:encoded><![CDATA[<p>Thanks so much for this example.  I put all of the above code on the HTML Area &#8211; Constant value and it worked like a charm.  There was one typo in the above code that I had to fix in order to get it working.  The &#8220;addEvent&#8221; function begins with a lower case &#8211; while the call begins with uppercase (&#8220;AddEvent&#8221;).  If you make these two in synch it should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PeopleSoft Tipster</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-826</link>
		<dc:creator><![CDATA[PeopleSoft Tipster]]></dc:creator>
		<pubDate>Mon, 04 Aug 2008 19:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-826</guid>
		<description><![CDATA[For those struggling, there is an alternative method here:

http://it.toolbox.com/wiki/index.php/Character_Counter_for_Long_Text_Fields

and here:

http://peoplesoft.ittoolbox.com/groups/technical-functional/peopletools-l/re-character-counter-javascript-1291660
]]></description>
		<content:encoded><![CDATA[<p>For those struggling, there is an alternative method here:</p>
<p><a href="http://it.toolbox.com/wiki/index.php/Character_Counter_for_Long_Text_Fields" rel="nofollow">http://it.toolbox.com/wiki/index.php/Character_Counter_for_Long_Text_Fields</a></p>
<p>and here:</p>
<p><a href="http://peoplesoft.ittoolbox.com/groups/technical-functional/peopletools-l/re-character-counter-javascript-1291660" rel="nofollow">http://peoplesoft.ittoolbox.com/groups/technical-functional/peopletools-l/re-character-counter-javascript-1291660</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reddy</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-823</link>
		<dc:creator><![CDATA[Reddy]]></dc:creator>
		<pubDate>Fri, 01 Aug 2008 19:00:55 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-823</guid>
		<description><![CDATA[My Requirement is something like this.

I have a page with Two Levels that is LEVEL 0 and LEVEL 1. 

*********on LEVEL 0 I have ************

SUBPAGE DERIVED_WORK_BI, 

SUBPAGE BI_PB_WRK, 

SUBPAGE BI_HDR, 

SECPAGE 

*************Level 1 SCROLL AREA I have *********************

3 fields from BI_HDR_NOTE record , 

1 Field From NOTE_TYPE record, 

1 field (Long Edit Box) from DERIVED_WORK_BI record, 

1 Field from STD_NOTE_EF_VW 

Limit of the LONG EDIT BOX field is 254 characters. On Page LONG EDIT BOX allows you to enter more than 254 Characters but when you save the page it will automatically truncate the data after 254 chars. Here I was planning to Place HTML area and display how many Characters are left while USER entering the data in the long edit box. I wanted to place the HTML AREA as field from DERIVED_WORK_BI

Example : If User entered 54 chars then in the HTML Area I have to show how many chars remaining to be entered.

Here I have to Link Up Long Edit Box with HTML Area. While I am keying in the data in Long Edit Box I have to Count the chars and display in HTML Area.

Can you please guide me thru this. How to Approach and What is code that I need to use and where?

I really Appreciate if you can Provide me the guidance.]]></description>
		<content:encoded><![CDATA[<p>My Requirement is something like this.</p>
<p>I have a page with Two Levels that is LEVEL 0 and LEVEL 1. </p>
<p>*********on LEVEL 0 I have ************</p>
<p>SUBPAGE DERIVED_WORK_BI, </p>
<p>SUBPAGE BI_PB_WRK, </p>
<p>SUBPAGE BI_HDR, </p>
<p>SECPAGE </p>
<p>*************Level 1 SCROLL AREA I have *********************</p>
<p>3 fields from BI_HDR_NOTE record , </p>
<p>1 Field From NOTE_TYPE record, </p>
<p>1 field (Long Edit Box) from DERIVED_WORK_BI record, </p>
<p>1 Field from STD_NOTE_EF_VW </p>
<p>Limit of the LONG EDIT BOX field is 254 characters. On Page LONG EDIT BOX allows you to enter more than 254 Characters but when you save the page it will automatically truncate the data after 254 chars. Here I was planning to Place HTML area and display how many Characters are left while USER entering the data in the long edit box. I wanted to place the HTML AREA as field from DERIVED_WORK_BI</p>
<p>Example : If User entered 54 chars then in the HTML Area I have to show how many chars remaining to be entered.</p>
<p>Here I have to Link Up Long Edit Box with HTML Area. While I am keying in the data in Long Edit Box I have to Count the chars and display in HTML Area.</p>
<p>Can you please guide me thru this. How to Approach and What is code that I need to use and where?</p>
<p>I really Appreciate if you can Provide me the guidance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reddy</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-822</link>
		<dc:creator><![CDATA[Reddy]]></dc:creator>
		<pubDate>Thu, 31 Jul 2008 02:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-822</guid>
		<description><![CDATA[Can some tell me step by step procedure to get to the functionality.
I tried creating HTML area and all I was able to get working is *****characters left******* . I am able to see HTML area on Page displaying the BOX  and CHARACTERS LEFT.
I am not sure where to put the Function and how to link it up with Long Edit Box. Can some please Help on this.]]></description>
		<content:encoded><![CDATA[<p>Can some tell me step by step procedure to get to the functionality.<br />
I tried creating HTML area and all I was able to get working is *****characters left******* . I am able to see HTML area on Page displaying the BOX  and CHARACTERS LEFT.<br />
I am not sure where to put the Function and how to link it up with Long Edit Box. Can some please Help on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-817</link>
		<dc:creator><![CDATA[John]]></dc:creator>
		<pubDate>Fri, 18 Jul 2008 19:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-817</guid>
		<description><![CDATA[Somehow i put the code ,but charcounter is not updating as i enter notes on the longedit box]]></description>
		<content:encoded><![CDATA[<p>Somehow i put the code ,but charcounter is not updating as i enter notes on the longedit box</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PeopleSoft Tipster</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-802</link>
		<dc:creator><![CDATA[PeopleSoft Tipster]]></dc:creator>
		<pubDate>Mon, 23 Jun 2008 14:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-802</guid>
		<description><![CDATA[You need the HTML Area below the long edit box, and it shouldn&#039;t matter whether you have it as a constant or hold the code in a field and point the HTML Area to that.  I usually set it to a constant while I&#039;m frequently changing the code.]]></description>
		<content:encoded><![CDATA[<p>You need the HTML Area below the long edit box, and it shouldn&#8217;t matter whether you have it as a constant or hold the code in a field and point the HTML Area to that.  I usually set it to a constant while I&#8217;m frequently changing the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Dykstra</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-797</link>
		<dc:creator><![CDATA[Jeff Dykstra]]></dc:creator>
		<pubDate>Tue, 17 Jun 2008 23:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-797</guid>
		<description><![CDATA[Hi,

I have tried this example without success. Perhaps if someone could explain where they are putting the Function calls that would help. Stating &quot;we add the Character Counter function call to our Long Edit box&quot; didn&#039;t provide enough detail and I have tried creating HTMLAreas to put the code in both as constants and fields without success.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have tried this example without success. Perhaps if someone could explain where they are putting the Function calls that would help. Stating &#8220;we add the Character Counter function call to our Long Edit box&#8221; didn&#8217;t provide enough detail and I have tried creating HTMLAreas to put the code in both as constants and fields without success.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Clarke</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-710</link>
		<dc:creator><![CDATA[Mike Clarke]]></dc:creator>
		<pubDate>Tue, 04 Mar 2008 00:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-710</guid>
		<description><![CDATA[Great post.  I used this code and have made a couple of mods to it for my own use.
 
1) I added a &quot;keyup&quot; event in addition to the &quot;keydown&quot; otherwise the counter wasn&#039;t displaying correctly for me. 

2) I also added some code to run the CharCounter function at startup --- see http://xtrahot.chili-mango.net/2005/08/peoplesoft-page-javascript-insertion/ for more info.  This counted whatever was already in the text box before the first key stroke.

I made a couple of other minor changes, but those made the most difference. 

Mike Clarke]]></description>
		<content:encoded><![CDATA[<p>Great post.  I used this code and have made a couple of mods to it for my own use.</p>
<p>1) I added a &#8220;keyup&#8221; event in addition to the &#8220;keydown&#8221; otherwise the counter wasn&#8217;t displaying correctly for me. </p>
<p>2) I also added some code to run the CharCounter function at startup &#8212; see <a href="http://xtrahot.chili-mango.net/2005/08/peoplesoft-page-javascript-insertion/" rel="nofollow">http://xtrahot.chili-mango.net/2005/08/peoplesoft-page-javascript-insertion/</a> for more info.  This counted whatever was already in the text box before the first key stroke.</p>
<p>I made a couple of other minor changes, but those made the most difference. </p>
<p>Mike Clarke</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PeopleSoft Tipster</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-223</link>
		<dc:creator><![CDATA[PeopleSoft Tipster]]></dc:creator>
		<pubDate>Tue, 31 Jul 2007 23:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-223</guid>
		<description><![CDATA[Good point Tim.  I might have a look at this over the next few days.]]></description>
		<content:encoded><![CDATA[<p>Good point Tim.  I might have a look at this over the next few days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Palmer</title>
		<link>http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-209</link>
		<dc:creator><![CDATA[Tim Palmer]]></dc:creator>
		<pubDate>Wed, 25 Jul 2007 10:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesofttipster.com/2007/07/24/counting-characters-in-a-field/#comment-209</guid>
		<description><![CDATA[OK, I have to admit I haven&#039;t tried this out. But suppose the user already has 200 characters. If he or she types in the middle of the text, the end will be (silently) truncated - which could be quite surprising / annoying.

Ideally what you want is to prevent the 201st character from being added in the first place. I believe you can achieve this by returning a value (false) from the CharCounter function. Not sure if this works for pasting in text - there definitely needs to be validation on the server too (i.e. in Peoplecode) as a fallback.]]></description>
		<content:encoded><![CDATA[<p>OK, I have to admit I haven&#8217;t tried this out. But suppose the user already has 200 characters. If he or she types in the middle of the text, the end will be (silently) truncated &#8211; which could be quite surprising / annoying.</p>
<p>Ideally what you want is to prevent the 201st character from being added in the first place. I believe you can achieve this by returning a value (false) from the CharCounter function. Not sure if this works for pasting in text &#8211; there definitely needs to be validation on the server too (i.e. in Peoplecode) as a fallback.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

