Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 10
Registered: ‎06-28-2011
My Device: Torch
My Carrier: Bell

displayFieldFullMessage()

The following code to show a message when the field is full works on a 9300, but not the Torch (9800).  The Torch displays the default message " Field Full".

 

Is there a work around this? 

 

Also, is there another method I can use to do the same thing?  The displayFieldFullMessage() method causes some issues.

 

Thanks,

 

Tony_K

 

 

 

BasicEditField txtField = new BasicEditField ("", "", 1000, BasicEditField.FOCUSABLE) {

 

protected void displayFieldFullMessage() {

 

Status.show( "The maximum message length is 1000 characters including spaces.");

 

}

};

add(txtField);

Retired
Posts: 172
Registered: ‎06-07-2010
My Device: BlackBerry 8520
My Carrier: Rogers

Re: displayFieldFullMessage()

Hello Tony_K,

 

How are you doing? I hope all is well.

 

In regards to your issue, what bundle or App Version of OS6 are you using? Are you using the lates. So far from my tests conducted on a 9800, I'm unable to reproduce the issue.

 

Looking forward to your reply.

Raihan Masroor
BlackBerry Development Advisor
Contributor
Posts: 10
Registered: ‎06-28-2011
My Device: Torch
My Carrier: Bell

Re: displayFieldFullMessage()

Hi Masroor,

 

I haven't been on the forum for a while and just read your reply to me.

 

The OS6 bundle I have is 2647 (v6.0.0.600, Platform 6.6.0.223)

 

Thanks,

 

Tony_K

 

Retired
Posts: 172
Registered: ‎06-07-2010
My Device: BlackBerry 8520
My Carrier: Rogers

Re: displayFieldFullMessage()

Hey Tony,

 

Can you send a snippet of your source code, as I'm not able to reproduce the issue on my 9800.

 

Looking forward to your reply.

Raihan Masroor
BlackBerry Development Advisor
Contributor
Posts: 10
Registered: ‎06-28-2011
My Device: Torch
My Carrier: Bell

Re: displayFieldFullMessage()

Hi Masroor,

 

Apologies for not replying sooner.

 

The snippet of code below is the same as above.

It's just a simple code.  I Just tried it again on the 9800 and it's frozen, which means I have to reboot the phone.

I must mention, that if you type out a few lines of text and then copy and paste to reach the 1000 character limit quickly, then you should get the problem.  Even if you limit the text to 25 you should get the problem,  but you must copy and paste a few lines for it to happen.

 

Tony

 

 

BasicEditField txtField = new BasicEditField ("", "", 1000, BasicEditField.FOCUSABLE) {

 

protected void displayFieldFullMessage() {

 

Status.show( "The maximum message length is 1000 characters including spaces.");

 

}

};

add(txtField);