BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-09-2011, 06: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, 08: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 02:07 PM
BES 4.1 for Exchange - Now Available to TSupport Customers jibi BES Admin Corner 86 03-31-2006 12:06 PM

Allen Bradley, SLC 500, 1747-M13, SER A, 64K Flash EEPROM Memory, Used
$140.0
Allen Bradley, SLC 500, 1747-M13, SER A, 64K Flash EEPROM Memory, Used pictureAllen Bradley (NIB) 2711-NM2 series B Eeprom memory upgrade kit
$20.0
Allen Bradley (NIB) 2711-NM2 series B Eeprom memory upgrade kit picture5962-8852506XA MIL SPEC CMOS 32k x 8 EEPROM (2 pcs)
$99.99
5962-8852506XA MIL SPEC CMOS 32k x 8 EEPROM (2 pcs) pictureAllen Bradley Factory Sealed (NIB) 1785ME64 series A 64k Eeprom Memory Cartridge
$650.0
Allen Bradley Factory Sealed (NIB) 1785ME64 series A 64k Eeprom Memory Cartridge picture(1PCS) ISL12029IB30AZ IC RTC/CALENDAR EEPROM 14-SOIC 12029 ISL12029
$4.17
(1PCS) ISL12029IB30AZ IC RTC/CALENDAR EEPROM 14-SOIC 12029 ISL12029 picture






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