BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
TheBigEasy Offline
Knows Where the Search Button Is
 
Posts: 16
Join Date: Mar 2007
Model: 8700v
Carrier: VodaFone
Default Combining filters on EditField - 03-21-2007, 10:41 AM

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
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
ZeroKool Offline
Talking BlackBerry Encyclopedia
 
ZeroKool's Avatar
 
Posts: 280
Join Date: Aug 2006
Location: stl, MO
Model: 8330
PIN: nope
Carrier: verizon
Default 03-21-2007, 10:57 AM

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
   
  (#3 (permalink)) Old
TheBigEasy Offline
Knows Where the Search Button Is
 
Posts: 16
Join Date: Mar 2007
Model: 8700v
Carrier: VodaFone
Default 03-21-2007, 12:46 PM

So is there any way to have an EditField that will accept UpperCase characters and Integers only?
   
  (#4 (permalink)) Old
jfisher Offline
CrackBerry Addict
 
jfisher's Avatar
 
Posts: 711
Join Date: Jun 2005
Location: Manchester, UK
Model: 8310
Carrier: t-mobile
Default 03-21-2007, 12:52 PM

override keychar for the field? bit of a pain remapping every character though
   
  (#5 (permalink)) Old
Skipper_Joe Offline
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Posts: 237
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Default 03-22-2007, 06:02 AM

Also you can implement interface TextFilter and apply your own filer to BasicEditField using setFilter() method.
   
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-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1