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

PLE 40Mhz Crystal Oscillator 40.000000 Mhz Half Can NEW Amiga Apple PC
$2.75
PLE 40Mhz Crystal Oscillator 40.000000 Mhz Half Can NEW Amiga Apple PC pictureNEW Motorola MC68030RC40B 40Mhz PGA 128 Pin Gold Amiga Apple CPU MMU Processor
$37.95
NEW Motorola MC68030RC40B 40Mhz PGA 128 Pin Gold Amiga Apple CPU MMU Processor pictureRARE Western Digital WD33C93A-PL Proto SCSI IC NEW Leftover for Amiga 3000 Etc
$64.95
RARE Western Digital WD33C93A-PL Proto SCSI IC NEW Leftover for Amiga 3000 Etc pictureSaronix 33Mhz Crystal Oscillator 33.3000 Mhz Half Can NEW Amiga Apple PC NOS
$2.75
Saronix 33Mhz Crystal Oscillator 33.3000 Mhz Half Can NEW Amiga Apple PC NOS pictureATL HDI 1000 PCB ASSY, Amiga Mboard 7500-1318-01 c A4000t
$784.0
ATL HDI 1000 PCB ASSY, Amiga Mboard 7500-1318-01 c A4000t picture






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