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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified
Accepted Solution

Doubts in EditField

Hi,it is a doubt regarding the Edit Field ,i set the maximum no of characters to be number 3,and when i type more than 3 characters,Dialog is displays field full,

 

I want to remove it and should not enter more than 3 characters.How to acheive it

 

 

Regards

 

Rakesh Shankar.P

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Doubts in EditField

Sorry not clear.  Please explain again what you want to do, with an example so we are all clear.

Highlighted
Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts in EditField

what i was trying to saying is that in the  editfield we can determine max no of characters that can be typed in label field,

 

For eg

 

EditField ed=EditField(String s,String s1,int n,long style);

 

int n-represents the max no of characters that can be filled in editfield

 

suppose i set the value of n to be 3,and when i enter more than 3 characters it shows Field Full

 

and now  What i want is that i should not get that Field Full alert Dialog when i enter more than 3 characters ,

 

 

Can you get my Qn?

 

 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Doubts in EditField

I did ask for an example.

 

Say the Field has 123 in it,  then the user types 4.  What do you want to happen?

Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts in EditField

sorry

 

When user types 4,what i get is  Dialog box whch shows "Field Full",i should not get that Dialog box,

 

 

this is the image here

 

 

 

In the image i have EditBox next to "very high" label,when i enter more than 3 characters it shows Field Full and i want it removed,can this be done

 

 

Regards

 

Rakesh Shankar.P

Developer
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: Doubts in EditField

[ Edited ]

yes it can be done:

 

 

 

 

BasicEditField bef = new BasicEditField("Test","",5,BasicEditField.FOCUSABLE)
{
    protected void displayFieldFullMessage()
    {
        
} };

 

 

 

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();
Developer
Posts: 1,006
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts in EditField

Thanks For you Help yosoh and you too peterSmiley Happy