How can i add multiple validations for a single input box in adf?

hi,
i want to add multiple validation for a single input text control in adf like number validation and its existence in database.
MY JDEV VERSION IS 11.1.1.5.0
pls help !!!!

Hi,
1.I want to validate if the value entered is pure integer
Option 1-
select the component and in the Property Inspector, in the "Core" category select a "Converter" format, select javax.faces.Number, if the user put a string, adf show a dialog error or message error...
Option 2-
or use the Regular expression:-
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_validateRegExp.html
https://blogs.oracle.com/shay/entry/regular_expression_validation
Also check this:-
http://docs.oracle.com/cd/E15523_01/web.1111/b31973/af_validate.htm#BABHAHEI
Option 3-
Frank in his great book 'Oracle Fusion Developer Guide' shows a example using a javascript for input which is allowed only for numbers. You can manipulate for your requirement.
Here is the code:
function filterForNumbers(evt) {
    //get ADF Faces event source, InputText.js
    var inputField = evt.getSource();
    var oldValue = inputField.getValue();
    var ignoredControlKeys = new Array(AdfKeyStroke.BACKSPACE_KEY, AdfKeyStroke.TAB_KEY, AdfKeyStroke.ARROWLEFT_KEY, AdfKeyStroke.ARROWRIGHT_KEY, AdfKeyStroke.ESC_KEY, AdfKeyStroke.ENTER_KEY, AdfKeyStroke.DELETE_KEY);
    //define the key range to exclude from field input
    var minNumberKeyCode = 48;
    var maxNumberKeyCode = 57;
    var minNumberPadKeyCode = 96;
    var maxNumberPadKeyCode = 105;
    //key pressed by the user
    var keyCodePressed = evt.getKeyCode();
    //if it is a control key, don't suppress it
    var ignoreKey = false;
    for (keyPos in ignoredControlKeys) {
        if (keyCodePressed == ignoredControlKeys[keyPos]) {
            ignoreKey = true;
            break;
    //return if key should be ignored
    if (ignoreKey == true) {
        return true;
    //filter keyboard input
    if (keyCodePressed < minNumberKeyCode || keyCodePressed > maxNumberPadKeyCode) {
        //set value back to previous value
        inputField.setValue(oldValue);
        //no need for the event to propagate to the server, so cancel
        //it
        evt.cancel();
        return true;
    if (keyCodePressed > maxNumberKeyCode && keyCodePressed < minNumberPadKeyCode) {
        //set value back to previous value
        inputField.setValue(oldValue);
        evt.cancel();
        return true;
2.I want to check if the value exists in my respective DB You must be having EO or VO if you want to validate with database in that case use the solution suggested by Timo.
Thanks
--NavinK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How can I add one seat for a single app to a team account?

    We currently have a team for our art department, which needs Photoshop, Illustrator, In Design and Acrobat.  We have other departments that just need Acrobat.  How can I add one seat, that has access to only one App so I'm not paying the full price?

    Did you ever figure this out? I need Photoshop single licenses and Adobe is making this ridiculously difficult...

  • How can I add multiple contacts to a text message on a droid bionic

    How can I add multiple contacts to a text message on a droid bionic?

    DH
    I was thinking that if he wanted to create multiple keyframes he might be creating a repeated effect rather than manipulating values that are shot specific - like creating an oscillation or some repeated step effect.  If he was creating keyframes specific to his content he'd probably not look for a way to do it "quickly" since each keyframe would require manipulation of specific values. 
    So my thought was to generate the series of keyframes on a dummy clip created for this specific purpose, copy the clip, paste attributes (maybe turn off "Scale Attribute Times") and add bunches of keyframes at once. 
    Still, you're right, it's tough to divine the intent of someone very new to FCP.  His question could be based on a misunderstanding about the use of keyframes.
    P

  • HT201317 how can I add multiple photos to camera roll

    how can I add multiple photos to camera roll

    If you mean from photo stream, open your photo stream album on your phone in the thumbnail view, tap Edit, tap all the photos to select them, tap Share, then tap Save to Camera Roll.

  • How can I add multiple email addresses to Address Book?

    How can I add multiple email addresses to Address Book?
    Can it be done from an .xlsx file?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • How can I add multiple email addresses  from spreadsheet into email?

    how can I add multiple email addresses  from spreadsheet into email?

    I have tried that, but the system reads the emails as one long email and I can't find any way of separating them - it ignores spaces, colons and I have also tried putting them through a word doc... still does not work. It works perfectly easily on a PC system!! ( I have just moved to a mac!)
    any ideas would be good
    thanks

  • How can we do the validation for non visible records in table control.

    Hi Experts,
      I have a table control which displays list of material details. I have a button to upload the material details from excel file to table control directly. I have to validate all the customers which are exist in the table. But my item (Material) table control displays only 5 rows i.e only 5 entries are visible in module pool screen. The validation is done for 5 records only in PAI event, but i need to do validation for rest of the records too (Which are not visible on items table), if validation fails then needs to display error message.
      How can we do the validation for non visible records in table control.
    Regards,
    Bujji

    Hi,
    try validating material before displaying it in table control...'
    Rgds/Abhhi

  • How can I add multiple, successive destinations in "Maps" such as on a delivery trip with several stops ?

    How can I add multiple, successive destinations in"Maps" such as on a delivery trip with multiple stops and so needing driving directions i.e. set up a route ?

    Maps help:
    Mark a location with a pin
    You can drop a pin on a location to get directions or help you find it again. 
    Open Maps
    On your map, go to the location you want to mark with a pin.
    Choose View > Drop Pin. If the pin isn’t exactly where you want it, put the pointer on it and hold down the button until the pin “hops.” Drag the pin into place, then release the button.
    To see information about a location, click its pin, then click the Info button. To close the Info window, click outside of it.
    To remove a pin, select it, then choose View > Clear Pin.
    Get directions
    Using Maps, you can get directions to help you navigate on foot or behind the wheel. Once you've decided where you're going, click the Share button to send your map and directions to your iPhone. (Your iPhone must have iOS 7 and be signed into the same iCloud account as your Mac.) 
    Open Maps
    Do one of the following:
    Click Directions to open the directions sidebar, then enter the starting and ending locations.
    On the map, click a pin to display its info banner, click the info button to see more info, then choose “Get Directions.” (If your starting location doesn't have a pin, you can Control-click or tap it with two fingers, then choose Drop Pin.)
    Click either the car (driving directions) or person (walking directions).
    If multiple routes appear on the map, click the one you want to take.
    To zoom in on a turn, click it in the directions sidebar.
    To close or reopen the directions sidebar, click Directions in the toolbar.

  • HT3500 How can I add WPS (pin)  [for a WiFi capable CAMERA] to Time Capsuale WiFi

    Hi,
    How can I add WPS (pin)  [for a WiFi capable CAMERA] to Time Capsuale WiFi network?
    Regards

    I suggest that you use the Add Wireless Clients feature in AirPort Utility.
    Normally, this feature is used to add a wireless printer, but it will work with any wireless device.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Select the Time Capsule and click Manual Setup
    Click the Base Station tab at the very top of the screen
    Click Add Wireless Clients

  • How can if add multiple addresses into Contacts

    In OS 10.9.5 how can if add multiple addresses from from a tab separated file into contacts.
    I have a txt file with fields separated by tab and each and each record terminated a return,
    Importing using file>import tries to put all the data onto a single card
    Help

    Contacts – Import/Export

  • How can i scan multiple pages in a single file in pdf.

    How can i scan multiple pages in a single file in pdf using 1536 dnf.

    Hi @veerendrajain ,
    I see that you would like to save multiple PDF documents into one file. I would like to help you out today.
    In the HP Scan Software, select Advanced scan settings, click on the File tab and uncheck Create a separate file for each scanned image.
    Hope this helps.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How can we save multiple IDocs as a single Flat file in R/3 system ?

    Hi,
    How can we save Multiple Idocs as a single Flat IDoc in R/3 (Not xmlized)
    Kulwinder

    Hi,
    Check this link for Mutiple IDOCs into single File.
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    Regards,
    phani
    Reward points if Helpful:)

  • Can I add multiple elements on a single line?

    Can I add multiple elements on a single line?

    Not yet. But this is something we plan to support. You can vote on this idea here: http://forums.adobe.com/ideas/1046
    We use this to help prioritize our work.
    Randy

  • How can we give two name for a single material ??

    Hi friends
    how can we give two name for a single material ??
    e.g.. if single material is sold to different customer by different names
    then how can we do that ??

    Yes
    you can achieve it thro CMIR in T code VD51
    Go to T code VD51 choose that customer and material combination and click on to its details blue lens on application tool bar
    In the screen which is coming ,enter your description in the CUSTOMER DESCRIPTION tab the second one and save
    Now create a sales order and see
    Your requirement will be fulfilled
    If a material is pen description is ball pen in material master and for customer A you have defined it as Pen 1 and description as Super ball pen in VD51
    If a material is pen description is ball pen in material master and for customer B  you have defined it as Pen 1 and description as  VerySuper ball pen in VD51
    Now in sales order the description will appear as Super ball pen for Customer A
    Now in sales order the description will appear as Very Super ball pen for Customer B
    Hence the material pen whose description is ball pen in MMR will appear as super ball pen for customer A and very super ball pen for customer B
    Hope you have checked the field info record in VOV8
    I have tried this tested this and getting it
    Regards
    Raja
    Edited by: ramanathan raja on Dec 8, 2008 5:54 PM

  • How do I scan multiple documents to a single pdf from the ADF on my MX922?

    How do I scan multiple documents to a single pdf from the ADF on my MX922?
    Solved!
    Go to Solution.

    Hi Riceburner1,
    Since you have had difficulty scanning using My Image Garden, you can scan using the IJ Scan Utility program that also comes with the printer.  To do this, please follow these steps:
    1. Place the documents in the ADF or on the platen glass of the printer.
    2. Start the IJ Scan Utility.
        For Windows 8.1:
        1. On your keyboard, press the Windows key.
        2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it, then continue with Step 3 below.
        For Windows XP:
        1. Go to your START MENU, then select ALL PROGRAMS, then CANON UTILITIES, then the IJ SCAN UTILITY program.
        2. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears. Please continue with Step 3 below.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window. In the Select Source field of the Scan Options section, select DOCUMENT (ADF/PLATEN) to scan items placed directly on the platen glass, DOCUMENT (ADF SIMPLEX) to perform single-sided scanning from the ADF, or DOCUMENT (ADF DUPLEX) to perform double-sided scanning using the ADF. You can then set the item size, resolution, etc. in the Scan Options section as desired.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
         a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.  Please note that the filename that you give the document here will be the default filename for all items scanned until you change the file name.  If you leave the file name the same in the field, the scanned item will have a sequential number appended to the end of whatever name you give it.
         b.) In the DATA FORMAT field, use the drop-down arrow to select the desired option. If you are scanning a multipage document, select the PDF (Multiple Pages) option.
         c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6.  In the APPLICATION SETTINGS section of the window, please select the DO NOT START ANY APPLICATION option.  
    7. Once all settings have been selected, click the OK button at the bottom of the SETTINGS (DOCUMENT SCAN) window. The IJ Scan Utility main screen appears.
    8. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed.   Once the scan is completed, scanned images are saved in the previously selected folder location specified in the SETTINGS... window.
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • How do I access my hard drive connected to airport extreme?

    I've already imported video to my hard drive. I had it previously connected via firewire. It's there in an imovie 08. However, when I open up imovie in the "Event Library" panel, my hard drive has a yellow triangle with an exclamation point on it. Do

  • Vendor line item report based on profit centre wise like FAGLL03

    We have profit centre wise GL Line item report i.e FAGLL03.  Is there any such report for vendor line items with profit centre. I want to see open items of vendor for a particular profit centre.

  • Including BPEL as part of the J2EE Spec

    Can someone tell me if the BPEL stuff is going to be included in a future version of the J2EE spec? The reason I ask is because there are certain application servers on the market that no longer allow you to deploy a BPEL process, now you have to wra

  • Weblogic server giving error , at the time of implementing log4j

    i have implemented log4j logging in weblogic server 11 g release , when i am copying log4j.jar in DOMAIN_HOME/lib folder server is not getting started instead its throwing following error [6:57:44 PM] Girish A Patil: <Aug 7, 2012 6:56:02 PM IST> <Cri

  • Error Executing the BPM

    Hi all, I have configured the BPM with WDJ. When execute the BPM i am getting below error, Context data structure of the UI component "com.sap.demo.testui.wd.comp.scrapuicomp.TestUIComp" does not match the data structure known by the task Interface m