HELP! TextField "NUMERIC" dont let me enter more than 9 digits

Hi there,
Firstly: I 've search for this question, and I ve found an old post very similar to it.
(here is it: [http://forums.sun.com/thread.jspa?messageID=10706126] )
But, unfortunately, the aswerings did not satisfy me...
The problem is:
I have a TextField that should receive a Credit Card number, meaning, it has to have 15 or 16 numbers.
If I set it as "NUMERIC", when I run the app on my real cellphone (a SonyEricsson w810i), it dont let me enter more than 9 digits. Stringe thing here is: but on emulator, I could...
txtCardNo = new TextField("Card Number", null, 16, TextField.NUMERIC);Instead, if I set it as "ANY", user can type up to 16 numbers, but the problem is that field will accept ANY character, and I dont want that way: I want that this field input acts accepting only numbers.
How could I fix it?
Shall I use a function to mask this field? If yes, how?
Or this could be a problem of JVM implementation on this particular cell phone?
Please, send me any examples and/or links.
Thanks very much.
=Marcello=
PS1: I am quite newbie on Java things...
PS2: I am working on this using NetBeans 6.5.1 and Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC

Yuo can set an ItemStateListener to the Form containing the TextField, and validate the user input in itemStateChanged(...). In case of invalid input, I would show an Alert with an appropriate message, and blank out the content of the TextField (or set it to a default value, as appropriate).
db

Similar Messages

  • Dont allow user to enter more than specified number of digits/chars?

    Hello
    First case: I have placed a TEXT field on the form. Now i want to put the below validation,
    1) User has to enter only numbers (no decimals)
    2) Only 10 digits
    If not i need to
    1) Alert app.alert
    2) Make the field either CLEARIng or considering & resetting only the first 10 digits (if user entered more than 10 digits)
    2nd case: Same as above, a TEXT field, but, the data is with a DECIMAL notation, the allowed lenghts are as
    2 digits as prefix to decimal
    2 digits as suffix to decimal position
    example, 35.88
    Pls. let me knw the Java Script for these 2 cases or do you suggest me PATTERN validation if so, can i CLEAR or reset  and if so, pls. let me know under which TAB(Display / Edit / Data) i need to put the PATTERN validation?

    Firstly if you are only allowing numbers then the field should be a numeric field not a text field. You can use patterns to allow only whole numbers or to have 2 digits on either side of the decimal.
    In regards to the number of digits you can use the len function to determine the length of the data and if it is too long give a message or clear it.

  • HT4113 my iphone is disabled,but dont let me enter the password, so what can i do?

    hello my iphone is disabled, adn dont let me enter the password?

    Read http://support.apple.com/kb/ht1212

  • Validate that user should not enter more than specified number of digits/chars?

    Hello
    First case: I have placed a TEXT field on the form. Now i want to put the below validation,
    1) User has to enter only numbers (no decimals)
    2) Only 10 digits
    If not i need to
    1) Alert app.alert
    2) Make the field either CLEARIng or considering & resetting only the first 10 digits (if user entered more than 10 digits)
    2nd case: Same as above, a TEXT field, but, the data is with a DECIMAL notation, the allowed lenghts are as
    2 digits as prefix to decimal
    2 digits as suffix to decimal position
    example, 35.88
    Pls. let me knw the Java Script for these 2 cases or do you suggest me PATTERN validation if so, can i CLEAR or reset  and if so, pls. let me know under which TAB(Display / Edit / Data) i need to put the PATTERN validation?

    Firstly if you are only allowing numbers then the field should be a numeric field not a text field. You can use patterns to allow only whole numbers or to have 2 digits on either side of the decimal.
    In regards to the number of digits you can use the len function to determine the length of the data and if it is too long give a message or clear it.

  • Cannot Enter more than 1000 partners in Customer master data(Partner Funct)

    Dear Friends,
    In Customer Master Data  -> Sales Area Data -> Partner Functions-> I can able to enter 1000 partners.
    Now When I am trying to enter more than 1000 partners, system is not allowing me(no lines are available to enter partner)
    According to my requirement I have to enter another 500 partners(business requirement)
    Please suggest me how can I able to enter more than 1000 partner in customer master.
    Quick reply will be  appreciated and rewarded.
    Thank you

    Hello,
    It is very clear that, unless you change the Data element for KNVP-PARZA, the system will not allow you to maintain morethan 999 partner functions for a cusotmer master.
    This is very exceptional case and I handled the situation in my project with the Duplication of customer master data for Sold to party and maintained the remaining partner functions over there.
    Please check with  your Business/ Architect team whether they allow this. As an alternative, they have to go with duplication of sold to party for the maintanance of additional ship to parties.
    OR
    Should go for char length changes for data element KNVP-PARZA (NOT RECOMENDED).
    Hope it helps. Let me know if not.
    Thanks,
    Ram.

  • How to enter more than one bind variable

    Hello,
    i use bind-variables to pass parameters from one application to another through links. On the SQL-Query-Tab it says that i can enter more than one bind-variable, but i don't know how to do it.
    my sql-statement looks like this:
    SELECT column
    FROM schema.table_name
    WHERE v_variable = :bind_variable
    I don't want to put a second bind-variable in the where-clause.
    thank you
    Ralf Schmitt

    Hi Marcel,
    thanks for your help.
    What I want to do is pass a parameter to a report that is not part of the select-statement
    Example: a simple blackboard
    User selects a category and receives a list of items in that category. now i want to pass the category_id AND the category_name.
    The select on category_id produces the item-list, the category_name is shown in the header of the html-page.
    A question to the code you submitted:
    WHERE v_variable in (:bind_variable1, :bind_variable2, :bind_variable3 etc)
    is v_variable an array? How do i select with such a where-clause?
    Thank you,
    Ralf

  • Is it possible to enter more than 333 items in a physical inventory Doc.?

    Hi Gurus
    I want to enter more than 10000 line items in a physical inventory document. how can I achieve this please help. We are using SAP IS Retail.
    Regards
    Muneer . V.K

    Hi
    We are using PDA device to enter counted qty before that we will arrange all articles based on MC and we will distribute the work to different counting teams. We have a Z program developed for PDA with following logic.
    Pseudo Logic     
    1)     Application is used to create Physical Inventory Count.
    2)     There are 2 options provided for physical Inventory Count
          i)  With Reference of Physical Inventory document
          ii) Without Reference.
    3)     If with reference is chosen , Inventory document no. is available for input
    4)     If stock type is entered in without reference then vendor is mandatory for input.
    5)     User can enter the site, storage location and the following validations will be done on these screen inputs
    u2022     Validate the site against SAP entry and check whether the ser has authorization in the site
    u2022     Validate the storage location
    u2022     Validate Vendor if entered
    u2022     Validate Physical Inventory doc no. if entered
    6)     In second screen, user will scan EAN/UPC number of the article and the following validations will be done.
    u2022     Validate the EAN/UPC number. Check whether the number is available in SAP
    u2022     Check whether the article is extended for the site
    u2022     Get the base unit of measurement for the article
    u2022     Get the article description from the table
    u2022     Get the conversion factors for the barcode unit of measurement
    u2022     Get Stock on hand for the article
    7)     Perform the following validations on the unit of measurement input
    u2022     Check whether the unit of measurement is available in the system
    u2022     Check whether the unit of measurement is defined for the article
    8)     Perform the following validations on the quantity entered by the user
    u2022     Check the format of the quantity input
    9)     Move all the details along with quantity to a buffer table. Clear all the input fields for the next set of scan and move the current details to the last scanned variable for display
    10)     In case duplicate scanning of article, cumulate quantities instead of adding new entry to the buffer table
    11)     If the user click on option DISP, call the third screen
    12)     In third screen, all the EAN/UPC numbers will be displayed with an option for scrolling and removal
    13)     When the user choose option SAVE from the third screen, create physical Inventory document and update the count by following the below steps
    u2022     Prepare the header parameters for the BAPI
    u2022     Prepare the line Item parameters for the BAPI
    u2022     Create PI document using the BAPI_MATPHYSINV_CREATE_MULT and BAPI_MATPHYSINV_COUNT
    u2022     Trigger error message in case of any failure
    14)     Clear and refresh all the variables and internal tables to proceed
    15)     Create HTML templates for the screen in SE80 under the internet service ZNESTO
    16)     Publish the IAC templates for the screens in SE80 under the internet service ZNESTO
    Regards
    Muneer V.K

  • Enter more than one personnel number for the same confirmation in CO11N

    More than one labor working on Machine work center simultaneously.
    So that during production orders confirmation in CO11N we need to enter more than one personnel number for the same confirmation but in CO11N the system allow me to enter only one personnel number.
    Note: I can not distinguish between the productions for each labor so that I can not enter separate confirmation for each labor.

    Hi,
    You can use the User Exit: CONFPP07  Single Screen Entry: Inclusion of User-Defined Subscreens
    for this purpose..
    Take help from the ABAPer for this enhancement..
    Regards,
    Siva

  • Firefox won't let me open more than one window at a time. how do i fix the problem

    Firefox won't let me open more than one window at a time. It use to allow me to open multiple windows before but for no apparent reason it stopped. I uninstalled it and re-installed but I'm having the same problem. How do I fix the problem
    == This happened ==
    Every time Firefox opened
    == several days ago

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Why am I unable to open multiple tabs in the browser? It all of a sudden refused to let me open more than one at a time.

    While on the internet, I tried to open two tabs, but it won't open any more for me. I tried right clicking and opening that way, but it won't let me. I removed Mozilla Firefox from my computer and re-downloaded it, but it still won't let me open more than one tab. It's happened to two of my computers now, and nothing works for either one except opening in safe mode every time.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Just upgraded to 9.4, safari will not let me keep more than 3 windows open, if i try to open 4th, one goes away

    Safari will not let me keep more than 3 windows open, when I try to open 4th, one goes away, just installed 9.4 last week, nothing but problems

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been usin

    Help! We have a form with more than 200 entries and when I looked at it yesterday it had one! When you download the form to excel they all show up. However, when I added another record today it disappeared. Can you tell me what's happening? I've been using adobe forms for 2 years with mass response feedback and have never had this problem.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • Why won't Garage band let you open more than one project a time..

    Why won't Garageband let you open more than one project a time???? If thats the way its is set up...that is really lame. Even the worst audio programs allow you to run a few projects at a time.
    I recorded a gig the other night... then I dumped the whole set on to one track. When I wanted to copy and paste individual songs into their own project it made me close the current project. Is there a way around this???
    Joe

    Heh, heh. Yes, this is true. Alas... BUT, if you want to compare one project with another, it can be done.
    There is another advantage to making another copy of GarageBand. I created a copy and call it "GarageSymphony" that contains all my instrument specific icons for orchestral packs. This way I do not mess up the GarageBand application.
    I would not be surprised to find multiple windows become available in GB4. I was more than pleased to find this change in iMovie 6.

  • How to enter more than 132 characters in a Parameters Field

    Hi Everyone,
    I have a field of type file_table-filename as Parameters in my Selection-screen. The size of the filename is 1024 characters as declared in the structure file_table. But when i am trying to enter the path into this field, its allowing not more than 132 characters....how is it possible to enter more characters? Even in debugging mode the maximum value we can scroll is upto 128/132 characters..if we want more then we should use the Offset option...but how to enter more than 132 chars into this field?
    Best regards,
    rama

    Hai,
    I did the same in my program...i get the filename along with the path into this field...but then there is a chance that the User wants to say edit the filename..here comes the problem.
    Best regards,
    rama

  • Won't let me burn more than 90mb to a cd???

    Yesterday something odd happened, I went to write a CD with my mac mini internal writer. All of a sudden it won't let me put more than 90mb onto a cd.
    We had changed the make of cd's we use so I thought it may be that, I found on old cd (that already had a small session written to it) and tried that. Again it said I could only put 90mb onto the cd... BUT it actually let me write 200+mb onto it. The blank Cd's won't let me do that, they say not enough room etc.
    Anyone have any ideas????
    I'm using toast 7, on system 10.3.9.
    The cd's i'm using are Imation CD-R 800mb Multispeed (overburning)
    The old ones were Imation CD-R 700mb 52x

    I wouldn't be surprised if 800MB CD's don't work. I I'm correct, your drive only supports 700MB's (unless you've upgraded it with a SuperDrive. Anyway, the Imation CD-R's should work 52x should work.
    Things to try
    1) Go to homefolder >> Library >> Preferences. Now trash the file called "com.roxio.toast.plist. Try burning with Toast now. If it does work, you had a corrupted preference file and now the problem is solved. If it still doesn't work, proceed to step 2.
    2) Instead of using Toast, use the Finder Burn option. Insert your CD-R into your drive. It'll ask you for a name, name it something and click OK. Now you should see a CD-R icon on the desktop. Drag whatever files that you wanted to burn onto the CD. Now double-click on the CD to open it. You should see all the files that you dragged onto the CD. Now, go File >> Burn Disc. It will start burning. If it works, your Toast program is corrupted, reinstall it. If it still doesn't work, repeat step 1 and proceed to step 3.
    3) Use a CD/DVD Drive Lens cleaner. Costs about $10 CAN. Use the drive cleaner and try burning with Toast. If it works now, then you had a dirty lens and now it's solved. If it still doesn't work, repeat steps 1 and 2 and proceed to step 4.
    4) Try different discs. Try using Maxell 700MB/80min CD-R's they work with absolutely every mac. They cost around $18 CAN for a pack of 10 w/ jewel cases. Now try burning with Toast. If it worked, your problem was bad CD's, keep using Maxell. If it didn't work, repeat steps 1, 2 , and 3. After all that, if it still doesn't work, post back for more solutions.

Maybe you are looking for

  • Performance with 10.5.5

    Does anyone have any noteworthy experience with 7.2.3 and OSX 10.5.5? I'm on an Intel machine, currently on 10.5.2, because I heard about some performance issues with .3 and .4. Thanks.

  • Ipod Nano 6th gen not syncing mp3s after itunes 11.1.4.62 update

    As the title says, after updating itunes to the 11.1.4.62 update, and everything that doing that successfully involved such as completely uninstalling all Apple software and then reinstalling itunes, my ipod nano 6th gen will not allow itunes to sync

  • Can anyone help me, I need to change the address (country) from US to UK so i can purchase?

    can anyone help me, I need to change the address (country) from US to UK so i can purchase?

  • SB Live Digital I/O Card work with Audigy 2

    Midi Help! I recently purchased a new machine from DELL that included the Audigy 2 ZS, and it came with no way to connect MID cables. Can I attach the Digital I/O Card from the SB Li've (I have 2 of them from previous purchases) or will I need to pur

  • Customer wise production report

    Suppose sales order 1 has got X-5 pcu2019s, Y-4 pcu2019s. Sales order 2 has got Y-5 pcu2019s, Z-7 pcu2019s, sales order 3 has got x-10 pcu2019s, Y-5 pcu2019s, Z- 10Pcu2019s. These three orders are from same  customer. This 3 orders are in production.