BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-21-2007, 10: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, 10: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, 12:46 PM   #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, 12:52 PM   #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, 06: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





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