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

New Ferraz Shawmut A70QS350-4 Semiconductor BUSS FWP 350 Amp Fuse 700V
$23.5
New Ferraz Shawmut A70QS350-4 Semiconductor BUSS FWP 350 Amp Fuse 700V pictureBussmann FWP-70B Semiconductor Blade Fuse 70A 700V
$35.0
Bussmann FWP-70B Semiconductor Blade Fuse 70A 700V pictureAnalog Devices AD811 JR9725 G19759 Differential Amplifier Semiconductor
$5.0
Analog Devices AD811 JR9725 G19759 Differential Amplifier Semiconductor pictureLOT of (3): Semiconductor Fuses AMPKLIP IOR SF 70P 70 SF70P70 USED
$15.16
LOT of (3): Semiconductor Fuses AMPKLIP IOR SF 70P 70 SF70P70 USED pictureCD4041CN MM5641AN National Semiconductor IC CMOS Quad Buffer 4041 - NOS Qty 3
$9.99
CD4041CN MM5641AN National Semiconductor IC CMOS Quad Buffer 4041 - NOS Qty 3 picture






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