How to prevent a user from entering characters into a number field

How do you prevent a user from entering characters like A or B into a field that is defined as a numeric field?
Please note that
- we use block validation (for other reasons)
- we are not able to convert these numeric fields to character fields
We want to avoid a user being hasseled with the FRM-40209 ... message.
This message is
- not very helpfull because it does not inform us what the problem field is
- not suppressable
Any hints ?

I went back to the drawing board on this one.
You are absolutely right : the message can be catched !
By writing an on-error trigger you can check for the error number. Sadly enough my first attempt on this used the on-message trigger which never fired hence my desperation.
Anyway, the on-error trigger in combination with :SYSTEM.CURRENT_ITEM or :SYSTEM.TRIGGER_ITEM enables me to display a more meaningfull message to my users.
Thanks for the hint.

Similar Messages

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

  • Prevent User From Entering Characters In A TextField

    Does anyone know how to prevent certain kinds of letters or symbols from being entered into a textfield? Something that prevents the user from typing a minus sign or the letter Q.

    You can also use KeyListener. You can also search the forum as this question has been asked numerous times.

  • How do i prevent the user from entering a RETURN/ENTER key into their username?

    Hello,
    i am currently trying to make a login system where the
    username will obviously enter their username.
    I have made my user input box editable and set up variables
    to accept the user input and store them into variables, along with
    error prevention for blank fields.
    However i cannot prevent the user from hitting the
    "enter"/"return" key. When i hit "enter" the user input box box
    gets larger as the type curser moves onto the next line and when
    the username is stored in a variable it is stored as "theuser
    RETURN" so when variable is passed to the next frame and is
    recalled by another text box to display the username, the user name
    has a carriage return.
    I want to prevent this, anyone got any suggestions? or know
    of any websites i can visit which will explain this to me nicely??
    Thank you

    suggestion:
    don't make the edit field editable right from the start.
    rather attach a behaviour to the field/text-sprite like:
    property mySprite, myMember
    on beginsprite me
    Sprite = me.spritenum
    -- this is the channel-number of the editbox
    myMember = mySprite.member.number
    -- this is the field/text-member
    member(myMember).editable = FALSE
    end beginsprite
    on mouseup me
    -- when i get clicked for editing, then set me editable
    member(mymember).editable = TRUE
    the keydownscript = "MyKeyhandler"
    -- this sets the keyhandler to YOUR keyhandler, see below
    end mouseup
    You would then need to have YOUR keyhandler in any mociesript
    and there you
    would block any unwished key, while editing
    on MyKeyhandler
    case the key of
    RETURN:
    stopevent;
    otherwise
    pass;
    end case
    end MyKeyhandler
    in the end you would attach a behaviour to any
    "Submit"-button (this is the
    one that "gets" the userinput" and performs further action
    according to your
    wishes and decisions)
    on mouseup
    the keydownscript = EMPTY
    -- this resets to normal
    user-ID = member("Whatever the number or name of your
    editfield
    is").text
    member("Whatever the number or name of your editfield
    is").editable
    = FALSE
    -- any further actions to make in your project
    -- to get along with the entered User-ID
    end mouseup
    something like this, I guess
    Peter

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How to prevent certain Users from deleting a resource while in the project?

    We are currently using P6.2 client; We are setting up a new resource dictionary and have been searching to find a way to prevent certain users from deleting resources while in the project. Is there a way to do that? I have created Global profiles and Project profiles under the Admin security profile and have tried clicking off of rights to delete a resource but when I log into as that user I can still delete the resource. Please Help!

    Are you talking about preventing users from deleting resource assignments within a project? Or preventing them from deleting resources from the global resource dictionary?
    For global resource dictionary in Global Profile you would turn off:
    -Delete Resources
    And likely:
    -Add resources
    -Edit Resources
    -Edit Roles
    -Edit Resource Calendars
    For resource assignments on activities in Project Profiles you would turn off:
    -Add/Edit Project Activities Except Relationship
    Note: this will disable more then just the ability to alter resource assignments.

  • How to prevent the User from loading more than one seq file?

    Hi,
    I would like to prevent the tester operator from loading more than one test sequence.  Any ideas how to do it?
    Thanks
    Rafi

    Hi Marty,
    Marty_H wrote:
    Hello mhousel,
    Testexec.exe by default loads the sequence files that were last open when it runs.  It is often desired behavior to have multiple sequence files load automatically. 
    [Mark Housel] Maybe for some but certainly not for me. 
    This should be easily handled by TestStand without any problems.  What do you mean by "chaos ensues"? 
    Certainly Teststand doesn't care a bit how many sequences are open.  But, when my sequences open they initialize HW of the ATE associated with
    that sequence file during the sequenceFileLoad callback.  e.g. I allocate TELNET handles to a terminal
    server that connects to multiple console within the system and als for
    the UUT.
    If a second sequence opens it knows nothing about the other sequence and again tries to open a TELENT session to the same port of the
    terminal server and obviously fails, so my sequence reports that it
    can't properly initialize the ATE HW.  Bad juju!
    Are your sequence files set to run automatically when they are loaded?
    I guess so.  Other than the trick of logging in as the special noExecution user and having special code in my sequence and modified Process Model I have no idea how to prevent a sequence fronm "runnin" when opened.
    If you want to prevent Testexec.exe from loading multiple files, you should be able to close out one of the open files when it loads and that sequence file should not load in the future.  I hope that helps.
    The trick I read somewhere else of modifying the Testexec.uir file to never re-load a sequence file automatically seemes to have covered up solved the problem.
    Thanks,
    Mark

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • How do I allow users to enter text into drop down menu

    I have created a form with a drop down menu but I want users to be able to enter thier own text into the field if they do not see the option they want.

    It sounds like you're creating the form in FormsCentral. This isn't an option in FormsCentral, but if you save the form as PDF you can edit the field in Acrobat and you'll see the option that Bernd mentioned. In order to edit the form in Acrobat, you have to removed the usage rights by opening the PDF in Acrobat and selecting: File > Save A Copy
    and then open the copy.

  • How to prevent user to enter data in "Date/Time Field"?

    Hi folks,
         Back after long time to the forums, where I get answers which are helpful in making me good at utilizing designer.
         I am trying to validate the "Date/Time Field" using JavaScript but couldn't get a proper RegEx expression for various invalid user input formats. If anyone can help me out in finding a proper script that would Great.
         My script grown bigger and bigger to accepting invalid dates, but felt like hardcoding. So, instead I decided why can't we prevent a user to enter data into "Date/Time Field" and use only calendar dropdown. Is there is a way to do this?
    find my sample testing docment
    https://acrobat.com/#d=mYXkrhO2txuEesCfmvxNXg
    Thanks in Advance,
    Rajesh

    Hi Rajesh,
    I don't think there is a way of stopping the user from using the keyboard to enter a date.  You can use the following script in the change event to stop them typing a date but they will still be able to paste a date in.
    if (xfa.event.change.length === 1)
    xfa.event.change = "";
    This code works because if the date is selected from the calendar dropdown then the date xfa.event.change value will be the whole date and therefore longer than one character.
    I couldn't access your sample but if you were to set an display picture for the date field to something other than date{YYYY-MM-DD} then a valid date will have a formattedValue that is different than the rawValue.
    Dave

  • How to prevent users from entering '+' or '0' in front of country code in the phone number field?

    Requirement:
    How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
    Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
    Solution:
    Using a simple regular expression, you can validate the entered phone number during the guest registration. 
    The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
    ^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
    It also performs the below validations.
    only numbers are allowed.
    first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
    numbers from 0 to 9 are allowed from the second digit.
    also validates phone number length, the length of the phone number should be 9 to 14.
    Configuration:
    To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
    Note:  Edit the Validation Error as per your requirement.
    Verification
    Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
    Please find below the sample outputs for your reference.
    Result when phone number starts with '+' or '0'.
    Successful registration.

    Is this a Mac Preview issue?

  • How do I disallow users from saving the data they enter into an Editable form?

    Hi all,
    I am working with a client who does NOT want their users to be able to save their data. In other words, when the user opens the PDF file, they can enter data into the editable fields, but they should NOT be able to save that data as part of the PDF.
    Does that make sense?
    My client doesn't want the user to be able to save a local copy of the PDF with any of the data entered onto the form.
    Based on what I've found in my research, as of Version 11, Adobe Reader now allows users to save their data. Unfortunately, my client doesn't want that.
    Any help?
    Thanks,
    Steve

    About the best you can do is include a JavaScript that resets the form when it is saved, so no entered data remains in the fields. The problem with this approach is JavaScript can be disabled, resulting in the form not being cleared and allowing the filled-in form to be saved.
    You can address this with an additional JavaScript that runs when the form is opened that sets all of the fields from read-only to not read-only, allowing the fields to be filled-in. If JavaScript is disabled, the script won't run when the document is opened and the fields will remain read-only and therefore not fillable.
    The user would be able to work around this by having JavaScript enabled when the document is opened and disabling it after filling-in the form but before saving it. Most users would not be aware of how to do this though.
    If there are rules/regulations/laws in place that require something more certain, you'll have to take a different approach.

  • I'm using "window.open()" to show one Calendar in a popup window. I can see that the popup is re-sizable. How can I prevent the user from re-sizing the popup?

    I'm using "window.open()" to show one Calendar in a popup window. I can see that the popup is re-sizable. How can I prevent the user from re-sizing the popup? I have tried "resizable=yes|no|1|0" and that seems to be not working.

    You can't prevent users from resizing a pop-up.
    *https://developer.mozilla.org/en-US/docs/Web/API/window.open

  • Prevent user from entering info in a JTextField

    I have implemented a calculator in a GUI.
    At the moment it works but the user can enter text in the answer JTextField.
    I want the answer to appear in a JTextField (background to appear grey) when a Jbutton 'equals' is pressed but I want to prevent the user from being able to enter anything in this field, so that it is only an output field. Is there a special way to disable input from JTextFields?
    Thanks in advance!

    Is there a special way to
    disable input from JTextFields?Take a look at:
    setEditable(false); and
    setEnabled(false);
    /Kaj

  • How to avoid user from entering new price condition in return order

    Dear Expert
    We are facing a scenario where we make return order; the Price is copied from the invoice. And it is working perfectly. The system does not allow us to change the price.
    The issue we are facing here is that user can input new condition like discount /premium and change the net value for the return order pricing, and this will reflect in the credit note for returns.
    Is there a way to restrict the user from entering any pricing condition in the header or item conditions tab.
    although we cannot change the original price coming from invoice referenced for return order, but the user can input new price conditions as below. This must not be allowed.
    The price must come according to the Qty being referenced.
    While making the credit for returns, the user has a chance of further making changes to the net value by adding new conditions. Hence this must also be restricted for any changes.
    Thanks
    Edited by: Lakshmipathi on Jan 31, 2012 6:55 PM
    Thread Locked - Reason Cross Post

    okie .... i will tell briefly what is the problem ....
    Take a scenario wherein a user has logged into my application and he is performing a task which will put his user id and his employee id into the session. Then he opens another window by using either ctrl+n or through files->new window.
    So now a new browser will open but the session will be same ..... in this newly opened browser, user performs some operation which will remove the user id and employee id from the session .... Now if he again comes back to the first window and tries to do some operation, then a null pointer exception will be thrown saying that the employee id is null .... because he has deleted that in the newly created browser ..... to avoid this situation what can we do ???? can you please help me in this regard ??? you got my problem right !!!

Maybe you are looking for

  • BIOS Recovery using a USB stick for S10-3t

    im from south africa and am having trouble contacting my support center.  i tried to flash my bios and my netbook won't start up now, and i need to recover my bios manually. please help me with the following: 1. procedure to use my usb stick as a rec

  • IPhone 4 Recovery Mode Loop PLEASE HELP ASAP

    My iPhone 4 is stuck in a Recovery mode loop ever since I updated to iOS 6. I am using a mac running 10.8.3 with the latest iTunes. When it is connected to my computer iTunes pops up and says "An iPhone in recovery mode has been connected, you must r

  • Schedule Hot backup via OEM

    Hello all, We have a realtively small system running Oracle 10G on Windows 2003 O/S. I've scheduled a full offiline (cold) backup of the whole db to run once weekly via OEM. Every night we run a script to do a 'logical' backup by EXPORTing the 2 main

  • Application won't work as JAR file

    Hello all, I am new to java and just wrote my first java program today. I finally got it compiled and working. I have no problems running the application from the command line when the application is not JARred up. When I JAR is up, the application w

  • Display flickers lines and then dies black until device has hot temperature

    Hi Discussion, I have a very strange problem since approx 2 weeks. My PBG4 is working fine and it is a very nice device, but until it reaches it's working temperature it is playing around with the display. There are lines (horizorental) flickering ar