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

Similar Messages

  • Page items are cleared when calling javascript function for a buton.

    Hello,
    Can anyone please help me out with this issue.
    I have a reports region with some editable items and in which I have a button enter errors which opens up an popup window, but for this button i also have save process which updates the report and also calls the javascript function popup window. The reason I am saving the report is because the values entered by user needs to be updated in the table or otherwise the page will be reloaded clearing all the values entered by the user when i click the button enter errors. One more thing is that I also have two hidden items (P1_LOAN and P1_HERITAGE) in the reports region.
    Below is the javascript function which i am calling for the button and also setting the items P2_LOAN_NUMBER,P2_HERITAGE with the values &P1_LOAN.,&P1_HERITAGE.
    function ErrorPopup()
    popUp2('f?p=&APP_ID.:2:&SESSION.::&DEBUG.::P2_LOAN_NUMBER,P2_HERITAGE:&P1_LOAN.,&P1_HERITAGE.','_blank','scrollbars=0,left=200,menubar=0,resizable=0,width=400,height=500,toolbar=0,location=0,directories=0');
    doSubmit('ENTER_ERRORS');
    }And below is my pl/sql update process
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
                 IF WWV_FLOW_ITEM.MD5(                                                      
                                           APEX_APPLICATION.G_f10 (i) ,
                                           APEX_APPLICATION.G_f11 (i) ,APEX_APPLICATION.G_f12 (i) ,APEX_APPLICATION.G_f13 (i)) <> APEX_APPLICATION.G_F45 (i) THEN
    -- Update tbl
              UPDATE sampl_tbl
              SET  col1     =      APEX_APPLICATION.G_f10 (i) ,
                         col2     =      APEX_APPLICATION.G_f11 (i) ,
                         col3     =      APEX_APPLICATION.G_f12 (i) ,
                         col4     =      APEX_APPLICATION.G_f13 (i)
                   WHERE pkcol    =      APEX_APPLICATION.G_f04 (i)         
         END IF;
    END LOOP;
    COMMIT;
    END;The only problem I have is, when I open up the popup window the hidden item values P1_LOAN and P1_HERITAGE are lost. Is their a way to set these item values within the session.
    thanks,
    Orton
    Edited by: orton607 on Jul 14, 2010 10:38 AM

    It HELPS when you solve an issue and POST that YOU SOLVED it, to SHARE the solution so others can learn from you found..
    Thank you,
    Tony Miller
    Webster, TX

  • Javascript function for validating string for length

    hi all,
    i am having a string whose datatype is CHAR in the database and length is 7 .
    can any one help me with the javascript validation code(function) for this?
    regards and thanks in advance

    sigh Another user to the ignore list. :)You should see this thread
    http://forum.java.sun.com/thread.jspa?threadID=632908&tstart=0ram.

  • 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.

  • Problem when calling more than 1 Javascript function

    Hello everybody,
    I am trying to disable fields based on the value in a Select List. There is a table in which values are stored to tell if a field should be disabled for the selected value. I have created an Application Process and a JavaScript function for each field.
    The problem is that only the first function is executed, and the second not.
    I have tried the following:
    onchange="Disable_Dagen(this);Disable_Kg(pThis);"and I have put them together in a parent JavaScript function
    function Disable_Fields(pThis){
    Disable_Kg(pThis);
    Disable_Dagen(pThis);
    }In either case only the first works, so when I change the order then the other one is executed properly.
    Can anyone give me a clue on how to solve this?
    My complete JavaScript definition in the header is as follows:
    (the code in html_DisableOnValue is taken from the example site from Carl Beckstrom)
    <script language="JavaScript" type="text/javascript">
    <!--
    function html_DisableOnValue(pThis,pValue,pThat){
         var lTest;
      if(pThis.nodeName == 'SELECT'){
                   lTest = html_SelectValue(pThis) == pValue;
         }else{
                   lTest = $x(pThis).value == pValue;
         if(pThat){
               for (var i=2;i <= arguments.length; i++){
                          html_disableItem(arguments,lTest)
         return;
    function Disable_Dagen(pThis){
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AP_RETURN_DISABLE_VAL_DGN',0);
    get.add('AI_AFW_CODE',pThis.value);
    gReturn = get.get();
    get = null;
    //alert('Return waarde is '+ gReturn );
    html_DisableOnValue(pThis,gReturn,'P43_AANTAL_DAGEN');
    function Disable_Kg(pThis){
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AP_RETURN_DISABLE_VAL_KG',0);
    get.add('AI_AFW_CODE',pThis.value);
    gReturn = get.get();
    get = null;
    //alert('Return waarde is '+ gReturn );
    html_DisableOnValue(pThis,gReturn,'P43_AANTAL_KG');
    function Disable_Fields(pThis){
    Disable_Kg(pThis);
    Disable_Dagen(pThis);
    //-->
    </script>
    In this case the Form Element property is set toonchange="Disable_Fields(this)"
    Thanks, Wouter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Roel,
    Thanks again for your response.
    There is a lot more to Firebug then I had seen before. Now I have turned on the Console and the Script. Initially I saw the following in the Console:
    C is undefined
    $x_disableItem(undefined, true)apex_3_1.js (regel 1)
    html_DisableOnValue(select#P43_AFWIJKING_CODE, "101", "P43_AANTAL_DAGEN")f?p=104:...2606::::: (regel 38)
    Disable_Dagen(select#P43_AFWIJKING_CODE)f?p=104:...2606::::: (regel 51)
    onchange(change )f?p=104:...FPQ%3D%3D (regel 2)
    [Break on this error] var gDebug=true;var gkeyPressTime;var gL...Options;html_SelectValue=$f_SelectValue;When I removed the comments before the 2 Alerts, I only got one alert when I tested it.
    Then I replaced the function call to html_DisableOnValue to $f_DisableOnValue as you suggested, and that did the trick. Now it Works!
    I still don't know why the html_DisableOnValue function doesn't work. I just copied it from the demo site of Carl Beckstrom. Anyway my problem is solved.
    Have a nice weekend, Wouter

  • Javascript function

    hi experts
    how can i open new report using go url in pop-up window using javascirpt..
    thanks for your help in advance.
    Any help on this please!!!!!!!!!
    regards
    Edited by: ObieeUser on 17-May-2010 06:17

    I did this feature.
    1. Create a javascript function for popup window, for example such that (it's my code your may use yourself)
    function MyPopupWindow(mypage,myname,w,h,scroll)
    var myleft=0;
    var mytop=0;
    var viewportheight = window.parent.innerHeight || window.parent.document.documentElement.clientHeight || window.parent.document.getElementsByTagName("body")[0].clientHeight;
    var viewportwidth  = window.parent.innerWidth  || window.parent.document.documentElement.clientWidth  || window.parent.document.getElementsByTagName("body")[0].clientWidth;
    //alert(navigator.appName);
    //alert(viewportwidth);
    //alert(viewportheight);
    myleft=(viewportwidth-w)/2;
    mytop=(180+viewportheight-h)/2;
    settings="width=" + w + ",height=" + h + ",top=" + mytop + ", left=" + myleft + ",scrollbars=" + scroll +",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
    win=window.open(mypage,myname,settings);
    win.focus();
    }2. Add this function in a common.js file by path
    %SAROOTDIR%\web\app\res\b_mozilla
    If you use oc4j as application server then add this file to
    %SAROOTDIR%\oc4j_bi\j2ee\home\applications\analytics\analytics\res\b_mozilla
    3. Don't forget restart presentation services and oc4j
    4. In you report use code similar like this
    5. In a report add code
    '<--a href="javascript:void(null)" onclick="javascript:MyPopupWindow(' || <GoUrl here> || ',''biee'',100,100,''no'')">' || <link name> || '</a-->'and assign HTML format to column. In this code replace '<--' to '<' and '-->' to '>'.
    Edited by: AnTonic on May 18, 2010 12:41 PM

  • How to call javascript function?

    Hi,
    How to call javascript function for SAP button
    control onclick event?
    Thanks in advance.

    Hi Sundar,
      u can call java script  in design mode.
      Add this code in ur design part inside body and call the function as
    <sap:button id="a" onSelect="javascript:go();"
    Add inside body:
      <script language="javascript>
    function go(){
    alert("hai");
      </script>
    Regards,
    Vinoth.M

  • How to use destination function for javascript

    Hi,
    I used javascript:var a = window.open('OA.jsp?page=/oracle/apps/cdar/admin/brandupload/webui/SupportPG&retainAM=Y&OARF=printable', 'a','height=500,width=900,menubar=yes,toolbar=yes,location=yes'); a.focus(); in destination URL property, it can work to popup another window.
    But I want to setup a Oracle function for this javascript, and use Destination FUNC property on the button to popup window. But it can not work after I setup a SSWA jsp function with WEB HTML.
    Could some one help this?
    Thanks,
    Eileen

    Eileen,
    How are you adding the OA function ? I have also tried destination url property but not the destination function.Probably you should do sth like this :
    In ProcessRequest :-
    <OABean> <var name> = (<OABean>)webBean.findChildRecursive("<Bean Id>");
    <var name>.setOnClick("javascript:window.open ('OA.jsp?OAFunc=<funcName>','new','height=550,width=850,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no' );
    OABean is the bean on click of which the page should open like a hyperlink or sth like that.
    Hope this helps.

  • 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
    }

  • 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 is not working for jsp:include.. form elements

    HI,
    I have two jsp's and i will include one jsp in the another jsp, when i do this
    i am not able to access child form elements value using javascript. the javascript
    function is defined in the main jsp. but i could able to get the main form elements
    through javascript
    here is the code.
    main.jsp
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    <script language="JavaScript">
    function isValidAge() {
    alert ("hage " +document[getNetuiTagName("MyForm")][getNetuiTagName("age")].value)
    alert ("swage " +document[getNetuiTagName("MyForm")][getNetuiTagName("swage")].value)
    alert ("wage "+document[getNetuiTagName("MyForm")][getNetuiTagName("wage")].value)
    </script>
    </head>
    <body>
    <p>
    <netui:form action="myaction" tagId="MyForm">
    <netui:textBox tagId="age" dataSource="{actionForm.age}"/>
    <netui:textBox tagId="swage" dataSource="{actionForm.swage}"/>
    here i am adding
    <jsp:include page="NewPage.jsp" />
    <netui:button onClick="isValidAge();" />
    </netui:form>
    </p>
    </body>
    </netui:html>
    child.jsp :
    <!--Generated by WebLogic Workshop-->
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <table class="tablebody">
    <tr class="tablebody">
    <td> wife age
    <netui:textBox tagId="wage" dataSource="{actionForm.wage}"/>
    </td>
    </tr>
    </table>
    can you tell me is this is bug in hte weblogic portal SP1.
    I am using weblogic portal SP1.
    thanks in advance
    shashi

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
    currently I'm using following code:
    HTP.p('<script type="text/javascript">
    function pop_up5()
    var l_url=window.opener.document.getElementById("p_single_store_pc").value;
    window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
    </script>' );
    Edited by: user11970612 on Jun 14, 2012 5:02 AM

    this is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
    But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
    the value <%= ... %> will return something like test.com/html/main.jsp
    Hope this helps.

  • On file open: "This document contains JavaScript code for a widget that no longer exists."

    I had an existing, functional datepicker in a web page.
    Recently I downloaded the UI Datepicker in the Widget Browser and installed it in DW CS5. Now every time I load the file that calls the datepicker that I added myself, a warning opens with the following text:
    This document contains JavaScript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
    Widget: $("#reservDateBegin").datepicker();
    Widget: $("#reservDateEnd").datepicker();
    Clicking "Yes" opens the file and shows the search box at the bottom of the window with [current document] in File and $("#reservDateEnd").datepicker(); in Matched Text. Clicking "No" just opens the file.
    The error is wrong, since installing the widget is what caused the error in the first place!
    How can I get DW to stop showing this message?
    Thanks for any help.

    I do understand you're trying to be helpful. I was just hoping providing the relevant code snippets would be sufficient so I didn't have to take the time to provide a "cleaned" version of the files and upload those to a public-safe location.
    Zabeth69 wrote: If you don't understand what 'code at the bottom of the page' means, you have not used one of those systems. I don't know what causes the error code to come up (besides removing a Spry widget, I mean). So if it doesn't apply to you, ignore it.
    This is exactly my point: I haven't used any of the DW "systems". I've always manually coded in DW, so I can't have removed a Spry widget in the first place. It wasn't until I installed the Widget using the Widget Browser that I started getting the error (I don't mean adding the datepicker widget to the code using the DW Insert menu - I mean installing the Widget into DW itself). Ignoring such an erroneous/incorrect error seems kind of silly, since every time I open the file I get the error message.
    Anyway, as requested, the following are links to the contactUsCleaned.php page, and the php included headerCleaned.php file. Since these use php includes to complete the rendered HTML, they won't look right in the browser, but as you know viewing the source will show the relevant html, javascript, and jquery code. I didn't see any way to upload the files in this forum, which, due to the php code, would be preferable to see exactly what my code looks like...
    http://www.eventidewebdesign.com/public/contactUsCleaned.php
    http://www.eventidewebdesign.com/public/headerCleaned.php
    The footer.php file the contactUs page includes is simply a set of HTML links to the pages on the site, copyright info, and the Google Analytics script. There is no other code in the footer.php file.

  • How can I have a backing file call a JavaScript function?

    I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
    thanks

    Hi
    your questions are not correct because you are mixing up server side operations with client side operations.
    First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
    However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
    <script type="text/javascript">
    var action = '${requestScope.action}';
    alert(action);//or whatever you want to do
    <c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
    callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
    </c:if>
    </script>
    i.e. you can output the javascript that has the variables you need or the function calls you want.
    Like I said understand whats server side and whats client side.

  • How can I call a custom javascript function when clicking on cfgrid cell.

    I would like to call a custom javascript function when
    clicking on a cell in an cfgrid (of html format). The closest thing
    I can find is to use the HREF="" attribute, but it doesn't seem to
    work with javascript inside it.
    Simple example:
    <cfgridcolumn name="Foo" header="Foo"
    href="javascript:customFunction(#ID#);">
    Do I need to tap into the underlying Ext JS funtionality? If
    so, where can I start?
    Thanks!

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • Windows 8.0 Photo Feature - Collage not Working after Windows 8.1 Upgrade

    Purchased a HP ENVY 23-d160qd TouchSmart All-in-One CTO Desktop PC  with Windows 8.0 Professional factory installed.  Loved the feature that Windows Photo had that would randomly display an ever changing full screen collage of all the jpeg photos sav

  • Problem Calling Oracle Stored Procedure From JAVA

    Hello all. I've been banging my head against this all day: Here's the procedure I'm calling: GetIDsByLatLonRadius(inLatitude IN NUMBER, inLongitude IN NUMBER, inRadius IN NUMBER, inTableName IN VARCHAR2, inIDColName IN VARCHAR2, inLatColName IN VARCH

  • Turning off Rollback!

    Is there a way to run a query with all the logging to rollback turned off? I have a script that runs many queries on a table, and I keep running out of rollback space. I know I can specifically set a rollback segment with a "SET TRANSACTION USIN ROLL

  • Slow loading custom iBook created using ibook author

    I have 25 pages. I have audio too, but they are like 45 kb to 65kb. When I go to the next page, My next will get blurry and then load for 3seconds , then my page is not blurry anymore IS there a way to fix this?

  • Why Solaris7 is not supported on Netra t1125 ?

    Solaris7 is not listed as "Supported Environment" on Netra t1125/t1120 (see http://www.sun.com/products-n-solutions/hw/networking/netrat/t1125/index.html). Why ? .