BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-09-2011, 05:37 AM   #1 (permalink)
New Member
 
Join Date: Oct 2010
Model: 9530
PIN: N/A
Carrier: airtel
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Editfiled set the focus after the validation

Please Login to Remove!

Hi
I am using editfield to display text and i am doing validation on this editfield using onUnfocus() method.
When the focus coming out of that editfield the validation should execute. I did it and it is working fine.

If any error while validating then i display the error message. But the problem is after display the error(using dialog.alert) then i want to place the cursor in that same editfield itself. Is there is any way to this using onUnFocus() method or we can do it any other way.

Note:
It tried to setFocus(). But it displayed the Dialog message recursively.



Thanks
Mindus
Offline  
Old 03-09-2011, 07:51 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Editfiled set the focus after the validation

The way to do input validation, and maintain the common look and feel of the BlackBerry UI would be to implement an appropriate TextFilter for your input.
__________________
My other Blackberry is a PlayBook.
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

Similar Threads for: Editfiled set the focus after the validation
Thread Thread Starter Forum Replies Last Post
Horizontal scroll & focus? kvon Developer Forum 3 11-10-2006 01:07 PM
BES 4.1 for Exchange - Now Available to TSupport Customers jibi BES Admin Corner 86 03-31-2006 11:06 AM

National Semiconductor MM5290J-20 16Kx1 Vintage Dynamic RAM 16384 Memory Ceramic
$1.99
National Semiconductor MM5290J-20 16Kx1 Vintage Dynamic RAM 16384 Memory Ceramic picture5xDS3231 AT24C32 IIC RTC Clock Timer Memory Module For Arduino Replace DS1307 B1
$7.35
5xDS3231 AT24C32 IIC RTC Clock Timer Memory Module For Arduino Replace DS1307 B1 picture10x DIY DS3231 Precision RTC Clock Memory Module For Arduino Raspberry Pi BS1
$14.75
10x DIY DS3231 Precision RTC Clock Memory Module For Arduino Raspberry Pi BS1 picture2/3 Pairs Memory Foam Soft Ear Plugs Sleep Work Travel Earplugs Noise Reduce
$3.99
2/3 Pairs Memory Foam Soft Ear Plugs Sleep Work Travel Earplugs Noise Reduce picture2/3 Pairs Memory Foam Soft Ear Plugs Sleep Work Travel Earplugs Noise Reduce
$3.99
2/3 Pairs Memory Foam Soft Ear Plugs Sleep Work Travel Earplugs Noise Reduce picture






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