How to validate user input during data capture

Hello

I want to validate a user through PL/SQL code input. The user will validate, type data, when capturing CHARACTER and DIGITAL. For example when user enters non-numeric data in numeric text element, an alert should be generated.


Any solution please.


Kind regards.

something like that?

CREATE OR REPLACE FUNCTION check_num (p_input IN VARCHAR2)
RETURN VARCHAR
IS
    v_number NUMBER;
BEGIN
    BEGIN
        v_number := TO_NUMBER(p_input);
    EXCEPTION
        WHEN VALUE_ERROR THEN
             RETURN('No numeric value');
    END;
    --
    RETURN ('OK');
    --
END;
/

Test:

SQL> SELECT  check_num('1') from dual;

CHECK_NUM('1')
-------------------------------------------------
OK

SQL>  SELECT  check_num('A') from dual;

CHECK_NUM('A')
-------------------------------------------------
No numeric value

of course you can check the dates of validity in a similar way (TO_DATE())...

Tags: Oracle Development

Similar Questions

  • How Golden Gate will use change data Capture (CDC) in SQLserver2008R2

    How Golden Gate will use change data Capture (CDC) in SQL server 2008 R2. How much space it will occupy for each table when it erases the data and what will be the retention period for the tables of the CDC.

    So, here's what happens next. Normally, when a tranlog backup occurs, SQL Server may decide to release the tranlog space after the backup of the log, for transactions that have been committed and saved.

    When you activate a form any replication, like with OGG and allowing TRANDATA, you need to eat this truncation periodically. So with your configuration, even if the log backup occurs over 15 minutes, data in the journal are not allowed to be released after the log backup until the log backup that occurs after the 4th consecutive time of work.

    It is fine if you are not concerned about the lack of free newspaper in 4 hours. Just something to keep in mind.

  • AF:inputListOfValues how to disable user input

    I use 11.1.1.6 JDeveloper.

    I want to customize af:inputListOfValues and prevent the user from changing the value selected in the inputtext.
    I looked at the af:inputListOfValues skin but could not find him. How can I achieve this?

    Thank you

    Hello

    Select the value of the editMode property inputListOfValues

    This will disable the user input, the selection can be done by pop-up window

    Thank you

  • How to convert user input on the page in capital letters?

    For the experienced:

    I use JDeveloper 10.1.3.4 to develop my application.

    The application has an Oracle database table named USERS. A column named USER_ID, must be uppercase when recording in the table.

    I dragged the create action of the corresponding VO named users to a page to create a commandButton control. When you click this button, the user is navigated to a page "Create an account" to fill in all the fields and save the entry in the USERS table.

    On the page "Create a new account", users of VO is slid to the page as a form of the ADF. The action of validation is dragged to the page as the "Save" button. User input is stored in the USERS table as a new row when the user clicks on the button "Save". But what the user types in the user name field can contain lower-case characters. This entry should be converted to uppercase before saved in the USERS table. I tried to convert the setter in the VO or EO, such as:
        public void setUserid(String value) {
            value.toUpperCase();   //I added this line.
            setAttributeInternal(USERID, value);
        }
    But this has no effect. Then I tried to make a change similar to the Get accessor method, such as:
        public String getUserid() {
            //return (String)getAttributeInternal(USERID);  // this is original code.
            //What I added:
           String uppperUserid = (String)getAttributeInternal(USERID);
            return upperUserid.toUpperCase();
        }
    But I get an error: {color: red} Houston-27019: getting the method for the attribute 'Userid' in users could not be resolved. {color}

    Can anyone help? Thank you very much!

    Newman

    check this one

    ADF faces: how to 'auto UpperCase' on InputText?

    Info. All custom converter...

    Re: all lowercase?

  • There was a problem installing HID Non-User Input filter data (KB911895), a fatal error occurred during installation of the device

    I tried to uninstall the faulty data filter & reinstall download (KB911895). all attempts fail & downloads auto continues trying to install "ad noursium". How can I solve this problem please someone? Brian

    Hello

    Step 1: Follow these steps and then try to install the update.

    1. go to the location: c:\windows\system\drivers\
    2. search for and rename the file wdf01000.sys wdf01000.old
    3. restart the computer.

    Step 2:

    Reset windows update components

    http://support.Microsoft.com/kb/971058

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to exclude user VM image data? (Fusion)

    Hello

    I just started using a new MacBookPro with 750Go after using an XP laptop for years.

    I want to continue to use the old XP image in Fusion 5.

    However I do not want to include all the data from my documents in this image (~ 500GB) since I already moved it to my Mac.

    Is it possible to exclude folders? (I started the Assistant and it says space: 656 f, GB of available space) 161 Of course, who does not fly...

    I took a look at the FAQ and forums, but can't find anything relevant, other than the indications that it might actually be impossible...

    Any ideas would be welcome.

    Thank you

    VMware does not offer this type of overall control, when you do a P2V with VMware vCenter Converter Standalone or the Migration Wizard in VMware Fusion.  If you are already moved the data user on Mac and because you cannot legally continue to use the physical Machine if you're virtualizing, unless she a VLK version and you have the appropriate license number, then you could just remove what you don't want to include in the Virtual Machine and then do the P2V.  Also remember that if it is an OEM version, you're not the right to move to another system, physical or virtual, as OEM installs live and die on the original system installed by the EULA.  If this isn't a retail or VLK version with the appropriate number of licenses, then this is a rhetorical question.

    In case it is not an OEM version, then I'll mention that in the past I've used Ghost for P2V creating an image that excludes everything I put excludes it list and it would be ideal if you don't have what it takes to remove the data from the user for some reason any.  If you have not the right version of Ghost then use VMware vCenter Converter Standalone to create a virtual custom image Machine, then it can still be made even if it must then manually inject the proper drivers and registry entries of Windows for the mass storage controller and the keyboard move the BSOD expected when you do a manual P2V.

  • How to use user input in a ToolTip

    Let's say I have two boxes of text (Tb1 and Tb2).  I want to entry into Tb1 to be part of the trick of TB2 tool typed by the user.   So, if the user types 'Part' in Tb1, when you hover over Tb2 it say 'number for the part.  Does make sense?

    Thank you!

    You can use the custom following in the field of Tb1 validation script:

    getField("Tb2").userName = "number of" + event.value;

  • Other hardware - HD Non - User Input filter data (KB911895) failure. __

    I have a dell laptop running XP and when automatic update download: KB911895 it keeps failing. What must I do to solve this problem? My screensaver is done by this problem. I did a restore of the system several times, but the problem persists. I also tried to download this update from dell support, but even once it has failed. IM also not sure if the media center has nothing to do with this problem because it no longer works. I just need to get at least one of these problems solved if you can help.

    Just to hide the update. If you need a driver update, get it from Dell or the manufacturer of the device, NOT Windows Update.

    ====================

    1. stop the automatic updates service:

    Start > run > services.msc (enter) > [OK]
    Double-click Automatic Updates > click Stop
    (Stopping the service will take a moment)

    2 remove the contents of the download folder:

    Start > run > %windir%\SoftwareDistribution (enter) > [OK]
    Open the download folder and delete its contents
    Close the window.

    3. go to the Windows Update Web site. Select CUSTOM and allow the analysis to be performed. Uncheck the box/deselect update driver (possibly located under updates material optional to pange left) and hide ("don't show me this update").

    4. start the automatic updates service:

    Start > run > services.msc (enter) > [OK]
    Double-click Automatic Updates > click Start
    (Starting the service will take a moment)

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How can I uninstall or repair and I HID Non-User Input data filter?

    (He was installed by windows update & failed because the "fatal error", it continualy attempts to install start-up & fails.) There NOW in some SORT NOW picked UP MY wireless keyboard Microsoft THAT DO WORK MORE, AS THE PROGRAM CACHE IS DEFECTIVE!  When I stop & reboot, the KEYBOARD is NON-OPERATIONAL & I can't GET THE PIN TO LOGON! In desperation I dug an old logitech keyboard and eventually be able to log on to come here for HELP, someone please. Sorry for the cries of joy, (capitals), but I had a full head of hair when I started but I'm now almost bald!
    Brian McGDR

    Hi BrianMcGDR,

    1. When you are unable to install the Microsoft HID Non-User Input update data filter?

    2. What is the full error message you received during the installation of this update?

    3. do you have security software installed on the computer?

    4. What is the model number of the keyboard? What happens when you try to connect the keyboard to the computer?

    The update of the Microsoft HID Non-User Input data filter must be installed if you experience the problem that is mentioned in the Microsoft article below.

    The screen saver does not start after the installation of a wireless pointing device

    http://support.Microsoft.com/kb/913405

    I suggest that you download and install the latest drivers for keyboard, check if it helps.

    http://www.Microsoft.com/hardware/en-us/downloads

    See the update history for the exact error for failure put up-to-date and after return with details.

    (a) open Windows Update by clicking Start , all programsand then click Windows Update.

    (b) in the left pane, click view update history.

    (c) to view more information about an update, double-click it.

  • FILTER (KB 911895) NO HIDDEN USER INPUT DATA.

    I have the new Sony Vaio Tower w/Windows 7 Home Edition - the only failed download is HID NON-USER INPUT FILTER DATA (KB 911895).  I read all of the previous answers, but no one says it's function or end? If we do not need then why was he sent us to download?

    See http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80070103 [ignore the error number if necessary]

    HOW to hide an update or restore a hidden update
    http://www.SevenForums.com/tutorials/24376-Windows-Update-hide-restore-hidden-updates.html

    Tip: Get only driver updates you really need from the download page of the device manufacturer or the computer, not Windows Update.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Capture the names (or other user input)

    Salvation (new type of Captivate 4 here),

    How can I have a user enter their name and then re-use (e.g., show later in the presentation) using Captivate 4?

    With the help of a main entry text box allows me to enter the names, but then requires that this match against a list of 'correct' instead of enter simply what ever they want.

    Thank you

    Chris

    Hello

    It is possible with a user variable. Create a user variable, e.g. v_Name to store the result of the ETB. You can associate the result to the variable in the "Advanced" tab, the properties of the text entry box.

    If you want to reuse the name in the legend text, simply insert, using the 'X' key and an arrow pointing down. You will see $$ v_Name$ $, but when previewing or have fun with the CP-film the variable will be replaced by the name typed in the TEB.

    BTW: there is a tutorial very well in aid, advanced Actions of chapter and the Variables and it's workflow I described.

    Lilybiri

    PS: Disable "Validate user input" for the ETB (Options tab) to avoid the verification of entry

  • Shoot/Get/the data value of the window for user input

    I'm trying to do something that should be simple enough for a programmer, but unfortunately, unfortunately to be a designer, I'm having a devil of a time with it.  After spending hours searching and trying different things, I thought to post the problem.  I have the feeling that I'm not the first creator of evil with it.

    I'm trying to extract a window input data and to transmit it to a variable.  In the script, I do a few purge(), and I don't know if that clears the values of input from the user during the script, but it's thinking ahead...

    I need the values to:

    Layer.translate (X, Y) / / if I'm wrong, it must be not - string

    bitsaveoptions. Method = ChanelScreen; in menu drop-down

    bitsaveoptions.angle = KAngle / / if I am mistaken, this must not be one - integer

    bitsaveoptions. Frequency = ChanelFrequency; If I am mistaken, this must not be one - integer

    bitsaveoptions. Resolution = ChanelResolution; If I am mistaken, this must not be one - integer

    bitsaveoptions. Shape = BitmapHalfToneType.ROUND; in menu drop-down

    I know that there are different ways to retrieve data from a window how .value, and perhaps others, but I can't seem to extract the data from user input

    Any advice would be greatly appreciated.

    Thank you.

    PS I work with Photoshop CS5

    That's what I have so far.

    = Ruler with millimeters

    app.preferences.rulerUnits = Units.MM;

    var doc = app.activeDocument;

    var layer = doc.activeLayer;

    var dropdownlistArray = new Array(); / / the table of drop-down lists.

    var chosen_action = null;

    var ScreenShapeArray = new Array)

    "Round."

    "Elliptical".

    );

    var WinContent =

    "dialog box {------}.

    orientation: 'column ', \

    alignChildren: ['fill', 'top'],

    preferredSize: 300 (130) and \.

    text: "Export settings"------

    margins: 15,.

    \

    Coordinates: Panel {------}

    orientation: 'column ', \

    text: "Quarters of channels,"------

    margins: 15,.

    alignChildren: 'right ', \

    KChanelX: Group {------}

    St: StaticText {text: 'X:'}, \

    you: EditText {text: '15', characters: 4, justify: 'just'} \

    ST2: StaticText {text: 'mm'}, \

    } \

    KChanelY: Group {------}

    St: StaticText {text: 'Y'}, \

    you: EditText {text: ' 10', characters: 4, justify: 'just'} \

    ST2: StaticText {text: 'mm'}, \

    }\

    }\

    bottomGroup: Group {------}

    cancelButton: button {text: 'Cancel', properties: {name: 'Cancel'}, size: [120,24], alignment: ['right', 'Center']},

    applyButton: button {text: 'Apply', properties: {name: 'ok'}, size: [120,24], alignment: ['right', 'Center']},

    }\

    }"

    = Create object window

    var win = new Window (WinContent);

    = Display window

    Win.Show ();

    var X = parseInt (win. Coordinates.KChanelX.te.selection);

    var Y = parseInt (win. Coordinates.KChanelY.te.selection);

    alert (X); Here I get NaN

    alert (Y); Here I get NaN

    If (typeof (X) = 'undefined' | typeof (Y) = "undefined") {}

    Layer.translate (X + "mm", "-" + Y + "mm");

    } else {}

    Alert ("here"); Always end - up here regardles of canling or accept the default values

    };

    You don't have a selection in an edittext field. Like c.pfaffenbichler said - you get your X and your Y's

    var X = win.Coordinates.KChanelX.te.text;
    

    and so on:

    var X = parseInt(win.Coordinates.KChanelX.te.text); // or
    var X = Number(win.Coordinates.KChanelX.te.text);
    

    Have fun

  • AutoComplete suggests my user ID and date of birth on the log in page of my savings account - how can I stop this?

    Most of the time the AutoComplete is really useful. However, when I connect my savings account, my user ID and date of birth are available, allowing anyone on my PC to check my account (a security code is required for all transactions which does not seem to be autocomplété!) - how can I turn off this please? This started because I reset Firefox (because of the slow, such as recommended by Firefox). Thank you.

    I know how you can do this:

    1. Delete an AutoComplete suggestion menu entry drop-down
    2. Disable completely auto form fill
    3. Clear all saved form autocomplete entries
    4. Entered AutoComplete clear form selected (using an add-on)

    but I don't think that Firefox has a built-in feature to be selective in what he recorded in the first place.

    For items numbered above:

    (1) when the suggestion appears, use the arrow keys on the keyboard to select the suggestion unwanted in the list and press the delete key.

    See: control if Firefox automatically fills in forms.

    But I don't think that this blocks Firefox to save again in the future.

    (2) change your privacy settings in the Options dialog box

    "3-bar" menu button (or tools) > Options > privacy

    If set ' Firefox will be: remember history ' to take ' conservation rules: use the custom settings for history. " Then you can uncheck the box ' Remember search and form history.

    (3) clear all AutoComplete form data saved

    To clear everything, you can use:

    button '3-bar' menu > history > clear recent history

    If you do not see a list of check boxes, click the Details button. Deselect all categories other than "Form & Search History" for those who are kept. At the top, set the time interval, and then click clean now.

    (4) clear SOME saved form autocomplete entries (when you are not currently using the form)

    You need an add-on for that. In the past, I've only tried this one, but there might be other good: https://addons.mozilla.org/firefox/addon/form-history-control/

  • guys, how can I stop backup during I use cellular data

    guys, how can I stop backup during I use cellular data

    iCloud backup requires a wi - fi connection. It does not backup when only cellular data are available. See: get help from backup of your device in iCloud - Apple Support

  • All phones on my account share calls and data. How to separate users

    Since I got my new iPhone 6 all my data and incoming phone calls are shared with my wife that a phone is on the same account. How to separate users?

    She create her own AppleID, and then disconnect from iCloud, iMessage and FaceTime and then connect back with his new AppleID

Maybe you are looking for