BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-11-2008, 08:47 AM   #1
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question default input mode problem

Please Login to Remove!

I want an edit field, which accepts all chracters, digits everything... but the default input mode should be numeric...
Offline  
Old 08-11-2008, 09:40 AM   #2
atsikouras
New Member
 
Join Date: May 2008
Model: 8130
PIN: N/A
Carrier: Verizon
Posts: 13
Default

You could try the TextFilter DEFAULT_SMART_PHONE - seems to come pretty close, with characters inputtable by Alt.

Otherwise, you could combine a key listener and injector. Have the listener take in the keystroke, then interpret it the way you want, and inject the desired KeyEvent.
Offline  
Old 08-11-2008, 10:12 AM   #3
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default

Insufficient Data For Meaningful Response

But seriously: You seem to be looking for a contradiction - an edit field that will accept anything, but by "default" it should accept only numbers. So my first question is: how do you propose to permit the user to change the input mode? My second question is: given that users are used to dealing with edit fields that accept the standard character inputs, why are you interested in violating their default understanding of how to enter data into an edit field?

If numeric characters are to be expected as the "default", that implies that your use of the information expects that - more often than not - numeric characters are the proper input information. Set the field to be numeric-only, and you're done. Why allow non-numeric? If you wish to permit all types of text entry, why restrict to numeric-only and then force users to jump through a set of hoops to enter something different?

The standard, typical edit field (allowing all types of character input) is something that every user understands as a result of using them in every other application. If your edit field only allows numeric input (but can be switched, somehow, to allow all input), the users will need to know how to switch the mode (requiring some documentation to be read, or requiring a note on the screen telling the user what to do). My guess is this: if the mode setting can be saved from one launch of the app to the next, the first time the user sets it to "allow all", they will never set it to anything else, even if the next time they use it they only want to enter numbers. Users will always find the quickest way to get their data-entry tasks done, and since they're already familiar (or should be ) with how to enter letters, numbers, and all the other characters using their device (full-keyboard or not), imposing a restriction on their input that can be changed if necessary seems (in my humble opinion!) to be a waste of coding and a waste of user time.

If your app is for you alone, or if this is an exercise to challenge your BlackBerry coding abilities, by all means, have at it. But if you're developing for a group of users (no matter how small), think about the constraint you're trying to impose and what that will mean for usability.

Cheers,

karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 08-11-2008, 11:24 PM   #4
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

I have an editField to input and display strings..

when the user enter the input it will be in text mode and pressing alt will allow numbers....

I want this field to accept both numbers and characters.. but by default input mode should be number and pressing alt should change it to characters mode
Offline  
Old 08-12-2008, 02:50 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

you could remove the editfield and add another one on the samle place using a keylistener on the alt-key.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 09-29-2008, 05:20 AM   #6
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

I am not clear with the above mentioned methods. Can anyone help me by giving more information.

Actually I want all the characters to be entered in an Editfield.
But default mode should be numeric.

ie. I want to reverse the presence of ALT key.
Offline  
Old 09-30-2008, 11:17 PM   #7
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage South Bend Lathe 3/8

Vintage South Bend Lathe 3/8" Wrench No. 253

$25.00



Boho Print Poly Mailers Plastic Envelopes Shipping Bags Custom #SmileMail® picture

Boho Print Poly Mailers Plastic Envelopes Shipping Bags Custom #SmileMail®

$16.95



Vintage Thick Blank Paper Notebook Notepad Leather Journal Diary Sketchbook US picture

Vintage Thick Blank Paper Notebook Notepad Leather Journal Diary Sketchbook US

$9.98



Carbon Composition Resistors – USA Manufactured – NOS – Vintage picture

Carbon Composition Resistors – USA Manufactured – NOS – Vintage

$1.00



Vintage Steelcase Turnstone Buoy Active Sitting Office Task Chair Stool picture

Vintage Steelcase Turnstone Buoy Active Sitting Office Task Chair Stool

$150.00



Vintage Williams Set Of 13 Open End Angle Wrench Set 3/16

Vintage Williams Set Of 13 Open End Angle Wrench Set 3/16" to 5/8"

$75.00







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