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
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!

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.

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

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.
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

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