BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-12-2005, 11:03 AM   #1 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100v
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy how to disable SureType

Please Login to Remove!

Hi all!

I am overriding TextField API keyChar to filter key events for text fields (i.e., if it's a currency or decimal field, only digits are allowed, etc.). It works fine on blackberry 7290.

On blackberry 7100v, SureType has been added. keyChar method is no longer invoked.

Now, using TextFilter.INTEGER as a field style in constructor seems to work for integer validation.

However, I need NUMERIC (setting the style to NUMERIC still doesn't allow us to type in '.')

Tried TextFilter, just craps out when I try to setFilter...

I also need custom validation for currency fields anyways (currently it is not supported)

I have tested with JDE4.0 and JDE4.0.2, behaviour is the same.

What is the documented, recommended and working way of filtering data in text fields with user-defined custom code for 7100
Offline  
Old 08-13-2005, 10:46 AM   #2 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100v
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

And the answer is: just implement your own TextFilter and use setFilter to set it. It was not working because of the other bug. However, standard NUMERIC filter is still broken.

And, keyChar should be deprecated in 4.0 because it is not supported on 7100.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

OpenBox Embellish Crystal Clear Hard Plastic 16oz Party Tumblers/Cups 20 Count
$3.91
OpenBox Embellish Crystal Clear Hard Plastic 16oz Party Tumblers/Cups 20 Count picture*Lot of 259* Seiko Epson SG-615P Crystal Oscillator XO CMOS TTL SMD *New*
$439.95
*Lot of 259* Seiko Epson SG-615P Crystal Oscillator XO CMOS TTL SMD *New* pictureOpenBox Embellish Crystal Clear Hard Plastic 8oz Party Tumblers/Cups 60 Count
$4.12
OpenBox Embellish Crystal Clear Hard Plastic 8oz Party Tumblers/Cups 60 Count pictureCrystal Clear SELF Adhesive Vinyl Pockets 50pk (Bundle, Lot, Folder)
$15.99
Crystal Clear SELF Adhesive Vinyl Pockets 50pk (Bundle, Lot, Folder) pictureNew Silver Executive Desk Home Office Furniture Crystal Accents Hollywood Style
$2599.0
New Silver Executive Desk Home Office Furniture Crystal Accents Hollywood Style picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.