Some more typos in the Javascript API documentation

Very minor, niggly things, but even so, they are there.
In the Javascript APIs, the function definition refers to the parameter pNd, but then in the Parameters subheading, it is referred to as pId (inconsistent).
The two that come to my immediate attention are: $v_Array and $f_ReturnChecked.
$v_Array( pNd )
Returns an item value as an array. Useful for multiselects and checkboxes.
Return Value
(Array)
Parameters
pId (DOM Node | string ID)
$f_ReturnChecked( pNd )
Returns an item value as an array. Useful for radio items and check boxes.
Return Value
(Array)
Parameters
pId (DOM node | string ID)Upon further searching the others that come up are:
$x_SwitchImageSrc(pNd, pSearch, pReplace) - the function description refers to pId.
$dom_AddInput(pThis,pType,pId,pName,pValue) - the function description place all paremeters in parenthesis, except for the last one in the sentence, pValue.
Ta,
Trent

I've just come accross this $nvl function in the javascript API. see: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#CHDGAIJJ
The description reads:
*$nvl(pTest, pDefault)*If pTest is empty or false return pDefault otherwise return pTest.>
So this sugguests to me, that if the value of pTest is either empty or null or false, return the value of pDefault. However, when you pass in an empty string (or a false variable), it just returns that value.
And if you look at the function specification in apex_4_0.js
function $nvl(b,a){
     return(b != null) ? b : ((!!a) ? a:"")
}Obviously, passing in an empty string as pTest (or a false variable), will just return you that empty string (or false), as it isn't null.
In a javascript console:
*Test 1: False variable*var t = false;
undefined
t
false
$nvl(t, '0');
false
Test 2: Empty variable
var s = ''
undefined
s
$nvl(s, '0');
Test 3: null variable
var r = null
undefined
r
null
$nvl(r, '0');
"0">
Ta,
Trent

Similar Messages

  • Getting error when updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Hi,
    I`m getting error message like "None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by
    the target Office client. To debug those apps, update manifest files to exclude any unsupported API sets or Office applications, and then start the project again. Alternatively, you can debug your apps by using Office 365 as a target." when when
    updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1 in manifest file though i have added host elements.
    any help in this regard is highly appreciated
    Thanks,
    Santosh Sutar  

    Hi Satosh Sutar,
    Based on the description, you got the error message when you update the apps from version 1.0 to 1.1.
    From the error message, it seems the menifest include some settings no allowed in the new version. Would you mind sharing more detail about how you update the project?
    And here is an article about updating apps for Office and menifest schema files in the project for your reference:
    How to: Update the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Online Javascript API Documentation??

    Where is the online Javascript API Documentation? This link has been broken for over two weeks:
    http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp. htm?href=JS_Dev_Overview.71.1.html&accessible=true
    If this information has moved can someone point me in the right direction?
    thx
    PP

    Thanks Gilad--
    I didn't think to check the downloads--thanks for that tip.
    Do you know if the online documentation will return?
    thx
    PP

  • Apex 4 JavaScript API documentation bug

    Hi,
    JavaScript API documentation have exactly same description for functions
    $f_Hide_On_Value_Item
    $f_Show_On_Value_Item
    >
    Checks an page item's (pThis) value against a value (pValue). If it matches, a DOM node (pThat) is set to hidden. If it does not match, then the DOM node (pThat) is set to visible.
    >
    And also functions have same description
    $f_Hide_On_Value_Item_Row
    $f_Show_On_Value_Item_Row
    >
    Checks the value (pValue) of an item (pThis). If it matches, this function hides the table row that holds (pThat). If it does not match, then the table row is shown.
    >
    I think that is not correct
    http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/javascript_api.htm#CHDHIAJB
    Somehow I recall there has been post about this, but I can not find it.
    Regards,
    Jari

    The description of these functions have been corrected. The latest updated version of this document is now available on the Oracle Technical Network (OTN).
    Thanks for reporting the bug,
    Drue Swadener
    Principal Technical Writer

  • How complete is the javascript API?

    Hi,
    I am trying to serealize a AI document using the javascript API. Based on the "AI CC SCRIPTING REFERENCE" I assumed this could be done by simple traversing the dom and saving the type and properties of each object. It seems however that the API isn't complete. For example, I can't figure out how to read the transformation matrix of a symbolItem. (i.e. when creating a new symbolItem from a symbol and then resizing/rotating/repositioning it, how can I find these new properties?)
    This is just one thing I ran into, that might be fixed using the C SDK. I am wondering however if this is worth the effort or more like filling a bucket full of holes? How complete is the javascript API?
    Thanks,
    Tom

    the DOM in Illustrator is very limited, half the features are not exposed to scripting, SymbolItem Matrix is one of them.

  • Hi all ........i want to append some more records to the already released

    HI all,
      How  to append some more records to the already released
    scheduled job .how to do this.

    HI
    process that job once again
    because its already completed means the previous records will update but if want to update some more then execute that job once again

  • Can We Add Some More Fileds To the Imported IDOC ??

    Hi All,
    Can We Add Some More Fileds To the Imported IDOC ??
    If I Imported IDOC to IR. But I Want to Add Some More Fields To IDOC.
    Then Can I Go For this Process ??? Is This is Correct ???
    Please Correct Me If Iam Going Wrong
    1) Open the Imported IDOC in IR
    2) Export it as XSD File in to your Local Machine
    3) Add Necessary Fields & Save it
    4) Come to IR And Import it into external definition
    Is this is the Correct way of Doing ???
    If Not What is the Problem in Doing This ??
    Regards
    Vamsi

    Hello Vamsi,
    That is NOT the correct way to play around with IDOCs.
    the correct way is to create an enhancement to an exiting IDOC (this is done on the SAP R/3 side) after you craeted an enhancment you reimport the IDOC in XI from the R/3 and then you have a new structure with the new fields you need.
    worst case scenario you can define a new IDOC type just with the fields you need.
    you can check out the SAP library at http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    on how to do that.
    Have a good one,
    Uri Lifshitz.

  • Were is the "old" api documentation?

    Does anybody know were sun keeps the "old" api documentation. I really need the JSDK 2.0 documentation but cannot seem to find it.
    Thanx!
    Jasper.

    ...sorry, no it's not there:
    I am looking for the JSDK (Java Server Development Kit, that's what it was called back then) version 2.0. The closest I've come so far is at the archive (http://java.sun.com/products/archive/index.html) where JDK's as far back as 1.0.2 can be found, but I need the documentation for the javax.servlet and related packages, classes etc. which I can't find.
    So, again (maybe someone @ Sun knows where to look) where is the JSDK 2.0 documentation?
    Jasper.

  • Hi, is there a support for development ? I have a idear for a docking station. But i want to know some more details about the licence from apple and so on. Is there a special call center ??

    Hi, is there a support for development ? I have a idear for a docking station. But i want to know some more details about the licence from apple and so on. Is there a special call center or can i call the normal support for my country ???

    For liscensing of iOS related hardware? You'd need to contact the Made For iPod Program.
    <http://developer.apple.com/ipod/>
    Their contact address is <[email protected]>

  • Where is the WLSTUtil API documentation

    I've been playing around with Python/Jython and WLST.
    But I cannot seem to find the API for the WLST commands.
    I can get code completion in eclipse that gives me all the possible commands for a certain variable for a dataSource say. But where are the commands/API of each Jython class that WLST defines, documented?
    For instance, if I run a configToScript, I get a script that has the following lines:
    jdbcSR = create(dsName,"JDBCSystemResource")
    theJDBCResource = jdbcSR.getJDBCResource()
    theJDBCResource.setName(dsName)
    And in eclipse, theJDBCResource code completion shows me the methods on that member variable. But where is the documentation for that jython class.
    I looked here (http://download.oracle.com/docs/cd/E13222_01/wls/docs92/javadocs/index.html?weblogic/deploy/api/spi/WebLogicDeploymentManager.html) but that again does not contain the WLSTUtil class.
    BTW: I ran writeToIniFile and got:
    from weblogic.management.scripting.utils import WLSTUtil
    import sys
    origPrompt = sys.ps1
    theInterpreter = WLSTUtil.ensureInterpreter();
    WLSTUtil.ensureWLCtx(theInterpreter)
    execfile(WLSTUtil.getWLSTScriptPath())
    execfile(WLSTUtil.getOfflineWLSTScriptPath())
    exec(WLSTUtil.getOfflineWLSTScriptForModule())
    execfile(WLSTUtil.getWLSTCommonModulePath())
    theInterpreter = None
    sys.ps1 = origPrompt
    modules = WLSTUtil.getWLSTModules()
    for mods in modules:
    execfile(mods.getAbsolutePath())
    wlstPrompt = "false"
    ~
    That tells me that all the jython classes are in WLSTUtl class. Just need to get at the javadoc for it.
    The weblogic.management.scripting.utils package does not contain WLSTUtil as expected.
    Thanks
    Pankaj
    Edited by: [email protected] on Sep 28, 2009 8:42 AM
    Edited by: [email protected] on Sep 28, 2009 8:43 AM

    i couldn't find the api either however if you implement the class you will simply get compiler errors explaining what you left out.

  • APEX-PDF-Reports: Add ID and some more Data to the PDF-Filename

    Hi,
    I have create in APEX a Report Layout and a Report Query to export some data to an PDF-File (I am using BI Publisher).
    This works fine but now I need to add the ID and some other informations to the file-name.
    Because if the user create some PDF-Files he should be able to see, what file is for which data...
    How I can do this?
    Regards,
    Mark

    Hi Marc,
    thank you for your answer but it does not work for me.
    I have create the page process and if I click the button I have for few seconds the hour-glas. I think the BI Publisher is generating the file but I dont have a download-message and also the file is not saves automatically.
    This is my page process:
    declare
        v_filename varchar2(1000);
    begin
        v_filename := 'Checkliste_' || :P70_TECHNIK || '.pdf';
        APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => v_filename,
                                           p_content_disposition => 'attachment',
                                           p_application_id      => 119,
                                           p_report_query_name   => 'Checkliste',
                                           p_report_layout_name  => 'Checkliste',
                                           p_report_layout_type  => 'xsl-fo',
                                           p_document_format     => 'pdf');
    end;I have also tried it with p_report_layout_type => 'rtf' because the layout is a rtf-file, but also no luck.
    Have you a idea why I cant download the file?
    Regards,
    Mark

  • Can i get some more info on the zen v p

    prefferibly the 8 gig. I want it because its small, and im able to run with it. I had the micro photo, and i didnt read that you shouldnt run with it untill it was too late, and it stopped working. I was extremely happy with the micro photo, and after liking mine, my mom and sister bought it. I also like the v plus because my dad has it?i have just a few questions tho. im ok with the video quality not being the greatest, i understand the screen is tiny, but it still would be nice on those longer car rides to have some form of video, how much space does a full length movie take up?ill have about 2,000 songs on my player, but i always like having the comfort of being able to add more, so if space is a problem id like to know how it would conflict with having video.
    on my dads v plus he has a few short clips and they turn out alright looking, acceptable for a small player like this. i really like this player, but would also like the video option, a bigger player, or a hard dri've player wont work, because ill run with this pretty much every day and running with my micro photo is how im pretty sure i screwed it up. i would definatly like to stay with? creative because with the few problems i've had with them, its been pretty much my fault ( not paying attention?to directions, not the best care, etc.)

    I don't use my ZVP for video, so my knowledge is a bit limited. However, the ZVP is As you say) small & it does not have the processing power to decompress video files, so it can only show uncompressed video. This means that it is not really suitable for watching videos of any length cos they turn out HUGE...
    I like my ZVP! I use it mostly for listening to music at work, occasionally the radio, and sometimes for recording on line in (vinyl & li've stuff).

  • I  have some more problem in the  web.xml file and url-pattern in my  syste

    HI ALL!
    How can I create and place the web.xml and URL-parrten.Because I run
    the tomcat in my computer with ME system.
    Hoc

    what is the problem? please be more specific and detailed? check a sample web.xml file and make your own one and place it in your <application-context>\WEB-INF folder..

  • What's new in the JavaScript API

    This question was posted in response to the following article: http://help.adobe.com/en_US/flash/cs/extend/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7fe7.html

    Let me check. This was updated for CS6 and we'll update this book soon. That said, I might have missed this particular page, so that fix might take a little longer.
    Best regards,
    Randy Nielsen
    Senior Content and Community Manager
    Adobe Systems Incorporated

  • My account has been hacked and someone has ordered stuff from your site in my name. i need to find out some more information for the police. do you have an email adres that i can send my questions to?

    They have ordered for just under 100 euros!! i now need to find out more! any suggestions?!
    thanks!

    You can report a problem with unauthorized purchases >  How to report an issue with Your iTunes Store purchase
    Change your Apple ID password > Apple - Support - Apple ID

Maybe you are looking for