How to filter the EditField for non-negative real numbers?

Hi all

In my project, I have a simple EditField in which I want to restrict the user to enter only numbers and decimal.

So, I want the user to be able to enter as 123,63 but not - 123.63

Thank you for your help in advance.

NumberField EditField = new EditField (EditField.FILTER_NUMERIC) {}

{} protected Boolean keyChar (key char, int status, int time)

If (key == '-' {})

Returns true;

} else {}

Return super.keyChar (key, status, time);

}

}

}

something like that.

Tags: BlackBerry Developers

Similar Questions

  • How to filter the by using (-) less symbol.

    Hello
    We use oracle EBS as OLTP. Sale of data stores the PO_HEADERS_ALL, PO_LINES_ALL table, which contains data of rejection/cancellation order.
    Rejected/cancelled in data store also the same tables. We are able to identify the base denied/cancelled quantity indicated (-) less symbol. (Example: Qty:-30), and the Amount column is also indicated as (-) less symbol. So, how to filter the data on quantity everything is indicated - less symbol in OBIEE.

    Kind regards.
    CHR

    Jay wrote:
    IF it is set to digital use function of cast to convert to a char, then using as check the reason for the less to be filtered in the filter condition formula.

    If you want to filter all values of negetive, then use filter: measure<0 in="" filter="">

    Hope this will help you.

    Thank you
    Jay.

    If the column was purely digital, why cast to CHAR? The OP can do everything suggested Robert Angel. My suggestion was where there was some other non-numeric values in the column that could be the reason why the column is CHAR, then using the SIMILAR filter operand would solve this problem.

    The first part of your suggesting was not necessary if the column is a numeric data type and the second part was just a repetition of what Robert.

  • How to filter the view LOV object?

    Hello

    Can someone help me please how to filter the LOV VO according to the selected result of LOV another?

    Thank you.

    Jon

    In the second LOV have additional lov map.

    In the property inspector
    Set the property ITEM of criteria with the first value LOV
    LOV region article - select the attribute of second LOV that specify the link between your two LOV.
    Required - True property

    You have defined the question of the criteria for the second LOV with the value of the first LOV, second lov runtime will filter the values based on the values first of lov.

    Hope this will help you. For more information you can always see the development guide.

    Arvind

  • How to filter the modules of the version of TB?

    My version of TB: 31.1.2 on Win7

    The Add-ons Manager has a section called "Featured addons". I think that, Hey they must be cool if they are featured! I try "Contacts Sidebar" only to discover that it was updated in 2007 and does not support recent versions. How to filter the Add-ons to display only those compatible with my version of TB?

    All the people who still use older computers from apple. This is the last version that will run on them.

  • How to install the patch for the security hole last QT process running on a Dell with Windows 7 (Windows 10 upgrade) laptop? I got a message from my program called Belarc that the patch is missing on this device. Thank you

    How to install the patch for QuickTime Pro for Windows 7 on a Dell laptop... I got an alert through a program which I run from time to time (Belarc) and it says that there was a security breach detected by Apple (or one of its vendors, who manages the security of the operating system such as Cisco) during December 2015.

    Please notify.  Thanks in advance for your guidance pertaining to my question.

    Download QuickTime for Windows - Apple 7.7.9

    Apple ends development of QuickTime Player 7 for Mac and Windows operating system, so don't expect much more beyond this last version.

    The installation shows are supported for Windows 7 and lower, so I don't know what to expect on Windows 10.

  • How to disable the option for children to receive messages from my iPhone on their iPhones?

    How to disable the option for my children to receive my iPhone imesages on their iPhones?

    Do not share account iCloud with them. iCloud accounts are not meant to be shared.

  • How to get the manual for Satellite Pro 4200?

    How to get the manual for Pro 4200. I have download olm_up and setup.exe (72 kt) of http://eu.computers-toshiba-europe.com?.

    Hello

    Please visit this link:
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_manuals.jsp

    I m you will find a good manual of your device.

    Good bye

  • Office jet Pro 8600: how to change the folder for the scans on my Apple?

    Hi, I want to know how to change the destination for my scans folder when I scan from the printer.  Currently, the scans go to "documents", and I want him to be in a business case.  Clues?  I tried to watch some instructions on the previous posts, but it seems that they are for windows.

    Thanks for the help!

    Hi @jgossc,

    I'd be happy to help you change your scan destination. I understand that when you scan your Officejet Pro 8600 to your Mac, the file analysis is currently underway to your documents and want to let them instead to a business case.

    To change the destination please follow the steps below and let me know the results of your efforts:

    • Open HP utility
    • Select Scan to the computer
    • Click Scan tasks to change
    • Choose a shortcut to scan
    • Select Edition
    • In the options listed here, you should see scan destination

    If this resolves the issue, please click Accept as Solution button below; If not, let me know and I will do everything I can to help. Thank you.

  • How to connect the keyboard for apple tv wireless?

    How to connect the keyboard for apple tv wireless?

    If you mean the 4th generation new Apple Tv, you cannot currently. It does not support keyboards at this time.

    If you mean the 3rd generation Apple Tv:

    Use a keyboard Apple Wireless with your Apple TV (2nd or 3rd generation) - Apple supported

  • I know how to force the Spotlight for re - index a drive or a folder. But how then do I mail?

    I know how to force the Spotlight for re - index a drive or a folder.

    But how then do I mail? I drag this file to the window?

    Thank you.

    Try re-indexing of mailboxes mailbox. This can take some time if you have a lot of mail.

    Reindex messages           For El Capitan, try looking in V3.

    Reindex messages (2)        See post by Linc Davis

  • How to recover the password for AirPort Extreme in ipad

    How to recover the password for the ex airport in ipad

    Use your Keychain Access iCloud, if you create a.

    Frequently asked questions about iCloud Keychain - Apple Support

    Soft reset the airport and you can connect for 5 min and recover the passwords.

    Reset to a base station AirPort FAQ - Apple Support

  • I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...

  • How to upgrade the driver for my video card?

    How to upgrade the driver for my video card?

    Most often when a device does not work, it's because the driver has been corrupted.

    Try reinstalling your.

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

    http://captaindbg.com/how-to-update-drivers-on-Windows-7/

  • How to reset the password for administrator on windows server 2008 datacenter eddition before the login in vmware

    How to reset the password for administrator on windows server 2008 datacenter eddition before the login in vmware

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • How to install the theme for Windows XP Professional

    How to install the theme for Windows XP Professional?

    Hi Shubham,

    The Microsoft Download Center a lot of themes, or you can use your favorite search engine to search the Web for more themes of third-party websites.

    Note:   software use of third parties, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For more information, you can consult the following articles:

    Make Windows XP as you wish

    Resources to configure desktop themes in Windows XP

    Create your own desktop theme

Maybe you are looking for

  • Failed to load the iOS 9.3.

    Error message states that I am not connected to the internet. Not the case. What happens when I try to download iOS 9.3.

  • New converter coard or screen?

    I worked one day on my Thinkpad T61p and suddenly, I hear a noise, then my screen gets super dim. My question is what I have to replace the screen or do I need a new Inverter card, or should I get a complete assembly and transfer my stuff from Verizo

  • BlackBerry smartphones extending the deadline of the ring

    Hello Currently my only rings "BOLD" for about 14 seconds of time that he's going to voicemail. Is it possible to extend the ring time before it goes to voicemail. I contacted Rogers with no luck. Thank you in advance. Eddie

  • Error 1722 when installing IBM Rational to

    Please Help ME to solve this error. I have 8 64-bit windows and everything is updated. but when I am trying to install this software its gives me an error. After clicking on OK in my computer a friend its working fine please help me. do not give sugg

  • Performance tests of VSANS: what is the attitude of your cluster under actual stress?

    Our config node VSANReference Dell R730xd768 GB OF RAMPERC730ability level: 21 x SAS disks 1, 2 TBthe caching level: 3 x SANDISK SX350-3200dedicated NIC for VSAN 10GEWe encounter problems while driving a large number of virtual machines on our cluste