How to make generic the javascript funtion in oracle adf

hi,
i created some validation funtion in javascript in resource folder.i am passing parameter input text id(which is in my adf page) in javascript funtion .but i want to use tat validation function for my whole application page.pls help me

Hi,
+"i created some validation funtion in javascript in resource folder.i am passing parameter input text id(which is in my adf page) in javascript funtion .but i want to use tat validation function for my whole application page"+
1. put the JS into an external JavaScriot file and reference it from af:resource. Don't copy it into all your pages
2. If you have common validation to perform, then create a custom validator instead of calling JS functions
http://docs.oracle.com/cd/E23943_01/web.1111/b31973/af_validate.htm#autoId20
Frank

Similar Messages

  • Integrate javascript event into Oracle ADF Components

    Can someone show me how to use javascript attribute, for instance onclick, in CoreCommandButton? How do we normally integrate javascript event into Oracle ADF Components?

    Hi,
    you already have a link. Its not an Oracle project but a project of Wilfred from Eurotransplant. Feel free to ping him directly on this or ask this question on the Forms forum, if you haven't already, where he most likely is signed up for.
    Frank

  • I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    You can secure the file and prevent access to the code, but it's very easy
    to overcome that. Alternatively you can use a code obfuscator to make the
    code less legible.
    On Feb 11, 2015 3:51 PM, "marcogolinelli88" <[email protected]>

  • I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma

    I have added a 5 songs from a single album and in Ipod it comes as enigma album and in that one song is available and another album named enigma and another song. IT happens for 5 songs also. How to make all the 5 songs in one album name Enigma???

    I am working on a friend of mine's 15g ipod(W/dock connector)and I am having the same trouble except it does it to all the songs. I have tried reseting it multiple times, but to no avail.
    I am not sure that this runs on windows XP, it is absolutly archaic (compared to my 5th gen. 30g video).
    Help?
    15g ipod (w/dock connector)   Windows XP  
      Windows XP  

  • How to know whether the javascript is disabled or not while loading the jsp

    Hi,
    My query is like how to know whether the javascript is disabled or not while loading the Application main JSP in Mozilla browser.
    I want some Java code or JavaScript code.

    To the point, just let JS fire a specific HTTP request inside the same session.
    This can be done in several ways. 1) Create a hidden <img> element and set the `src` attribute so that it will request a (fake) image from the server. The server just have to intercept on this specific request. 2) Fire an ajaxical request and let the server intercept on it. You can use a Filter for this which sets a token in the session scope to inform that the client has JS enabled.

  • How to make Firefox the Default search engine on Android Kitkat

    HTC Desire 816 with Google set as Default

    Here's how to [[Make Firefox the default browser on Android]] .
    [https://support.mozilla.org/en-US/kb/make-firefox-default-browser-android]
    Did this help you? We will love to hear from you.
    Thanks.

  • How to make QuickTime the default player again?

    How to make QuickTime the default player again?

    Two finger Click on the file and then select get info.
    It will open a window.
    Srcoll down to open with.
    Select Quicktime.
    Then select change all.
    After that, all MPEG 4 or the type of file that video is, will be defaultly opened by quicktime.
    Hope this helped!

  • How to make add the program system.out messages to a applet text field?

    How to make add the program system.out messages to a applet text field?
    System.out.println("I wanna displany this message on a applet text field, thanks");

    You may wish to change the output destination to a JTextArea. Please have a look at this link that likely shows what you want:
    [http://forums.sun.com/thread.jspa?forumID=54&threadID=640376|http://forums.sun.com/thread.jspa?forumID=54&threadID=640376]
    If you need other examples, search the forum. I found the search terms -- redirect system out textarea -- very helpful.
    Good luck

  • How to make Default the Higher-Level Manager of the employee

    Dear experts,
    how to make Default the Higher-Level Manager of the employee as Further Participant in performance management ?
    Regards,
    TVS

    Hi,
    The delivered BAdI below defaults in both the appraiser and appraisee as part-appraisers//Default Further Participants.
    BAdI Area: Appraisal Enhancements
    BAdI Definition: HRHAP00_DOC_DEF_DO (Appraisal - Default Further Participants)
    App. Enhn.: DEFAULT_ALL_MANAGERS     
    Implementation: HRTMC_DEF_OTHERS
    Implementation short text: Determine All Managers
    Implement this BADI  in SE18/SE19 and  write the desired code in the  BADI methods
    Hope this will help u out.....
    Regards
    Lakhan

  • You sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

    you sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

    you sent the iphone 4s in Italy with the program 'Syrians', which is beautiful but you put the Italian language nn .. nn is normal .. how to make even the Italian language ..

  • How to make gmail the main post?

    How to make gmail the main post?

    Add it into the mail application - it will automatically become your default email
    Or are you asking to for it to be your main email on the Apple ID?
    http://iforgot.apple.com/appleid
    You can change it there

  • How to make iTunes the default on my MacBook Pro

    I recently updated iTunes and now I'm having trouble making it my default music player. Any ideas?

    Hi ajjacoby14,
    To make iTunes the default application to use for playing music, use the steps found in this article -
    iTunes for Windows: How to make iTunes the default application for music and audio files
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to make in the loop codes?

    How to make in the loop codes to have like my output(below)?
    For example:
    I am trying to figure out how to make them correct the way I want to have the output.
    String start = "02-01-08";
    String end = "02-29-08";
    Calendar a = new GregorianCalendar();
    while( start <= end ) {
              a.add(Calendar.DAY_OF_WEEK, 7);
              Date d = a.getTime();
              DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
              String ss = df.format(d);
              System.out.println(ss);
    }The output:
    +02-01-08+
    +02-08-08+
    +02-15-08+
    +02-22-08+
    +02-29-08+
    Anybody know how to make it correct?

    artist_tech07 wrote:
    I am confused where is the answer in the doc that you gave me?Read my first reply and read the docs. Then read them again.
    And then re-read this
    To do what you want you need a start and end Dates. These you can compare in one numeric form or the other. For example by using getTime.
    Then during each loop iteration you will need to add *1 day (using the Calendar)* to the start date.
    I am telling you what methods to use. I have told you were you can find those methods. I have given you a link to the Calendar class API. All you have to do is put 2 and 2 together. Or at the very least make an attempt to do so.

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • How to make sure the maps are loaded though nokia ...

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

    Hi,
    I have downloaded new nokia map v.3.0109 to my nokia E75 and loaded maps by using nokia map loader (Asia).
    but still I cant see the all regional map which I downloaded, without usign live internet connection.
    How to make sure the maps are loaded properly to my mobile ?
    with regards
    Moderator's note: Email address removed. It is not wise to publish your personal information on a public forum.
    Message Edited by myn1126 on 27-Jan-2010 07:54 AM

Maybe you are looking for

  • Display ISO week number instead of date on x axis in Bar Chart

    Hi, I've created a simple SSRS report based on bar chart that shows several milestones. Everything works fine for me except I'm not able to convert the date into ISO week number format. I played around with different approaches. I was able to convert

  • Reg:Steps in IDOC Scenario

    Hi,     I am very new to IDOC concept so can anyone tell me what is the use and why do we want to create, 1)RFC Destination 2)Port 3)Logical sysytem name 4)Partner Profile ,in IDOC Scenario and also let me know the steps that I have to implement  whi

  • Exchange 2007 In SCR Setup

    We have MS Exchange 2007 +SP3 Setup. Two sites in exchange 2007 in Standalone mailbox, one is in Mumbai and another placed in chennai.  We have enabled SCR on both Servers, both server having  passive copy of each other databases. Last Friday, there

  • ValueChanged- and keyReleased-Events in JTree

    Hello, Suppose I have Items in a JTree. Any time the selected item changes, heavy work has to be done to get the details of the node and present it to the user. Suppose further the user uses the arrow-keys to scroll through the list an he holds down

  • HT4623 App Store message for app  updates availab, hit update all, now apps are frozen?

    I have several apps that are frozen..I hit the update all prompt to update 33 aps on my Ipad and now they are all frozen..