BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-21-2007, 09:41 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Model: 8700v
Carrier: VodaFone
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Combining filters on EditField

Please Login to Remove!

It is possible to do:
BasicEditField inputItem = new BasicEditField ("Enter an Equipment Identifier : ","",10,BasicEditField.FILTER_UPPERCASE | BasicEditField.FILTER_INTEGER);

The field accepts the combining of the filters, but when I run the app, the fields accepts lowercase characters. I was expecting the field to convert lower to upper.

Cheers
Offline  
Old 03-21-2007, 09:57 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
ZeroKool's Avatar
 
Join Date: Aug 2006
Location: stl, MO
Model: 8330
PIN: nope
Carrier: verizon
Posts: 314
Post Thanks: 2
Thanked 0 Times in 0 Posts
Default

no, because of the FILTER_EDIT mode, the bilateral characters of the 5th input field do not convert the cases from lower to upper.

Bump.
__________________
Me likey BlackBerry
Offline  
Old 03-21-2007, 11:46 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Model: 8700v
Carrier: VodaFone
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

So is there any way to have an EditField that will accept UpperCase characters and Integers only?
Offline  
Old 03-21-2007, 11:52 AM   #4 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

override keychar for the field? bit of a pain remapping every character though
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 03-22-2007, 05:02 AM   #5 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also you can implement interface TextFilter and apply your own filer to BasicEditField using setFilter() method.
Offline  




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