Apex supplied javascript function

Hi,
Anyone know where can I find all the apex supplied javascript function?
Thanks
Vincent

Hello Vincent ,
Carl’s application - http://apex.oracle.com/pls/otn/f?p=38704:1 – is the best source for now.
The JavaScript library should be officially documented as part of the upcoming 3.1 version.
Regards,
Arie.

Similar Messages

  • Documentation for Javascript Functions

    Where do I find documentation for APEX provided javascript functions such as addRow();?

    WaltK wrote:
    Where do I find documentation for APEX provided javascript functions such as addRow();?
    addRow is undocumented.
    Documented JavaScript methods are described in the API Reference, other documentation for the current version is located on the APEX Documentation page. Documentation for previous versions is located in the documentation archive.

  • JavaScript function which fetches return_value from List of Values

    Hi,
    I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
    I am new with this and don't know how to handle this case.
    Please help me.

    Hi,
    The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
    This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
    I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
    Cheers,
    Tom.

  • Javascript-function doesn't work with user nobody

    I recently started to use AJAX with APEX. I defined a Application Process and a Javascript-Function which fetch values from a Lookup-Table into some fields, which works great. Except when I make the page available public (user nobody), then it doesn't work anymore.

    Hello,
    Do you have page 0 (zero) in your application? If you are using page 0 as a parameter in your htmldb_Get function, the page must be public (http://htmldb.oracle.com/pls/otn/f?p=11933:63).
    Regards,
    Arie.

  • How to execute a javascript function in the body onload?

    Hi everyone!
    As you know in the HTML body attribute. You must specify the value of onload
    What is the correct sintaxis for execute a function since in the onload body?
    I only want to do some like this, but only I do it in APEX:
    <body onload ="javascript:namefunction();" >
    I do not know how to use #ONLOAD# when you using want to set some value.
    Could u help me please ?
    Any help would be very appreciated.
    Thank u in advance
    Best Regards

    Hi Chris
    Thank you for your help
    I tried with the next code but it doesn´t work.
    Do you know for what?
    Best Regards
    I paste the next code in the HTML Header :
    <head>
    <script language="JavaScript" type="text/javascript">
    function addLoadEvent(func){
    var oldonload = window.onload;
    if (typeof window.onload != 'function'){
    window.onload = func;
    else {
    window.onload = function() {
    oldonload();
    func();
    function ejecuta()
    doSubmit('ACEPTAR_R')
    addLoadEvent( ejecuta );
    </script>
    </head>

  • How to call javascript function from PL/SQL procedure

    Can anybody advice me how to call javascript function from PL/SQL procedure in APEX?

    Hi,
    I have a requirement to call Javascript function inside a After Submit Process.
    clear requirement below:
    1. User selects set of check boxes [ say user want to save 10 files and ticks 10 checkboxes]
    2. user clicks on "save files" button
    3. Inside a After submit process, in a loop, i want to call a javascript function for each of the file user want to save with the filename as a parameter.
    Hope this clarify U.
    Krishna.

  • Select list display value in javascript function

    Hi All,
    I have a select list in a tabular form having a display value & return value.
    I am using $x(var_name).value or $v(var_name) for retreving return value of the select list in a javascript function.
    Can anyone let me know how can I get the display value of the select list in a javascript function? Im using Apex 3.2
    Thanks & Regards,
    Sandeep

    What if the select list is not an item. Select list I am talking about is in a tabular form.Regardless of how they're generated in APEX, in JavaScript they're all DOM nodes. There are many ways of accessing the node of the required element. Consider the Items for Order... tabular form on page 29 of the Sample Application:
    var productNameLOV = document.wwv_flow.f04[0] // select list containing name of product on first order line
    var productNameLOV = $x("f04_0001") // another way of accessing the same node, using the ID attribute generated by apex_itemWe can see this using the Safari console:
    => productNameLOV = document.wwv_flow.f04[0]
        <select name="f04" id="f04_0001" autocomplete="off">…</select>
    => productNameLOV = $x("f04_0001")
        <select name="f04" id="f04_0001" autocomplete="off">…</select>Once you've got the node&mdash;however you get it&mdash;you then use the methods shown above:
    => i = productNameLOV.selectedIndex
        3
    => productNameLOV.options.text
    "Business Shirt [$50]"
    So it appears you would use:var item = document.wwv_flow.f01[i];
    var selected = item.selectedIndex;
    var selectedOption = item.options[selected].text;
    This is meaningless:...
    var my_var = document.wwv_flow.f01[i].id; // f01 is tabular column of select list
    if ($x(my_var) == 'display_value') //$x(my_var) is having return value, but i need display_value there
    <tt>$x(my_var)</tt> returns a DOM node object, whilst <tt>'display_value'</tt> is a string: they are not comparable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Filter items are not set via Redirect to a javascript function

    Hi,
    i have a page with a few filter items and a button which redirects to a javascript function. The problem is that the filter items are NULL in the called javascript function. If i do a submit via another button before then it works.
    Here the details:
    URL Target of the button: javascript:callReport('f?p=&APP_ID.:1:&SESSION.','bir.bir_api.printReportBi?pSessionId=&SESSION.&pBu=&P250_FILTER_BU.&pSupplyTeam=&P250_FILTER_SUPPLY_TEAM.&pMaxBiEff=&P250_FILTER_BI_EFF_MAX.&pGroup=&P250_FILTER_GROUP.');
    Called javascript function:
    function callReport(p_href,p_url)
      var url;
      url = document.getElementById(p_url).value;
      w = open(url,"winRep","Scrollbars=1,resizable=1,width=1100,height=800");
      if (w.opener == null)
        w.opener = self;
        w.focus();
      // wait 5 seconds before reloading
      setTimeout("waitSome()",100);
    Many thanks in advance.
    Regards,
    Martin

    Hi Martin,
    In my example I do a refresh of the report region using  adynamic action. In the report source I've set my filter item as "Page item to submit".
    To open the link for the pdf report I use a dynamic action that fires after refresh of the report region.
    That's it.
    If you want to use your callReport function and need to submit your filter items first, you could try using a ajax post to send the filter values to the database. There's a nice explanation on ajax post in this blog:
    http://apextips.blogspot.nl/2012/09/apex-ajax-basics.html
    Good luck,
    Vincent

  • Calling Javascript function from PL/SQL Process

    I am new to APEX and Javascript so please forgive my question.
    I have a process on page which successfully runs a few procedures etc. but now, as part of this process, I want to call a javascript function I have typed into the HTML Header.
    My question is how can I call the javascript function from my process? Is it possible?
    Many thanks
    Winnie
    ps. as an example my javascript looks like:
    <script language="JavaScript">
    function test(){
    var decision = confirm("Click a button below and watch what pops up next.");
    alert(decision);
    </script>

    See: How to call a javascript function from pl/sql?

  • PL/SQL Javascript Function Call

    Can anyone offer some help on this? I am attempting to get a javascript tool tip to work on an application I am developing. I have developed a line calendar using PL/SQL outputting HTML. When I embed a javascript function into my PL/SQL htp.p function, the javascript appears to go a little crazy. Here is an example of my code:
    "htp.p('<td onMouseover="ddrivetip("Yahoos Site", "yellow", 250)"
    onMouseout="hideddrivetip()">Yahoo</td>')
    I have tried a few iterations, using different javascript, and I always get the same result. The double quotes used in the onMouseover and onMouseout function calls are a result of PL/SQL not liking single quotes. The entire code for the tooltip can be found on dynamic drives page:
    http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
    The CSS and javascript code is placed as appropriate in the HTML page header. Am I missing something on the htp.p command?
    Message was edited by:
    jason97m
    Message was edited by:
    jason97m

    This post covers it well.
    http://inside-apex.blogspot.com/2007/08/using-tooltips-in-oracle-apex.html
    Good luck.
    Brian

  • Get table ID for drill down (javascript functions)

    I want to implement some custom drill downs. When you click on a column to drill down, it uses the following javascript function: RTDr(saw_5_6,0,0) where in this case, "saw_5_6" is my current table. Since this is dynamically set and the table name can change, is there a property that i can get this table name from?
    I see where the object is created....(dynamically I might add)
    window.saw_5_6 = new Object();
    saw_5_6.sJSObjName = 'saw_5_6';
    Just wondering if there is a way / property that gives me this information so I can call RTDr() and supply it the correct table name.
    Thanks.
    Edited by: Derek on Nov 9, 2010 2:28 PM

    If there is only one table on the page then you can use my function as it is. I wrote it to implement custom writeback. Of course you can modify it to get all table objects.
    function getSawTableObject(){
         var ptrSawTableObjectName = /saw_.\d/;
         var obj = null;
         for (var propertyName in window){
              if ((ptrSawTableObjectName).exec(propertyName) && String(propertyName).charAt(0) == 's'){
                   obj = window[propertyName];
                   break;
         return obj
    }

  • Passing text including special characters to Javascript functions

    I need to call a Javascript function with some text retrieved from the database, which may include carriage returns, line feeds etc. I need to change these to the Javascript escape characters "\r", "\n" etc. I can easily write my own function to do this, but suspect there may be a built-in one somewhere I could be using - but can't find one. Is there one?

    Tony,
    I tried using XMLDB_GEN.CONVERT and it worked for me:
    DECLARE
       v_value_to_save   VARCHAR2 (30);
    BEGIN
       v_value_to_save := DBMS_XMLGEN.CONVERT (:t_sql, 1);
       UPDATE my_table
          SET my_column = v_value_to_save
        WHERE my_key = :my_key_value;
    END;
    DECLARE
       v_value_to_select   VARCHAR2 (30);
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       FOR c IN (SELECT my_value
                   FROM my_table)
       LOOP
          v_value_to_select := DBMS_XMLGEN.CONVERT (c.my_value, 0);
          HTP.prn (v_value_to_select);
       END LOOP;
    END;
    /Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Javascript Functions for 4.2?

    Does anyone know where to find a list of all the javascript functions in APEX 4.2?

    In the documentation:
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/javascript_api.htm#CDEEIGFH

  • Confirm() javascript function -  I would like Yes/No instead of OK/Cancel

    Hi All,
    I am using the confirm() javascript function and it works great! BUT, I would like Yes/No instead of OK/Cancel.
    Is there another function or a way to change the names used by the function.
    <pre>
    function SubmitCmd(sCmd) {
    var lpartial = html_GetElement('P44_PARTIAL').value;
    if(lpartial == 'Y'){
    // Go see if this partial exists for this ISD
    var l_DIST = html_GetElement('P44_DDDCCC').value;
    var l_ISBN = html_GetElement('P44_ISBN').value;
    var l_BKTYP = html_GetElement('P44_BK_TYPE_CD').value;
    var lapp=html_GetElement('pFlowId').value;
    var lpg=html_GetElement('pFlowStepId').value;
    var get=new htmldb_Get(null,lapp,'APPLICATION_PROCESS=odpExistingPartial',lpg);
    get.add('G_ITEM1',l_DIST);
    get.add('G_ITEM2',l_ISBN);
    get.add('G_ITEM3',l_BKTYP);
    var lexisting = get.get();
    get=null;
    if(lexisting != 0){
    // Show Alert Question
    var conf= confirm("There was a partial found for this ISBN and ISD."+
         "<BR>Do you want to add this partial to the existing one"+
         " found?");
    if (conf) {
         // Set up to call existing copy in Partial screen.
         html_GetElement("P44_COPY_ID").value = lexisting;
         doSubmit('ADD_PARTIAL');
         return;
    doSubmit('CREATE');
    </pre>

    Hello,
    The confirm() function is a built-in JavaScript function which you can’t alter.
    You can build your own dialog box, with any text and options you need. Search Google for “JavaScript modal dialog” and you’ll get references to a lot of examples. Not all of them are trivial to implement within APEX.
    BTW, if you want your code to maintain its format, you should use the forum internal tags [ code] and [ /code] (without the blanks). This way your code will be readable.
    Regards,
    Arie.

  • Call javascript function after submit process

    Hi,
    How can I call javascript function after my submit process ?
    Thanks.

    Hi Carl,
    You say that I must have an Item or region that contains my js with conditionnal display. With this method I can execute my js with specific request value.
    My problem is that I tried to integrate the "save large value workaround" in my application with the APEX wysiwyg (fckeditor). To do that I have to call the javascript function clob_submit on the save button. This function save the value of my field but if I want to save other item value, how can I do that ?
    If I use your method, I will submit the page, save the other field and after that, I will branch on the same page. At this moment, I will execute my javascript file.
    Is it what did you said ?
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

Maybe you are looking for

  • Why is my computer telling me to turn ON my HP officejet 8500 all in one? It's ON!

    My HP officejet 8500 all in one printer is powered on. The fax and copier are working but when I try to print my computer (windows 7 pro 32bit) tells me to power on my printer. I had trouble with my DSL internet server yesterday and installed a new m

  • Install problems

    I am running into a strange issue trying to install Data Integrator the install is saying that I am missing files that are there and are in the path any ideas? This is Red Hat Enterprise Server 5.2 btw, and ODI 10.1.3.2.0. The exception thrown is sta

  • Why can't I install LR5 on Vista 64?

    I have LR5 beta running fine on my Vista64 set up (6 core processor, 16gb ram, HD7770oc 1GB graphics card), but the latest trial states "Needs Win7 or above to work." Given that the core of win7 is the same as Vista, and pretty much every program wri

  • How do I install Cs3 from disk, after trashing the trial version?

    I've made the mistake of trashing the trial version of Cs3 that I had on my imac a few years ago. Now I'd like to install photoshop cs3 on my imac as my other computer is out dated and I get the error message that CS3 is conflicting with CS3 on the c

  • Logs for network processes

    hi, i know about bdump and udump, but where do the logs for network processes go? and what exactly are oracles network processes? thhanks