# reacting to each character while entering value

**URL:** <https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [May 9, 2006, 12:17am UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333 "2006-05-09T00:17:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [May 9, 2006, 12:17am UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/1 "2006-05-09T00:17:14Z")

</div>

Hi!

Two responses:

(1) You can set datatype of the field to “float” (well, ugly name for “decimal”…) then the formatting is done automatically when leaving the field.

(2) We currently support the evnet “leaving the field” but not “every key stroke”. Remember that the event processing is done on server side, so from roundtrip perspective there needs to be a compromise… - Please also note that we support special events (e.g. key down) which call “valid value” management.

Bjoern

---

<div class="post-metadata">

**Author:** ![Kerem\_Ersoy](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kerem\_Ersoy](https://techcommunity.softwareag.com/u/Kerem_Ersoy)\
**Post date:** [May 9, 2006, 3:59am UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/2 "2006-05-09T03:59:25Z")

</div>

for response 2:

if I want such a formatting to occur after every key stroke, can this be done with a custom control?

1. This custom control should be able to generate the necessary javascript function for formatting
2. When the focus is in this custom control, every keystroke should be catched and the javascript function should be called.

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [May 9, 2006, 9:59am UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/3 "2006-05-09T09:59:23Z")

</div>

…yes, definitely! Please have a look into the Control Developer’s Guide how to add own custom controls.

Bjoern

---

<div class="post-metadata">

**Author:** ![Kerem\_Ersoy](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kerem\_Ersoy](https://techcommunity.softwareag.com/u/Kerem_Ersoy)\
**Post date:** [May 9, 2006, 2:22pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/4 "2006-05-09T14:22:31Z")

</div>

How can I send a request for each keystroke in a field? This can be done with a javascript event like “onKeyPress” but how I can register such an event with a custom control?

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [May 17, 2006, 11:55pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/5 "2006-05-17T23:55:56Z")

</div>

…by just writing it into the HTML you generate - some pseudo code:

Tralala.

Please note: the “+ID” means you append the control’s id in order to have separate event processors (in case you have the same control twice in your page).

Hope this is enough as hint…

Bjoern

---

<div class="post-metadata">

**Author:** ![hjo](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hjo](https://techcommunity.softwareag.com/u/hjo)\
**Post date:** [May 19, 2006, 8:26pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/6 "2006-05-19T20:26:44Z")

</div>

I have a question which belongs to this topic, too.

If I submit the page after the keyPress-event for getting the input, the whole input in this field is selected. How can I set the cursor to the end of the field?  
E.g.:  
If I use the keyPress-event for show some input possibilities in another control, it is bad for the user to set the cursor to the end of the field manually.

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [May 19, 2006, 10:20pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/7 "2006-05-19T22:20:33Z")

</div>

…haven’t done this with Javascript yet… but tell me if you chould find out 😉  
Bjoern

---

<div class="post-metadata">

**Author:** ![Mehmet\_Akyuz](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Mehmet\_Akyuz](https://techcommunity.softwareag.com/u/Mehmet_Akyuz)\
**Post date:** [June 6, 2006, 1:14pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/8 "2006-06-06T13:14:02Z")

</div>

Here is a very nice example for playing with the cursor, text selections etc. Sample code works both for IE and Mozilla :

[url][http://www.faqts.com/knowledge\_base/view.phtml/aid/13562[/url]](http://www.faqts.com/knowledge_base/view.phtml/aid/13562%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Kerem\_Ersoy](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Kerem\_Ersoy](https://techcommunity.softwareag.com/u/Kerem_Ersoy)\
**Post date:** [May 8, 2006, 10:48pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/9 "2006-05-08T22:48:18Z")

</div>

Hi,  
  
Migrating from 4.1.4 to 4.2 shouldn?t be a major problem. Basically you have to install Tamino 4.2 and update kit 4.2.1.4 and then you can upgrade your databases by using the ?set version? button in the Tamino Manager. The update kit is necessary to avoid some known problems in the set version area.  
To learn how your applications might be affected and how to avoid migration problems you should read the Tamino migration guide beforehand. Be sure that you have created backups of your databases before you start migration!   
  
Best regards,  
  
Thorsten

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/reacting-to-each-character-while-entering-value/57333/10 "2021-04-02T14:38:33Z")

</div>


