Built-in javascripts

Hello All,
On APEX 4.1
I found the Add Row button has the built-in javascripts
javascript:addRow();
I wonder if there is a reference documenation to show all the available built-in functions?
I found the below page for all javaScripts APIs, but it doesn't include addrow(), so I think there must be another documentation.
http://docs.oracle.com/cd/E11882_01/appdev.112/e12510/javascript_api.htm
Many thanks
Best
Yang

>
Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "975636".
On APEX 4.1
I found the Add Row button has the built-in javascripts
javascript:addRow();
I wonder if there is a reference documenation to show all the available built-in functions?
I found the below page for all javaScripts APIs, but it doesn't include addrow(), so I think there must be another documentation.No, that is all of the API documentation. It may be unintentionally incomplete (i.e. documentation bugs), but some APIs are intentionally not documented as they are intended only for internal APEX use. Oracle may change the signatures, behaviour, or implementation of these undocumented and unsupported methods, or remove them completely without notice. Use of undocumented APIs by developers may result in loss of data, and/or failure of your applications, APEX installation or database. Oracle may not provide support in cases where damage has occurred as a consequence of using undocumented/unsupported features.

Similar Messages

  • Apex PPR built-in Javascript Functions

    Can someone please explain the differences between the following apex built-in js functions as used with ppr reports.
    If possible please specify the parameters they take.
    1. $a_report();
    2. init_htmlPPRReport();
    3. html_PPR_Report_Page();
    I have a requirement to show different child ppr reports based on the values passed from a parent report. I would like to show these reports dynamically. The child reports all get their values from common page items that I've defined.
    I am to do this with one child report, but I'm having difficulty with more than one child report.
    I can not create an example on http://apex.oracle.com/pls/otn because the db structure it is too big.
    I hope somebody understands what I'm talking about and points me in the right direction.
    Cheers,
    Sutherland

    I solved this problem.
    It was because when the child reports initially loaded they returned no data because the items contained no values. Note that the items are only populated when i execute the js function from the parent report which pass the current row values of the parent report to the common page items. The common page items are used in the where clause of the child reports.
    So initially the apex engine got no data from the db for the child reports. I had to change the where condition that included one of the common page items with the nvl function so that i can get something back if the item is null.
    Thus it works perfectly.

  • Built-in Javascript Documentation

    Hi,
    Does anyone know where I find documentation on the javascript functions provided by apex? I'm particularly interested in the "html_" functions.
    Thanks
    Andrew.

    Hi, Carl Backstrom has documented the HTML_GET function on the following page:
    http://htmldb.oracle.com/pls/otn/f?p=11933:63:13447239667356119409
    That site also has examples of AJAX and other Javascript code (Thanks Carl!). The site index is here:
    http://htmldb.oracle.com/pls/otn/f?p=11933:5:15012130122094224129::NO:RP::
    May the force be with you... ;)

  • Problem saving Reader extended PDF created in Livecycle with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    At the moment I can't sorry.  I've run the Javascript debugger in Adobe Pro and it seems there are some errors
    Acrobat EScript Built-in Functions Version 11.0
    Acrobat SOAP 11.0
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#subform[3]:#area[1]:Button1[0]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[2]:Button1[1]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[3]:Button1[2]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[4]:Button1[3]:initialize
    Basically the form has been built in Livecycle Designer and have drop down menus that show or hide tables depending on the selection but when I Reader Enable the form and users make a selection and then save the form it is not showing the table when it is opened again.
    I appreciate your help

  • Problem saving Reader extended PDF with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com

  • No save/close button to save Javascript in built-in editor

    I downloaded trial version and am playing with features.  I am editing a form.  I added a button.  In Actions tab, I chose "Run Javascript."  There is an "Add" button which invokes the built-in Javascript editor.  It has a multi-line textbox to enter the script.  However, there is no button to save the code.  All I have is the red "X" button to close the window without saving.
    This is XI trial version on Windows 8.1 machine. 
    Any help will be appreciated.  Thanks.

    George is right, your window is too small. It look like you have room to
    make it bigger. The standard behavior of the window is that you cannot make
    it smaller than a specified size, and that the buttons automatically get
    positioned based on the window size. Somehow your editor window gets
    displayed too small. In the lower right corner, you see the resize drag
    handle. Click on that corner and drag the window larger. I suspect that
    once it's big enough the missing buttons will get shown as well.

  • Verify if a report has a null column value with JavaScript ?

    Hi,
    I have report. User can add new rows through a form. Before the user leaves the application I would like to use JavaScript to check if a certain column has some null values. I built my JavaScript for the before logout and it's working properly, but I need to retrieve if that column has some null values, how can I do that ? This field isn't a mandatory one, but I would just like to alert the user.
    Thank you.

    You can also use a TRIM function in Answers. Go to the column in question, click on the fx button and then on the Function button. Click on String and you will see TrimLeading, TrimTrailing and TrimBoth. Use TrimTrailing on your column and you should be good to go.

  • If javascript can no longer be disabled - how do I leave a website that asks the "are you sure you want to leave this site" pop up question without a yes choice

    Given that the turn off javascript option will be disabled - how do I close a page that does not allow me to leave by giving a "are you sure you want to leave" pop up question but then redirects to itself where it again asks that question perpetually?
    The only way to kill a page like that sofar was to disable javascript and then close the tab.
    Now I will have to close the browser - and possibly loose all the tabs I have open.
    I want a javascript quick switch - allowing me to easily disable javascript for any page at will.
    (esp for some of my older, slower netbooks)
    Or at least a "FORCE CLOSE" option for malicious webpages.

    Hi ronc2, there isn't a specific setting for this. Firefox's built-in JavaScript settings allow you to control several aspects of scripts*, but unfortunately not this one.
    I previously tried to find some other options for individually turning off this event, but I couldn't find a way. Someone might be able to create an add-on to solve this problem, but it will take someone cleverer than I.
    Extensions that disable scripts on a site-specific basis:
    * If you regularly visit some sites which do this, you can block JavaScript on that specific site using the YesScript extension. Unfortunately, other script-based functionality will be blocked as well.
    * YesScript does not preemptively block scripts on every site. If you have to visit a lot of random sites and want to take a paranoid approach of having scripting blocked until you see as much of the site as you can see without running scripts, then the NoScript extension would be for you. But even then it's "all or nothing".
    ''* These include: JavaScript enabled yes/no, override right-click menu yes/no, change order of windows yes/no, move and resize windows yes/no, close windows yes/no, specific features of pop-up windows, change images yes/no, detect copy/cut/paste and modify selection yes/no.''

  • XML IDOC post to R/3 Via WAS - want to see error content with JavaScript

    Hi,
    I am posting XML IDOCs to our R/3 system via a webpage that I have built with JavaScript.  I am posting to the WAS, which is configured to read the XML IDOC with SAP's standard class handler CL_HTTP_IDOC_XML_REQUEST.  We are on basis 620 support pack SAPKB62041.
    In my webpage, I have the JavaScript code set to read the status and statusText so I can see the response from WAS when I post my XML IDOC.  However, I am getting back very generic information when I encounter a 409 error.  THe statusText is always "input_not_found".  So I debugged the class handler code and found that SAP is returning back the more descriptive error info in HTML format.
    I ran a packet sniffer to see what WAS returns and the info looks like this:
    <html><head><title>IDoc-XML-inbound not ok</title><h1>IDoc-XML-inbound not ok</h1></head><body>
    E:Table Lookup Error:300 Cannot map value for field MESCOD in table ZFI_IF_IDOCORG using values
    SNDSAD = |TE|  and RCVLAD = |GL|  and MESTYP = |ACC_DOCUMENT|</body></html>
    I want to know how I can get my webpage to read this HTML info and store that into an alert so I can read this text that I'm returning back to the HTTP post.
    This is how my script looks.  I'm using IE6.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Test XML</title>
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    function XMLHTTPButton_onclick(DataToSend) {
         var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
         xmlhttp.Open("POST","http://some_server:1089/sap/bc/zxml_idoc?sap-client=200&sap-language=EN",false);
         xmlhttp.setRequestHeader("Content-Type", "text/xml");
         xmlhttp.send(DataToSend);
            alert(xmlhttp.Status);
            alert(xmlhttp.statusText);
         alert(xmlhttp.responseXML.xml);
    //-->
    </SCRIPT>
    </head>
    <body>
    <BR>
    This page posts to
    <BR>
    http://some_server:1089/sap/bc/zxml_idoc?sap-client=200&sap-language=EN
    <FORM name=xmlform method=post >
    <P><TEXTAREA style="WIDTH: 623px; HEIGHT: 369px" name=xmlData rows=23 cols=77>
    </TEXTAREA>
    <P>
    <INPUT type="button" value="Submit XMLHTTP" id=XMLHTTPButton name=XMLHTTPButton
    LANGUAGE=javascript onclick="return XMLHTTPButton_onclick(document.xmlform.xmlData.value)">
    </form>
    Previously with this class handler, SAP returned the detailed info back to the "alert(xmlhttp.statusText)" and I had no problem seeing the return info.  But now they have decided to format it in HTML and I don't know how to view this text since it has no ID on it to pull this into an alert box.
    If anyone has any ideas, please let me know.
    Thanks,
    Andrea

    Ok!
    I have solve the problem. So, I was trying to connect via SSO within an user that was not registered in R/3 and I forgot it.
    Sorry for the inconvenience.

  • Does anyone know how to save to sharepoint from Acrobat XI pro with SDK or Javascript?

    The goal is to have Acrobat Pro watch a folder, OCR any document that appears, then save it to sharepoint using the contents of the file name to determine certain meta data.
    If watching a folder is not practical then it can be run manually, but it would be better if it could watch the folder.  I tried searching but I am having difficulty finding examples of saving to sharepoint using the built-in javascript capability or the SDK.
    If anyone can point me to or show me an example of any of these issues I would appreciate it.  In the end I will need to find the documents, OCR them, take apart the file name to determine metadata and destination location, save to sharepoint, delete the original file.

    I think I will need to see a javascript sample that sets key metadata for the document to be saved, and some kind of documentation on how to tell the Action to save to sharepoint.  I assumed it would be pretty straight forward but I am having trouble finding any kind of documentation.
    Also as files are processed, I need to move them so they don't get processed again.  I was thinking that in addition to putting them in sharepoint it would make sense to move the move to a processed directory as a backup and delete the original.
    I did not see that option in action either, so I could use come guidance.

  • JavaScript to Hide Region

    I would like to hide an entire region based upon JavaScript. I can't use the conditional display of a region because this is on-demand and can't submit the page to check value. I can hide specific values, but the labels remain and the region border remains. Here is what I have so far.
    onchange="Show_On_Selectlist_Value('P15_SIRT_DCSN_ID','6');"
    <script>
    function Show_On_Selectlist_Value(pParent, pValue)
    var rv = $x(pParent).value;
    if (rv == pValue)
    html_ShowElement('P15_RR_COMMENTS');
    html_ShowElement('P15_RR_USER');
    html_ShowElement('P15_RR_DATE');
    else
    html_HideElement('P15_RR_COMMENTS');
    html_HideElement('P15_RR_USER');
    html_HideElement('P15_RR_DATE');
    </script>

    For the region you want to hide, provide a value for the 'Static ID' attribute. You can then use the built-in javascript functions '$x_Hide(pnd) and $x_Show(pnd) 'to display or hide this region.
    example $x_Hide('REGION_STATIC_ID') http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDDAGFE
    varad

  • Trouble with using javascript $s function to populate a page item

    Hello Oracle APEX Community,
    I'm working on a drilldown dashboard page and have been encountering a problem when i try to populate a Text Page Item (hidden or not) using the javascript built in $s function.
    The function works great when the data is a number such as dept_id (even if the field type is varchar). However, trying to pass anything which is a text the process fails, except when a value is hard-coded as a parameter for the function. So for example, I have a chart with counts of constituents by state. I would like to populate (filter) a table based on when you click on a bar for a state without having to submit the page. I'm using dynamic actions and a built in javascript function in the SQL for the chart to accomplish this; but again, it works great when I use a varchar field like the FIPS code (i.e. the FIPS for Texas is '48'), but when I try to populate the page item using the state abbreviation 'TX' (again varchar) it fails.
    Here's an example of code that works:
    SELECT 'javascript:$s("P1_DEPTNO",'||d.deptno||')' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO",'||d.deptno||')', d.dname And here's an example of code that does not work:
    SELECT 'javascript:$s("P1_DEPTNO",'||d.loc||')' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO",'||d.loc||')', d.dname However, when I hard code a text value the script works:
    SELECT 'javascript:$s("P1_DEPTNO","BOSTON")' LINK,
    d.dname LABEL,
    sum(e.SAL) sal
    FROM emp e, dept d
    where e.deptno = d.deptno
    group by 'javascript:$s("P1_DEPTNO","BOSTON")', d.dname
    ORDER BY d.dname I'm encountering this problem on several versions of APEX: (4.0.2.00.07-local installation) and (4.1.0.00.28-apex.oracle.com)
    Does anybody know of this problem and how to solve it? I've looked for settings on the page item itself, and can't figure it out.
    I've re-written my sql to utilize the value fields of my tables instead but I have some objects on the page which are really going to depend on the character based data instead.
    Thanks,
    Wayne

    In your javascript you are generating, surround your value with double-quotes and it'll should then always work with both numbers and strings (your strings are probably being interpreted as variable names and they don't exist at runtime, hence erroring out).
    Example:
    SELECT 'javascript:$s("P1_DEPTNO","'||d.loc||'")' LINK,Edited by: gti_matt on Aug 16, 2011 9:50 AM

  • Duplicate javascript references appearing in HTML files

    Every time I run Generate | Primary Layout (Webhelp) on my Robohelp projects, I see duplicate references to a number of Robohelp built-in javascript script files in the head section of my HTML files.  For example:
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc.js"> </script>
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc_1.js"> </script>
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc_1_1.js"> </script>
    <script type="text/javascript"  lange="javascript1.2" src="whmsg_nc_1_1_1.js"> </script>
    Also, there are duplicate references to breadcrumbs javascript and writeIntopicBar(0) javascript at the end of each HTMl file.
    I have to manually remove all the duplicate references, but they keep coming back after I run generate.  Is there a setting I missed somewhere or am I not setting up the projects correctly?
    Thanks!

    Rick may be training so I'll pop in.
    I don't think Rick is saying all the items should not appear, rather that some should not and others should not be duplicated. I think Rick is saying that some should not appear (the WH stuff) and the others should not be duplicated. The likely reason is, as stated, that you have  imported an output file so Rh has them from both when you created the output and now that you are generating again.
    When you open the source topics in your project, are you seeing red squares appearing? If you are then that further supports Rick's theory.
    Perhaps this link to Rick's site will help.
    http://www.robowizard.com/RoboWizard/NewProject.htm#MonthlyScry/062004.htm
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can i optimize my SEARCH ENGINE???I use godaddy.i contact them and they give me this conclusion:Search engines are not pulling up your other pages on your website because it is created with javascript. the content on the pages, (photo gallery.....

    conclusion from godaddy:
    Search engines are not pulling up your other pages on your website because it is created with javascript.
    the content on the pages, (photo gallery, My Recipes/Blog, History, Friends) need to be formatted to HTML, PHP or CSS. No search engines (google, Yahoo, Bing) can crawl//analyze webpages built with javascript.
    See if Apple allows iweb to create the pages in HTML format and ask how to make those changes.
    I spend more then 1 hour on the phone with them but we didn't find the solution...
    please i need help because like this nobody can rich my website...
    www.chefdiego.com
    thank you

    The part of iWeb pages that give the search engines problem is the navbar.  That's javascript based.  One way to get around that is to create another blank page in the site that's not  included in the navbar. 
    Add a text based navbar in that page with just the other pages in the site. 
    Also you can use that page for creating the sitemap for Google at Create your Google Sitemap Online - XML Sitemaps Generator.
    Have you let Google know your site exists? This website describes how to get it recognized: Get your iWeb website found in search engines like Google Yahoo MSN and Bing.
    OT

  • Send cpQuizInfoTotalCorrectAnswers to javascript

    Hello Captivate users
    I haven't found anything useful about this:
    I got a problem with a javascript function within captivate.
    My aim is the following: If the user enters the last slide of
    a quiz, a javascript function (On enter Slide: Execute Javascript)
    sends his points/sum of correct answers directly to a database.
    I have built a javascript function that stores the results of
    a captivate quiz into our database:
    storeresults(correctanswers,totalanswers )
    "correctanswers" and "totalanswers" are the two variables i
    need for this function
    Now all i have to know, how to get the Captivate Variables
    into this function
    I know that Captivate has these Variables:
    cpQuizInfoTotalCorrectAnswers
    and cpQuizInfoTotalQuestionsPerProject (Which is not that
    important, because i can type in a fixed value there)
    How do i get these variables into the javascript?
    As I mentioned: I would really prefer to only put one
    javascript into the On Enter Slide Execute Javascript window and
    not into the html.
    Can you help me
    Thanks
    captiware

    Update:
    I got the value of the QuizInfoPointsScored system variable to pass out to an alert box in JavaScript .. and to a query string in an ASP page, but no luck getting it into the form so far.  But THIS close to having this solved.
    If this helps anyone else .. here is the JavaScript that I used:
    In Captivate - button value is OnSuccess - send to JavaScript and in the box:
    updateScore("score");
    and on the html page that houses the movie - goes below the focus portion of the function that Captivate writes:
    <script type="text/javascript">
            document.getElementById('Captivate').focus();
            document.Captivate.focus();
            var score = "";
            function updateScore(score) {
                score = getCaptivateVariable(score);
                alert(score);
                window.location = "sendscore.asp?score=" + score;
            function getCaptivateVariable(score) {
                return document.getElementById('Captivate').GetVariable('cpQuizInfoPointsscored');
        </script>
    Now to get it into a form to insert it into the database.  I have done this before with the email function .. but that doesn't work with my wonky navigation but since I have a value coming out of the movie (finally!) the rest should be doable.
    Nancy

Maybe you are looking for

  • How can i change the theme of my project

    I want to switch to a blank theme as the current theme does not frame my pictures properly. How can I do that without reloading all the photos I've already done?

  • IDOC Partner Profile for Sales Orders

    What kind of Partner Profile should i create to receive Sales Orders by IDOC from external non-SAP system by RFC?

  • In psa maintence request update

    I HI , n psa maintence request update " request not updated into data target using delta " In development it is showing as " request updated in target " can please tell me the difference Regards shekar reddy

  • How do I let a number represent a letter?

    Here is the problem: "Create an application that simulates a game of tic-tac-toe. The application should use a two-dimensional int array to simulate the game boar in memory. When the user clicks the New Game button, the application should step throug

  • Loading albums

    I have loaded albums in to the nano. When acfcessing the artist the songs are all listed individually and not as an album. this only happens sometimes. What can I do?