A little inconsistency in javascript API's version 4.0

Hi,
i just found out the following little inconsistency in the "syntax" of the pClass parameter in API functions $x_ByClass and $x_Class.
Until version 3.1 if you wanted to select or set nodes having a double class, you had to specify the classes as "classA classB" separated by a blank.
Now in version 4.0 this doesn't work anymore for $x_ByClass, but it is still working for $x_Class.
$x_ByClass now seems to accept the period as separator, that is "classA.classB".
I looked at the javascript code and saw that the function has been rewritten using some jQuery wrapper, which probably explains the change of syntax.
I wonder if it makes sense to translate automatically spaces into periods to maintain the compatibility or change the behavior of $x_Class as well, because it's somewhat confusing to have functions using a different syntax.
Moreover it would be beneficial to mention these changes somewhere in the API documentation.
Flavio
http://oraclequirks.blogspot.com
http://www.yocoya.com

Hi Madhu,
Lets be clear here. If the first message is different to the second one, then the second message could be a non-serializable message. So we can't consider working of first message as proof to prove it would also work for send message.
If this orchestration is working for a while and failed all in sudden, then we need to investigate why? See how do you construct the second message. Trace the orchestration and see what's been sent/created for second message. Check whether the second message
is a valid XMLDocument. Also as said before, try to make the shape into an atomic scope and see whether it makes any difference.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

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.

  • Map Builder JavaScript API

    Hello everybody,
    I'm a student who is currently working with Oracle for the first time. I developed an Web mapping application by using Oracle XE Database (10g), Oracle Map Viewer and corresponding Map Builder (the latest version). I choose the JavaScript API for the implementation of this application.
    The reason for this post is one particular problem that I encountered. I want to extract the X and Y coordinates (which are naturally stored as SDO_GEOMETRY in my database) for certain features that are visible in my map window (this features belong to themebasedFOIs). I know that the x and y coordinates (and other attribs) are easily accessible for the JavaScript Client if the coordinates are stored in own columns (additionally to the information stored in the SDO_GEOMETRY) ... but that is not the case!
    I searched the JavaScript API, the Internet, this forum and it took me a long time ... but I didn't come across any possiblity to manage this. So does anybody who reads this post see a possibility to get my X and Y coordinates from my HTML application that is build with JavaScript API???
    I will be very thankful for any advices and/or hints... :-)
    With regards

    hi, we don't return the geometry back to the client unless the foi is a point.

  • External use of Javascript API

    Hello All,
    I was wondering two things.
    1 - What is the file that contains the javascript API functions.
    2 - Could one use this outside the realm of APEX. --> I have a desktop application which connects to APEX and does a whole bunch of things. I have have however run into a problem. CLOBS. In apex I can use $S , but outside of APEX, what would be the equivalent.
    I know this is a shot in the dark, but well knowing does nto hurt.
    Thanks
    Jan

    1) These files can be found in /i/javascript
    $s for instance is found in apex_4_1.js
    2) Depends on the function. You can use these js files to track down exactly how Apex actions these tasks (I do this sometimes to learn a little more javascript), but if it ultimately talks to the db, then obviously you can't use that out of context.

  • CS6 JavaScript API .mxi path

    How can I call the .mxi using the JavaScript API?
    In previous versions of the plugin I could easily call upon the mxi file to grab a token definition value using the dw.getConfigurationPath().
    As in the following example: dw.getConfigurationPath() + ’/Extensions/myextension.mxi’;
    The reason for storing the path in the mxi is because it is the only place that I know will dynamically create the path such as: Macintosh HD:Users:<UserName>:Desktop:MyFolder: or C:\Users\<UserName>\Desktop\MyFolder respectively when I enter a token definition of $userhomefolder/Desktop/MyFolder.
    However now that the .mxi file has been moved to the extension manager folder in CS6 I can no longer use
    dw.getConfigurationPath(). My question is how do I now obtain the .mxi path now?
    Thanks.

    You need to post scripting questions in the Adobe Photoshop Scripting forum.
    -X

  • Shockwave 11 Javascript API

    I'm seeking any information regarding the javascript API for
    Shockwave 11. Does it exist? Is there documentation?
    I've seen one example using a javascript to control the
    shockwave player created for 8.5 at famous3D website, but it
    appears to be broken now with version 11. I've been having a
    serious problem with the Shockwave ActiveX Control since upgrading
    to 11. I'm hoping the Javascript API could be a potential
    workaround.
    Any info would be greatly appreciated! Thanks in
    advance!

    _PlayerOne_,
    No, I haven't made any progress on this. I can confirm that
    it happens also in Director 11 and Director MX 2004. Director 11 is
    a currently supported product and yet it experiences the same
    error. I have also posted this to the director forums but no
    response there. I have also explored calling it from Swing in Java,
    same effect. Calling it in a Power Point presentation with Visual
    Basic also causes it to crash.
    I got the "compatibility player" portion to load but it
    didn't have any effect on this issue.
    No solution has presented itself. Currently, I am advising
    our company and our customers to revert to the 10.3.0.24 version
    and to avoid installing the 11.0.0.429 version until it gets fixed.
    Unfortunately, this means Vista performance is poor but luckily our
    customers haven't moved entirely to Vista.

  • 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

  • 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

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • PDF embedding & Acrobat's JavaScript API

    Hello,
    I have two questions.
    I currently using Safari 1.3.2 and Acrobat Reader 7.0.9 to test an PDF document embedded in a Web page. In Safari 1.3.2 I get a "This operation is not allowed" warning when the HTML object element and the embed element are encountered.
    I have also tested it in Safari 3.0 on Windows, with plug-ins enabled in the Preferences and Acrobat Reader 8 installed. The PDF file is not shown and no warning is given either.
    So, does Safari 2.0 support embedding PDF files at all?
    My other question is, assuming Safari does support PDF embedding, whether it is possible to interface from an HTML page to the Acrobat plug-in via Acrobat's JavaScript API. In IE this is a simple as getting the object element by id and for example, invoking its Print() method. Is this possible in Safari?
    Thank you in advance,
    Adal Fraile

    Hello,
    I have two questions.
    I currently using Safari 1.3.2 and Acrobat Reader 7.0.9 to test an PDF document embedded in a Web page. In Safari 1.3.2 I get a "This operation is not allowed" warning when the HTML object element and the embed element are encountered.
    I have also tested it in Safari 3.0 on Windows, with plug-ins enabled in the Preferences and Acrobat Reader 8 installed. The PDF file is not shown and no warning is given either.
    So, does Safari 2.0 support embedding PDF files at all?
    My other question is, assuming Safari does support PDF embedding, whether it is possible to interface from an HTML page to the Acrobat plug-in via Acrobat's JavaScript API. In IE this is a simple as getting the object element by id and for example, invoking its Print() method. Is this possible in Safari?
    Thank you in advance,
    Adal Fraile

  • How to add a polygon to mapviewer using Javascript API

    Hi,
    I am using JavaScript API for the MapViewer.
    Using redlining tool, my application allows user to draw polygon onto the map.
    I would like to have union, difference and intersect tools. I know the back end logic can be done using using JTS or SDO_Union, SDO_difference, and SDO_intersection. but how do i display the result polygon on the map? Note that I am not going to store the polygon in the database.
    Thanks for any ideas.

    Hi,
    If I understand well you are using Oracle Maps. User do some redlining, then you somehow makes FOI polygons. Then you get the coordinates of the polygons and send them to the back-end where you can use spatial functions and get the coordinates of the new polygon.
    You can store those coordinates in i.e. hidden input field on page (if you use JSF it is very simple) and then use JavaScript to parse them and Oracle Maps API to create new FOI polygon and add it to mapviewer object. One disadvantage of this concept is that reloading of page (submit) is necessary.
    Branislav

  • How can i use  a adf javascript api

    hi
    can i use the adf javascript api for creating the AdfRichInputText .is there any producer
    to create the AdfRichTextInputText in javascript .plz guide me
    Thanks and Regard
    Message was edited by:
    Prapan Sol

    Hi,
    the ADF JavaScript API is not meant for you to create JSF components on the fly. For this you please use teh ADF Facesserver side components.
    The RichInputText component is defined by a pair of components, the AdfRichInputText and its Peer component. I don't know what your usecase is, but my impression is you are looking at it from the wrong end
    Frank

  • Is it possible to change out of the box Callout content for already existing library using some javascript API ?

    Is it possible to change out of the box Callout content (change DOM elements) for already existing library using some javascript API?
     API ?

    Hi,
    We can use CSS and jQuery to achieve it.
    Please add the following code into the Content Editor Web Part.
    <style type="text/css">
    .js-callout-content{
    display:none;
    .js-callout-mainElement span{
    display:none;
    .js-callout-mainElement{
    border-width:0px;
    </style>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $("a[title='Open Menu']").click(function(){
    setTimeout(function(){
    $(".js-callout-body .js-callout-bodySection").eq(0).html("<span>Test</span>");
    $(".js-callout-mainElement span").show();
    $(".js-callout-content").show();
    $(".js-callout-mainElement").css("border-width","1px");
    },1000);
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to trigger the automated row fetch process and open modal window by javascript api?

    Hi,
    I would like to click the one row of column of IR report, to open the modal window of current page.  <----------------it is ok. I can use "javascript:openModal('windowID')"  to do it.
    There is one form in this modal window, Meanwhile, I would like to pass column data to this form.    <--------------------- it is ok also. I can use " $s('P7_ID','column_value');" to do it.
    But I don't know how to trigger the "automated row fetch" process of this form to retrieve other field's value in this form.   
    I tried to use following 2 ways. But failed.
    First method:
    add one ajax process of "automated row fetch" in "page processing" block, named "get_fetch_data"
    when click IR column , call "openModal", and call  "apex.server.process ( "get_fetch_data", {}, { success: function( pData ) { }  } );"  , I tried to call above ajax process to refresh form. It is failed.
    Second method:
    add one process of  "automated row fetch" in "page rendering" block, named "get_fetch_data"
    when click IR column, call javascript api "apex.submit" to submit current page , then call "openModal".
    such as :  javascript:apex.submit({request:'MODIFY',set:{'P7_ID': #ID#}}); openModal('trade');
    But it is failed also. the modal page is showed firstly. then page refresh. but modal window will not open again.
    I am not sure if my thinking is right. Could you please provide any suggestion?
    Thanks in advance,
    Ping

    Hi Ping,
    You can try to set the session state of your modal page's primary key before opening the modal page. Use one dynamic action (on click of IR row) with two true actions. First one to set session state of modal page pk, second on to open modal page.
    Or you can add the modal page url as link in your report by extending your query:
    select ...
    ,         apex_util.prepare_url( 'f?p='||:APP_ID||':7:'||:APP_SESSION||'::'||:DEBUG||':7:P7_ID'||COLUMN_VALUE ) as link
    from ...
    This will give you the url of the modal page, with set primary key.
    Regards,
    Vincent Deelen
    http://vincentdeelen.blogspot.com

  • Office 365 addin. JavaScript API. Working with files.

    Please help me.
    Is there any posibility to get url for created document from my addin with JavaScript API?
    May be I need to use OneDrive.

    You are creating a Word 2013 app? If so, you might want to post your question here:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=officegeneral
    Are you trying to get the URL that the document was opened from?
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

Maybe you are looking for

  • GL Account in PO

    Hi, While creating PO for uncoded service GL account is not getting picked up in PO. System gives an error as "147 Account determination for entry Cocd KBS is not possible". Please suggest how to get GL account in the PO.

  • 10.6.8 update

    Which is the better update to use - the 10.6.8 incremental and the combo?

  • I updated to iso 8 now I cant log into my apple id and its asking for a vpn password that I have never had either

    I updated my ipad air to iso 8 and now its asking for a vpn password I have never had one before, and even with my wifi shut off. It also will not let me sign in to my apple id, saying it is the wrong password, but I used it on my computer with no pr

  • Oracle CRM - user_type associated to user

    Is there any way in Oracle CRM customer to find out which user type was used to create customer? We need to subscribe enrollment for some users, but we do not know which user type was used to create all these users. Untill enrollment is assigned to r

  • Logic 8 CRASHING

    I'm running Logic 8.0.1 with all updates applied, on a Mac Pro 2008, 8 core 2.8 GHz with 8 gigs Ram. Leopard 10.5.2, MOTU 424 with latest drivers Logic has started to crash no matter what I do. I've tried removing all 3rd party plugs, repairing permi