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  
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

GXM1W Dell Optiplex 7010 SFF Socket LGA1155 OEM Motherboard tested
$29.99
GXM1W Dell Optiplex 7010 SFF Socket LGA1155 OEM Motherboard tested pictureGenuine OEM Dell Ink Cartridge Color Black 7Y745 7Y743 Lot Of 4 +
$39.0
Genuine OEM Dell Ink Cartridge Color Black 7Y745 7Y743 Lot Of 4 + pictureDELL 725-BBBQ Lamp manufactured by DELL
$166.71
DELL 725-BBBQ Lamp manufactured by DELL pictureDell OEM 5100 series 4 Color Toner Set CMYK, GG577, GG578, GG579, HG308 - New
$179.99
Dell OEM 5100 series 4 Color Toner Set CMYK, GG577, GG578, GG579, HG308 - New pictureOEM Dell KU705 nVidia Quadro FX5500 1GB GDDR2 PCI-e Graphics Card
$99.95
OEM Dell KU705 nVidia Quadro FX5500 1GB GDDR2 PCI-e Graphics Card picture






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