Code Action run Javascript dynamic Apex 4.1

Hello world

I want to know if there are known bugs on the dynamic Action (the Javascript code to execute).

We did a dynamic action to action "window.open '.
Window.Open ("& RAPPORT_URL_LANCEMENT", "_blank").

But we have a problem. The first time, a blank page opens not mentioned by our URL page.

We also tried to create a branch to our URL by does not open in another window. We want to keep given our open application page.

What we can do for this?

Thanks in advance. Good bye.

Is RAPPORT_URL_LANCEMENT a Page or item of the application?
Then, try window.open ($v ('RAPPORT_URL_LANCEMENT'), "_blank").

It is a Substitution variable?
Then, try window.open("#RAPPORT_URL_LANCEMENT#","_blank").

Tags: Database

Similar Questions

  • -Run Javascript - dynamic action wait full?

    Hello

    Apex 4.2

    I have a dynamic action that counts two real deposits

    (1) Execute javascript code that calls a plsql process to fill a graphical xml field hidden.

    (2) updates the table.

    The javascript call is made now apparently asynchronously, which means that the table is freshening up before the pl/sql has had time fill the data of chart_xml.

    I understand that some dynamic actions have an option "wait for result" of the execution, but is not available with JavaScript Code execution. I know almost nothing about Javascript, but I guess that this code:

    Apex. Server.Process ('P3_UPDATE_CHART_XML', {}

    F01: $.map ($('[Name="F01"]'), Function (e) {return $(e) .val ()})

    },{

    data type: "text",

    success: function (pData) {}

    });

    Can be adjusted to wait for the pl/sql process to complete?

    Out of my depth.

    Thank you

    Ralph

    Apex. Server.Process is indeed by asynchronous design. Now you can either make the browser wait the result by making it synchronous, or you can define a function sur-succes that run when the call is completed. Going with async, you can define follow-up actions, but "blocks" the browser in the meantime.

    Use the "async" parameter in the 3 param object:

    apex.server.process('P3_UPDATE_CHART_XML',{
    f01:$.map($('[name="f01"]'),function(e){return $(e).val()})
    },{
    async: false,
    dataType:"text",
      success:function(pData){}
    });
    

    Or, since you have the function success there, we can qualify the update region in this chart (but you should give the region to chart a static id) and do not use false async:

    apex.server.process('P3_UPDATE_CHART_XML',{
    f01:$.map($('[name="f01"]'),function(e){return $(e).val()})
    },{
    dataType:"text",
      success:function(pData){ $("#myChartRegionStaticId").trigger("apexrefresh"); }
    });
    
  • Dynamic javascript in APEX 5 trigger action

    Hello

    Return to the era 4.2, I triggered some dynamic Actions in javascript using: apex.event.trigger (document, 'Testing_Custom');

    Dynamic Actions has been defined as:

    • Event: Custom
    • Custom event: Testing_Custom
    • Selection type: DOM object
    • The DOM object: document
    • Condition:

    Today, the APEX 5 DOM object as the Type of selection option is no longer available.

    Instead, I used these settings:

    • Selection type: jQuery Selector
    • jQuery Selector: document

    It does not work.

    Any suggestions?

    Thank you

    Jos

    Just use the "Javascript expression" type, as say the docs Kiran. It has exactly the same result. That's what says the help on this:

    Specify the JavaScript Expression must be evaluated to return a DOM object, an array of DOM objects or object jQuery as the dynamic action.

  • actions dynamic apex 5.0

    I have upgraded an apex 5.0 application and have some bugs related to the dynamics of the actions.

    It seems that even when the field 'referred to submit page' was filled in the value / elements of session state is not updated and therefore cannot be used in the dyamic action.  (its possible I had set this manually via js in html attributes but if so then it was lost due to the possible conversion, but it seems less likely).

    Anyone had the same experience or know a way to solve this problem?

    Hello

    as already pointed out above code isn't really a JavaScript Expression, because it returns nothing. APEX 4.2 and earlier versions where more forgiving, because they were using eval to run this dynamic JavaScript code. EVAL is very tolerant and also accepts code that does not return anything. Due to security best practices, APEX 5.0 is not making more use of eval and expects that the JavaScript expression is really an expression and not a block of JavaScript code. Please see the documented change in behavior ' 4.24 dynamic Action Set Value Action Set Type JavaScript more strict Expression "in our Notes to the https://docs.oracle.com/cd/E59726_01/doc.50/e39143/toc.htm#HTMRN310

    In my opinion the dynamic action above should actually be of type 'Execute JavaScript Code' instead of 'set '. It's what he's doing.

    You can execute the statement following SQL in the SQL commands to get an idea of what dynamic actions could be affected by this change in behavior. He's looking for multi line JavaScript Expressions.

    select page_id,
           page_name,
           dynamic_action_name,
           action_name,
           attribute_05
      from apex_application_page_da_acts
    where application_id = 96695
       and action_code  = 'NATIVE_SET_VALUE'
       and attribute_01 = 'JAVASCRIPT_EXPRESSION'
       and instr( attribute_05, chr(10) ) > 0
    order by page_id, dynamic_action_name;
    

    Sorry for the inconvenience, this change of security has caused for you.

    Concerning

    Patrick

    Member of the APEX development team

  • Dynamic action call javascript to conditionally define read-only elements

    Hello

    I work with Apex 4.0.2.00.07. I have a form that is used for data entry. If the value of P1_STATUS = 'Order' (P1_STATUS can have the values of "Quote" or "Order") then all the elements cited on the Page (P1_QUOTE_PARTS and P1_QUOTE_LABOUR) are set to read-only.

    I tried to put the following code in the action DA "Run JavaScript Code"

    $('P1_QUOTE_PARTS').readonly = true;
    $('P1_QUOTE_LABOUR').readonly = true;

    Not too sure if the syntax is correct.

    I'm new to using JavaScript with Apex (not all good books/PDF on using JavaScript with Apex know)

    TIA

    You seem to have mixed with jQuery syntax and syntax JS for modifyig HTML attributes.

    It should be

    $('#P1_QUOTE_PARTS').attr ('readonly', true);

  • JavaScript for loop to execute Advanced Actions - execute Javascript does not?

    I use a loop to check the value of a Cookie.  When I add this using Execute Javascript it works fine but I want to run with certain other actions, if I want to use Of execute advanced Actions. When I add this coded to an action to run Javascript in the breast to perform advanced Actions code disappeared if I open the Script window again once.  I try to remove the code for loop in bold below and then the remaining code remains.  So I think that the problem must be with the loop for, but I don't see anything wrong with this code and I have, as I said that this code works fine if I use Javascript to run on its own. I've attached a video clip below to show what I mean.

    var task1_value = readCookie ("task1");

    function readCookie (name) {}

    var nameEQ = name + '=';

    var CA = document.cookie.split(';');

    for (var i = 0; i < ca.length; i ++) {}

    var c = ca [i];

    even if (c.charAt (0) ==' ') c = c.substring(1,c.length);

    If (c.indexOf (nameEQ) == 0) return c.substring (nameEQ.length, c.length);

    }

    Returns a null value.

    }

    I found that window JavaScript of CP does not like loops.

    Your best bet is to put the function in an external JS file from the top of the page. I always run scripts in an external file. Really helps debug that you do not have to republish Captivate. Just change your code and refresh the browser. If you use external file you can store all your functions there.

    I would also look into using the local storage instead of cookies. Very easy to implement and you can store a ton of information.

    Local storage - dive into HTML5

  • Actions running script

    I use Illustrator CS4 on a Windows PC, written in JavaScript. I know I can't call an action via JavaScript in my version/language but I can load the script of an action. I call some scripts of my action set using the Insert menu item in the action menu. However even if I record actions with scripts in Illustrator playlist does not maintain scripts in the action game. I'm doing something wrong? Is there a work around?

    Unfortunately, this has been a problem for years and there is no sign that adobe has no intention to fix it. The only current solution with which I am familiar is to simply add the script to the action whenever you open illustrator... It's a pain, I know, but better to be part of the action, then by calling the script manually.

    Another option is to create a shell script that will run your action, then when the action is complete, you can run the script in your shell script.

  • New version 9.0.1 on Windows 7 has a problem by running JavaScript math iterations.

    Error dialog box reads:
    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script ends.

    Script: http://www.classictesla.com/java/javatc/script/JTC_geotc.js:1299

    The dialog box above has never before imagined. This program is very well forever and has not changed. With Firefox 8, the program is run in 0.3 seconds. IMMEDIATELY that I welcomed the browser upgraded to version 9.0.1, the program is now not working.

    About 1,000 people use this program. Conscious slow corrections can be, I have to inform does not to allow FF upgrade to version 9. Really sucks as I've been a FF fan forever.

    If you go to this Web site, click on the button "Load Sample reel", then scroll down and click the button RUN JAVATC, you will see the problem

    If there is a problem with the script, why only now after so many years of running? I can run fine on version 8. If there is something I can do on my end, I'd like to (just tell me what is the problem).

    My guess = ' version 9 is limiting the number of iterations can execute a script. Copy the following code to run in 0.3 seconds and now is just hung. A very sad day for me. I guess I have to find a way to return to the old version 8.

    I can't return my Firefox to Version 8 and I can't find anywhere on the net, I need to remember to manually download each new version, so I have a copy of backup in case it has some bugs, so I can go back to the old, now I'm stuck with Version 9

  • Firefox 7.0.1 has stopped working on my wiki (hull.ac.uk/awe). So has Hotmail: both are still in IE 7.0.5730.11. Connections look good: it's just the HTML is not displayed. I deleted some code/action unintentionally?

    I use Firefox 7.0.1 on an old Dell with Windows XP Home edition machine. For years, I used Firefox to work on my wiki (hull.ac.uk/awe) without any problems. In the last month or two, the browser refused to apply the wiki markup in the way I used to see, unlike IE (7.0.5730.11). Hotmail also no longer works in firefox, though it's fine in Internet Explorer. (In a moment paranoid, I was afraid that Microsoft was blocking Mozille; but this seems unlikely.) Connections look good: it's just that the browser is no longer implements/displays the text marked in the way I want (and I'm used to) to see. I deleted some code/action unintentionally? If so, how can I return it?

    Try to upgrade to Firefox 8.0.1

    You can find the latest version of Firefox here:

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • CRIO/FPGA code to run locally

    So I'm currently write code that will run on a cRIO (the processor in real-time and FPGA).  Is there a way that I can run on my computer without be hung to the material?  I do not have easy access to the material and would really like to test the behavior of my code.

    Thank you.

    Hello

    You can create a cRIO in your LV project without having the hardware, you can compile the FPGA code and run in simulation mode too, but you cannot run the code of RT.

    Christian

  • CloudClient 3.3.1: vra provisioneditem action run broken?

    Apologies in advance if this is not the right forum for CloudClient problems/bugs.

    Version: cloudclient - 3.3.1 - 2966416

    I downloaded CloudClient 3.3.1 yesterday and he was trying to run the command 'run the vra provisioneditem action', but it kept giving me an error that the '-id' parameter was not a valid UUID.  I ran this before to use the name of the machine virtual like the id with v3.1.0 and never had a problem.  Even aid said that the 'id' parameter can be 'an ID or a name.  Here is the error:

    Version: 3.3.1

    * Tip *: you can press tab to move through the commands and arguments

    Welcome to the VMware CloudClient

    CloudClient > vra provisioneditem action run - id "mytestvm" - action "Power Off".

    Error: The input provided resulted in an exception REMAINS: string is not a valid UUID: mytestvm. The HTTP status is 400 - BAD_REQUEST.

    With the help of cloudclient - 3.1.0 - 2375258:

    Version: 3.1.0

    * Tip *: you can press tab to move through the commands and arguments

    Welcome to the VMware CloudClient

    CloudClient > vra provisioneditem action run - id "mytestvm" - action "Power Off".

    Success.

    By the assumption, there is a maintenance release coming out soon (next month or almost) that will correct this problem.

    We would need to take advantage of workarounds to power the UUID instead of name for now.

  • Display of Web pages can run JavaScript?

    Hello
    There is a project for my study need some Google Map API.
    I want to add a display of Web pages to show the map.
    But how to run JavaScript and get the return value?
    Thank you
    by Qilin Ran

    See the [http://docs.oracle.com/javafx/2/api/javafx/scene/web/WebEngine.html url] Javadocs for WebEngine.

    Something like

    Object result = webView.getEngine().executeScript(...);
    

    Edited by: James_D on 9 may 2013 12:28

  • 12.1 T2K Delta 3 patch (8919489) ERROR + fails [code = 1] Running adjcopy.cla

    During the upgrade of database 11.1.0.7 to 11.2.0.3 as spots of pre - req
    12.1 T2K Delta 3 patch (8919489) fails with the ERROR [code = 1] Running adjcopy.class

    Environment is cloned - R12.1.1 and migrated to OEL 4 5 OEL
    ====================================================

    Updating of the Oracle Applications if necessary Java files...

    * $JAVA_TOP/META-INF/JRIMETA. DAT backup...

    Copy JRIMETA. DAT de JRIMETA. DAT. BackedupByAdpatch...
    Copied from JRIMETA. DAT de JRIMETA. DAT. BackedupByAdpatch.

    * Successfully supported JRIMETA. DAT.

    Adjcopy.class running:
    adjava-mx512m - nojit oracle.apps.ad.jri.adjcopy @/d02/applmgr/DEV/apps/apps_st/appl/admin/DEV/out/apps.cmd

    AutoPatch error:
    ERROR [code = 1] Running adjcopy.class

    AutoPatch error:
    Archives of master update error

    An error occurred during update of Oracle Java Applications if necessary files.
    Continue as if it was successful [No.]:

    ============================================================

    Please help me in this problem.

    Published by: user11958935 on August 18, 2012 22:39

    AutoPatch error:
    ERROR [code = 1] Running adjcopy.class

    You will find all the details on the error in the log file?

    Please see this doc ( Patch 13706647 R12 application error. BPM a: ERROR [code = 1] adjcopy.class [1455555.1 ID] running).

    AutoPatch error:
    Archives of master update error

    Please see if help solutions contained in these documents.

    During patch received: error [Code = 1] Running Adjopy.Class [397480.1 ID]
    Interoperability Patch 9935935 fails with error: 'IO error or zip, trying to read the README_share.txt entry in the zip file /java <$COMN_TOP>' [1288064.1 ID]
    11i: "Running adjopy.class ERROR: cannot create the file of success" error ADPatch using [1465401.1 ID]

    If you still have the same problem, please log a SR.

    Thank you
    Hussein

  • Run javascript with a taskflow input parameters

    With the help of PS4 11 g JDev

    I have a taskflow using javascript. When the taskflow was loaded, I need to execute a javascript function that uses my taskflow 2 input parameters.
    I don't really know how I can run javascript with my input parameters.

    A test, I added a commandButton control in my taskflow who will do the job:
    <af:commandButton id="btnRefresh" text="Open">
                <af:clientAttribute name="long" value="#{pageFlowScope.pLong}"/> 
                <af:clientAttribute name="lat" value="#{pageFlowScope.pLat}"/> 
                <af:clientListener method="doNavigate" type="click"/> 
            </af:commandButton>
    How can I do the same thing when the taskflow charge instead of having to press the button.

    Please find attached examples based on your use cases:
    http://adfsampleapplications.googlecode.com/svn/trunk/JavascriptOnLoadSample.rar

    She calls a javascript function when loading pagefragment passing the input parameters of the taskflow.

    Thank you
    Nini

  • I need a code to run a report a forms on 10G...

    Hello!! I m 6i to 10G migration and I can not run a report... can someone send me a code example to run a report on a form in 10G?

    Thank you!!

    Kind regards!

    IAM using Javabean in oracle 10 g tun report forms...

    First, create a block with a name control and add a bean with a name
    userid_bean. Click the bean field and change its width and its height
    so that u can not see when you run the form.

    Now use the code when you code to run the report below.

    Declare
    rep_url varchar2 (2000);

    Start

    rep_url: = ' / reports/rwservlet? report = filepath\rep1. RDF' |
    «& desformat=htmlcss&destype=cache&userid=sample/sample@oracle» | '& paramform = yes;

    -Write Log messages to the console of JInitiator forms. The following line must
    -be disabled before running this code in any production environment.

    set_custom_property ('control.userid_bean', 1, 'ADD_USERID',)
    get_application_property (username) | » /'||
    get_application_property (Password). » @'||
    get_application_property (connect_string));

    -writes the cookie

    set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
    Web.show_document (rep_url, '_blank');

    end;

Maybe you are looking for

  • HP Pavilion PC 15-p207TX NB: the upgrade from normal to backlit keyboard

    Hello My product is HP Pavilion 15-p207TX NB PC. I want to know that is it possible to change the keyboard from normal to backlit keyboard... ???. I have f Yes what is the cost. And one more thing, my laptop is in warranty if I change my keyboard it

  • Slate7 2800 - microsd with the new update problem

    Hello world.Yesterday, I received an OTA update on my slate7. After installation, the Tablet has become faster (especially at startup), but now it is not recognized any microsd! I tried different memory cards, but nothing. The update is 1.05.17_user.

  • Why am I notifications for updates on App Store not a secure connection when I try to connect to my Mac?

    NO notification ofT SURE WHY MY APP STORE on my Mac updates, signing gives me a warning asking if I want to continue? Cannot establish a connection to the App Store. When I clicked on continue see what would happen, the app store wouldn't load & stra

  • New Ideapad Y510p crashes/completely off when the games

    I've had the laptop since last Friday. I have updated drivers to date and have been installing some games on the device. I was installing a ton of games for two days while I'm at school (download speeds a lot of steam and origin) and have had problem

  • Can't find wbadmin.exe ANYWHERE!

    Running Windows Vista Home Basic on a laptop Compaq CQ50-139WM. I can ' t find wbadmin.exe anywhere on the comp. everything I read said it is included in that copy of Vista, but I can't find it anywhere. " Is there somewhere on the site I can downloa