Call the dynamic Action of the link

Hi guys,.

I'm sure that there is a super easy way to do it and I'm missing the obvious.

All I want to do is call a DA for a HTML link, is it possible? Call the function DA like I do with JS?


Help, please.

Thank you

Spam

Hello

I do the following to call a DA my link of the report column.

1. in the link attribute, set the following parameters:

onclick="return false;" class="my_link_class";

2. in DA, set the 'event' that ' click on ', 'Selection of the Type' "jQuery Selector". "JQuery Selector", enter the name of the class (with the dot) as:

.my_link_class

You can then define your actions of true/false in the DA.

Thank you
Rohit

Tags: Database

Similar Questions

  • Call a dynamic action automatically on a regular basis

    Hello
    We have a classic report which we would like to refresh that page every X minutes. We did this by using setInterval and $a_report but as I understand it, it is a unsupported feature... So I would go down the road of the dynamic action.

    But my question is this... How can I call the dynamic action automatically say every 3 minutes, with no user interaction?

    Hello Dev,

    You can use [url http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html] Plugin Timer

    Best regards
    Fateh
    ----------
    If you believe that my answer is correct or helpful to you, then please check the response as helpful or appropriate.

  • Call for dynamic action of an interactive report

    Hello
    I'm on APEX 4.1, 11 GR 2, Windows 7 and the latest version of Firefox.
    I have an interactive report. I want the end user to have the ability to click on a link to line level and launch a modal pop up on another page. Ideally, I would like to be able to use the Skillbuilders plug-in. I can make it work if I just go the road full page but I can't find a way to make it work like a modal pop up.
    I have tried different methods, which work, but I think that I should follow that is using a page-level dynamic action that fires when a found JQuery element selector is selected.
    The problem I have is that I can't find the proper JQuery selector syntax for the column. My report has a static ID of the IDN and my column a header of PARTS.
    The best I can manage is not to see something happen as a page refresh (if the link is on the same page). I don't see no errors in console and firebug.

    I replaced the dynamic action modal page appeal by an alert, which is not displayed, to make sure that it is not the configuration of the plug-in which is the cause of the problem.

    Someone would be kind to give me an idea of what I should be completed in the JQuery selector field of the DA and what should be the attributes of link? Because I want to redirect from page 1 to page 2, what should I put in the other fields in link?
    I've been chasing my tail with this for hours and read all the posts in this area, I could find, but I can't make it work. Any help would be much appreciated.
    Kind regards

    Danny

    That's what I did on my column link of an international registration:

    Link icon: (choose something)
    Link attributes: class = "btndetails" onclick = "return false;"

    (the onclick is vital, it prevents the default anchoring action does not happen)
    Implement the details of the target page that you want in your popup modal

    Create a dynamic action

    Event: click on
    Selection type: jQuery Selector
    jQuery Selector: .btndetails

    Advanced > scope of the event: live

    Real action:

    Modal Skillbuilders page:
    Location of the URL: attribute of the triggering element
    Attribute name: href

    Who should appear in the page without problem. The onclick is the key here, and probably why you were chasing your tail so far.

  • My firefox crashes after I called the link to google maps. Basically, does google maps useless.

    Google maps allowing to operate perfectly. I am a Taxi driver and often look for addresses and places with Google maps. Can you help me get it working again?

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How to add a link to the html area to launch a dynamic action?

    Hey, guys:

    I need to add a link to a region of html hyper (I wish it could be a button :(), the value of the items in this region is loaded by a process of pl/sql before loading the header. And this link must trigger a dynamic action to update the database. I know how to add a link Super in this region, but how to define this link if I can launch a dynamic action by clicking on this link, could someone give me a hint?

    Thank you very much in advance.

    Sam

    Published by: lxiscas on April 11, 2013 17:04

    When I said updateRec I was just a name. Using the class alias_ncic will produce exactly the same result.
    Learn more about what you're trying to do, I wouldn't do that with DA at all. I would probably do the link send page and launch a process that call your PL/SQL. But if you must do a DA I'll try to explain a technique below.

    When you say

    Then, I pass two values of two hidden variables:

    P216_H_NCIC_APPROVE_TABLE_NAME---> "SOR_ALIAS".
    P216_H_NCIC_APPROVE_KEY_VALUE---> #ALIAS_ID #.

    Your link not pass anything because you never actually call the link, you have a DA of the substitution of the link action.

    So... try something like that. Use it for your link attributes:

    onclick="return false;" class="alias_ncic" title="NCIC Approve" id="#ALIAS_ID#" rel="SOR_ALIAS"
    

    This defines two attributes more to enter the values you need to.

    In yourself DA action on a.alias_ncic add two actions to "set the value.
    1.
    Action: Set
    Set Type: Javascript
    JavaScript expression: this.triggeringElement.getAttribute ("id")
    Assigned items: P216_H_NCIC_APPROVE_KEY_VALUE

    2.
    Action: Set
    Set Type: Javascript
    JavaScript expression: this.triggeringElement.getAttribute ("rel")
    Assigned items: P216_H_NCIC_APPROVE_TABLE_NAME

    Now you have your values defined.
    Make sure that in your PL/SQL Execute Code action you both of these elements in the field "Page to go" so that they values are actually passed.

    That should do it.
    Thank you
    -Jorge

    Published by: jrimblas on April 29, 2013 16:49

  • Using the button ID in dynamic Action

    Hi all

    I want to call a dynamic action at the click of a button.
    To this I added a button id in the template button and by calling the ID number that is the DOM object in dynamic action.
    Is it possible that I can call the Id button dynamically in dynamic action?
    I support the demand both in 4.0 and 4.1 so I can't take full advantage of 4.1 features now.


    Thank you
    RD

    RD,

    Sorry to interrupt, but I just wanted to report that hard-code the ID of the button as it will cause problems you are application 4.1, because of some behaviors changed between 4.0 and 4.1. I blogged about it here:

    http://anthonyrayner.blogspot.com/2011/07/application-express-41-ButtonID-changed.html

    There are a few ways around this, but I think that probably the simplest here would be to remove the id = "" #BUTTON_ID # "in your template button, ensuring you have the placeholder #BUTTON_ATTRIBUTES # in your model, then set a custom ID (for example id = 'submit_button') directly in the attributes of your button." You can then simply view this ID in your DA "DOM object" and it should work in 4.0 and 4.1.

    Apart from that, and as says VANJ, your DA looks good and you should just be able to define all the measures 'True' you want, which fire when the button is clicked.

    Kind regards
    Anthony

  • More than one Page objects of value with dynamic action parameter

    Hello

    How to set the values of the two elements of the page based on another page, article in dynamic action IE

    -variable value tr_type is set using the function get_type

    -passing the p1_code parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    END IF;

    -If I write the function get_type with Exp of PL/SQL of TYPE 'SET', it triggers the error on the use of the service.

    -If I put body of the PL/SQL TYPE of function 'SET', the page displays error unhandled expception.

    How can I achieve this using dynamic action.

    Hi, IK,.

    Can you please quote the u of changes/amendments made to the code, I am unable to find it.

    Included missing: for element names.

    --value variable tr_type is set using function get_type
    --passing p1_code parameter
    TR_TYPE:=GET_TYPE(:P1_CODE); 
    
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    END IF;  
    

    Here is my scenario with code.

    I have a form with 4 elements (account (P1_CODE), quantity (P1_AMT), DR (P1_DR, hidden), CR (P1_CR, hidden), I am writing a dynamic action on P1_AMT (change) of the code)

    DECLARE

    TR_TYPE char (2);

    BEGIN

    -calling a function "GET_TYPE.

    -passing the P1_CODE parameter

    TR_TYPE; = GET_TYPE (P1_CODE);

    If TR_TYPE = "DR" THEN

    P1_DR: = P1_AMT;

    ON THE OTHER

    P1_CR: = P1_AMT;

    end if;

    end;

    Again, we know not not how you want to call a dynamic action,.

    assuming that on the evolution of the account (P1_CODE), the function call GET_TYPE(:P1_CODE) to retrieve the type of transaction,

    on the basis of the transaction that you want to set the amount of specific element.

    on the change of point P1_code

    Action: execute the PL/SQL code

    Parameters

    DECLARE
    TR_TYPE  char(2);
    BEGIN
    --calling a function "GET_TYPE"
    --passing parameter P1_CODE
    TR_TYPE := GET_TYPE(:P1_CODE);
    if TR_TYPE='DR' THEN
    :P1_DR:=:P1_AMT;
    ELSE
    :P1_CR:=:P1_AMT;
    end if;
    end;
    

    page elements to present - P1_CODE, P1_AMT

    page items to return - P1_DR, P1_CR

    Check the screenshot

    There are other ways to set the values using dynamic action, try the above

    Kind regards

    Jitendra

  • How to create dynamic action of the link column in the classic report

    I have an apex page to display a modal window using jquery. In the modal window, I have a classic report with a column of link I want to capture its click event.
    I thought I could create a dynamic action with selection of type = jquery selector. Not sure if I need to do anything on the link column and do not know the syntax
    jquery selector. Would appreciate help or direction?

    Always zip code using .

    ...\
    

    tags as described in the FAQ.

    I created a region of report with the following query:

    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    

    There is no alias specified for the "SELECT" column, Oracle uses so the content of the column as a default alias. It comes

    'SELECT'
    

    Instead of

    SELECT
    

    The necessary jQuery selector would be:

    td[headers="\'SELECT\'"] a
    

    However the need to release the single quote everywhere is a ticking time bug. SELECT an Oracle reserved word means use it as any type of identifier is either too smart.

    You should always use a valid Oracle identifier as an alias explicit when a column contains a literal value or a complex expression:

    select
        empno
      , ename
      , 'SELECT' link_text
    from
        emp
    where
        (  ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
         or :P2_SEARCHPU is null)
    

    APEX will use the column alias LINK_TEXT as the ID attribute of the column header and the cells in the column will reference it in their headersattributes. The jQuery selector is:

    td[headers="LINK_TEXT"] a
    
  • can the dynamic action call function already?

    I have a dynamic action that keeps a total on the screen for two columns of numbers.

    Now I need to have a total cumulative where X column > column Y. I don't know if I can do that in an expression javascrip t. I had hoped to call a JavaScript function that returns the value... but the function does not return anything right now.


    This could be a thing of syntax sillly - I hope so, but before you spend more time looking for in this I but I would like to ask - is it still possible?

    Assuming that column1 is apex global table 1(name=f01) and column 2 picture 2 (name = f02).
    Name of the item page that show the total operation: P100_TOTAL
    Dynamic action
    Event: change
    Triggered by: jQuery selector
    selector: * input [name = f01], input [name = f02] *.
    Event type: javascript

    var total = 0;
    /* Go up untile report table */
    var this_table = $(this.triggeringElement).parents('table:first');
    
    /* Loop through each report row */
    this_table.find('tr').each( function(){
    var colX = ( $(this).find('input[name=f01]').val() == ' ') ? 0 : parseFloat(parent_row.find('input[name=f01]').val() );
    var colY =  ( $(this).find('input[name=f02]').val() == ' ') ? 0 : parseFloat(parent_row.find('input[name=f02]').val() );
    /* Add colX if its greater than Y */
    if ( colX >colY)  {
       total += colX;
      }
    }
     /* Assign Page itme with total*/
    $s(' P100_TOTAL',total);
    
  • Tips: APEX 5 r IR by a dynamic action after the text fields complete

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    Now if I create a button that submits page or redirects to this page my report can be updated with the values of user entered without problem, basic stuff.  If I create the settings section as a dialog box model once again that I can get the update report as this dialogue submits the page as well as the report can refresh according to closed dialog option.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    I am struggling to get this to work and I even tried to copy these settings and do them as hidden for example bind input P1_A to P1_A_Hidden by a dynamic action and have the report where clause =: P1_A_HIDDEN, but have not managed to get this working.

    It's possible?  I know its easy to simply send the page and make it work, but I want the experience to be quite uniform for the user and act as you never leave the page.

    I saw on the packages of the app in the chart example.  The bubble chart has a list selector (salary) and the table updates dynamically, it seems so that the process can occur, but I need the user to enter text and not use selection lists.

    My apologies if I missed any, but I can give you more if it helps.

    Concerning

    1972903b-5166-494e-8355-08d9d4006e96 wrote:

    Hello I hope I can get assistance on this matter and thank you in advance for any information.

    I have an APEX 5 screen, that has 4 fields of entry of text and under this one IR that has these 4 parameters in its SQL where clauses.

    What I struggle to reach is to allow the user to enter values in the text fields click on a button called 'submit' and there all stages of implementing dynamic action without page reloading.  I want user to P1_A, P1_B, P1_C, P1_D press on "submit" input, dynamic action that links the values entered into the fields, then fire another dynamic action that updates the State when the button is clicked / modified values what works the best.

    The button simply trigger a unique dynamic action of refreshment on the IR region. Session state for page elements must be processed automatically by specifying them in the property Page to submit Items of the IR region.

    Please ensure that you have updated your forum profile with a recognizable username instead of "1972903b-5166-494e-8355-08d9d4006e96": Video tutorial how to change username available

  • Redirect button AND perform the dynamic action

    Hello

    I use Oracle 11 g and Apex 4.2.2

    It could be a matter of beginners (but that's what I'm ;-)) but I'll ask anyway.

    I created a button and can "redirect to the Page in this application" in the section "Action when the button clicked" or select "defined by the dynamic Action."

    Is there a way to select "Redirect."... "AND run the SQL Code?

    This is exactly the situation that I was considering. You start at the apex (which means don't not offensively or anything like that) and so the concept of session state can still be fresh for you. Telling me where you're just complicates things for yourself.

    Why do you, or makes you think, that you need to run plsql in dynamic action first and then redirect the page?

    Running code plsql already involves tracking session state and would require the value of the required items on the server. Running WHAT PLSQL is on the side server, if a call should be made. Given that you want to redirect afterwards, the call should happen synchronously, IE make the browser wait the result in order to continue to the next step. A redirect will just tell the server to send the new page to you.

    So why would not just use a send page? A page sent will submit all values of item on the server and thus session state. You can use the values of calculation and validation processes and never worry about having properly put it. You can filter out inappropriate process etc. According to the values of query (for example submit) so no problem there. Finally, a branch should redirect you to the target page. Remember, a branch is a part too and is essentially a redirect server-side. Find yourself on your new page without problem really and just send 1 page (send page, get another back essentially).

    That said, I simply don't consider a dynamic action. It is useless to laregely here and creates more problems than is useful to review more.

    What you have now is to redirect the client to another page, but in the process, you have lost everything from the original page. No values are stored in the session to all State: no save manual to submit State or session page. Add the element to the redirect link doesn't work either, as the link is built during rendering and is not dynamic (so no ' regenerated' link when you click it).

    Again, I advise you to:

    -put the button to send the page

    -create a process after you submit and run your plsql code

    -create a branch to a point after the process and set it to redirect to the target page

    or

    -put the button to send the page

    -create a branch set up to redirect to the target page

    -create a process on the target page and run your plsql code (but be aware that it may have to be executed conditionally)

    There are several traps on session state, so when you feel better grasp it. Page submits are not all that bad.

  • Cannot call a dynamic report link action after dynamic refresh

    I have a shopping car, that I'm trying.  (apex 4.2 database 11 g 2)

    In the basket, I have a link change which performs the dynamic action to open the modal page plugin.   I also have a button on the region to do a region of dynamic action refresh if you modify the cart in modal region.  After the updating of the region, I can no longer click on the link Edit (nothing happens)

    the link is defined as class = "lines" onclick = "return false".

    and lines is a dynamic action of jquery to call the page target in the link for the modal skills builders page.

    I checked the JS console and I saw no errors... any suggestions?

    Thank you

    Scott

    Hello

    When the page is loaded, Jquery listen event trigger on document.ready

    But in your case, when you refreshed your region, the values on the screen are from this point while it was loaded before.

    Go to your dynamic action

    Change extended the event live or dynamic.

    Scope of the event: DYNAMIC or LIVE

  • Date arithmetic gives error in dynamic Action that makes the value value

    Hello

    I am trying to create a dynamic action that automatically assigns the value of P8_ENDTIME to P8_STARTTIME + 30 minutes. Both are date variables.

    So far, my settings

    Dynamic action:

    Event: change

    Selection type: elements

    Items: P8_STARTTIME

    Scope of the event: static

    Real Action:

    Action: Set

    Set type: PL/SQL Expression

    PL/SQL expression: P8_STARTTIME + 1/48

    Page items to submit: P8_STARTTIME

    Affected elements Type: elements

    Assigned items: P8_ENDTIME

    Note: I read online by adding 1 to a date increments of one day. And the addition of 1/24 Add 1 hour. 1/48 will add a half an hour.

    These settings compile but when I change the STARTTIME field for a new date on my page it says:

    AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.

    I have to mention if I did my right PL/SQL expression: P8_STARTTIME then no error is thrown. : P8_ENDTIME be successfully will set the value of: P8_STARTTIME

    Your help is very appreciated.

    Item is string. not of type datetime. You must first fills in /date datetime type and then add 30 min. After that, maybe you must convert to a string.

  • How the dynamic Action to update several items based on a JavaScript Expression producing a table?

    Using APEX 4.2.

    I have the list of selection using a LOV which returns a display value and a value separated by a comma e.g. return 'reserved to items' and "66,88" or "Available items" and "90,23".

    I want that return values for example "66,88" to be assigned to two my form fields.

    I have a dynamic action that fires when the field with the changes of the list/select-LOV. I am using an action of 'Set value' and set 'Expression JavaScript' with the expression itself type value ' $v("P1_MY_SELECT_LIST").split(",") and using Type "Article (s)' selection and listing the two points that I want to set as the items in question (from the description of the JavaScript expression field it appears that a table of the results would be assigned to the changed items , in the order.

    However, the original value of the LOV return value is passed to the first of the elements concerned (complete with the comma if the original return value was of the form '10')

    If I add more REAL action of the JavaScript "alert (" HELLO "+ $v ("P1_MY_SELECT_LIST") .split (", ") [0] +" WORLD "+ $v("P1_MY_SELECT_LIST").split (", ") [1]" ") I * see two expected values.»

    Any ideas what I could do wrong?

    The action 'Set value' affects the value specified to all affected elements: a value to one or more items. To set a different value at different points, you need several actions "Set value", or simply use javascript to do it in one.

    Even if you use a javascript expression that corresponds to a table, the table is just being converted to a string again. It creates a mapping of some sort. That is why for example with '10', she also translated as such. Actually you set this value to these two elements: ' 10, ".split(",").toString () (implicit in the chain of course).

    The code makes it very obvious that it doesn't handle values, as described in the help of the element. Aid is not correct or is the implementation simply not here yet?

    Just look at the javascript for dynamic actions, images/libraries/apex/dynamic_actions.js, service da.setValue directory file:

        function _setValue( pValue ) {
            lAffectedElements$.each( function( i ) {
                // Set all affected elements to the value passed
                $s( this, pValue, null, lSuppressChangeEvent );
            });
            /* Resume execution of actions here and pass false to the callback, to indicate no
            error has occurred. */
            da.resume( lResumeCallback, false );
        }
    

    And when you use a javascript expression:

        } else if ( lSetType === "JAVASCRIPT_EXPRESSION" ) {
            _setValue( lJavaScriptExpression.call( this ));
    

    It's pretty simple. (and this is checked on apex 5. It's the same on 4.2)

  • APEX 4.2 limiting size of the value dynamic Action

    Hi all, I'm using ApEx 4.2.5 with 11 g BD and stumbled on this problem.

    I'm trying to set the value of a div within an HTML region. To do this, I use one set dynamic Action launched by a custom event "search" when user press enter or click OK to a search bar. I also use the PL/SQL function as set type body.

    I tested it and it works fine except if the content of the value is large enough (about 30,000 characters or more). I can't find any information about a size limitation for the return value of this type of package. I get this error code: ORA-06502 when I'm looking for a big content, and it seems that this error may occur when "you attempted to assign a value to a numeric variable, but the value is greater than the variable can handle", but I'll be back a PL/SQL CLOB variable in a div, so I don't see any kind of limitation. I think the limitation can be in the call made by apex in the background AJAX...

    I need help on this, thanks in advance.

    Gaël

    Hi gados12,

    gados12 wrote:

    OK, I tried something and the result is weird.

    I created a pakaged function to retrieve the right HTML content that is stored in my CLOB column (because I reached the limit of characters for PL / SQL code in dynamic action)

    So I called my function (allows to name it FNC_GET_SEARCH) my previous dynamic Action Set value. I still get the same error with large HTML content. However... it is there, it's weird.

    So that means the error is not my FNC_GET_SEARCH function, but the dynamic Action itself... So there must be some kind of limitation with this kind of dynamic action?
    Is it because the dynamic action to set the value using the package HTP in the background?

    The DA type 'Set Value' is for session state implementation and display the value of an element of page APEX value that is defined internally as VARCHAR2 (4000).

    As a result, you get the above error. Use the approach mentioned above to manage CLOB based rendering html.

    Also of your FNC_GET_SEARCH function for the display unit test error message.

    Kind regards

    Kiran

Maybe you are looking for