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





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