How to run dynamic Action when clicking on a link in a report

APEX V4.2.3

DB EA 11.2

APEX listener V2.0.5.287.04.27

13 blue-gray theme

IE9.0.8112

FF26.0

I have classic report and I would like to launch a dynamic action (together a show has confirmed and the value of the alert, submit the page, then run a process) when the user clicks on a link in a report or click on #ID #.

I can write the real actions that I just need to know what to write behind the report link that will serve as a trigger for the DA?

Thanks in advance

PaulP

It's the link attribute

onClick = "if (confirm (' do something for #ENAME # with EMPNO: #EMPNO #'")) {$s('P5_ENAME_CLICKED','#ENAME#') ;};$s('P5_ID_CLICKED','#EMPNO#');doSubmit()""

It's getting a bit long on a single line, if you want, put it in a function

However, fixed, forgotten pair of single quotes as soon as possible.

Now you have 2 bind variables to use in the process of page after submit.

: P5_ENAME_CLICKED and: P5_ID_CLICKED

I've updated the example page, http://apex.oracle.com/pls/apex/f?p=14308:5

Good luck.

Tags: Database

Similar Questions

  • Call the process page when clicking on a link to report

    Hi all
    I want to call a process of conditional page when clicking on a link to report;
    That is to say the process runs only if the user clicks on the report link.
    How can I do this?

    Thanks for your help.

    Concerning
    Ozzie

    Hello

    Yes, if you use the column change attributes report, in the section "links" column you can assign values to some articles.

    But if you only need to apply, you should probably use URLS like target and a javascript:doSubmit('REQUEST');.

    Kind regards
    Andrea

  • How to cancel tasks in a dynamic Action when apex.confirm = cancel

    I have a text field that has a dynamic Action attached to it. When the field is changed, the dynamic Action is triggered. There are 6 separate tasks in this dynamic Action.

    The first task is a call to apex.confirm. I want to assure you that the user understand the consequences of the change in the value of this field. Thus, appears the dialog box, the user reads the information and decides to click OK or cancel.

    If you click OK, I want to continue through the rest of the tasks in the dynamic Action. If you click CANCEL, I want to just give up out of dynamic Action.

    Is this possible?

    Apex 4.1.1.00.23

    Published by: Mark T. March 1, 2012 09:49

    Hi Mark,

    code, says more than words :-)

    I changed your "apex.confirm" JavaScript code in action 'Confirm' that does what you want. The "apex.confirm" JavaScript API is not designed for what you want to do and how you used it.

    The example works now in my opinion.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • 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
    
  • How to run an application when the cell phone is power on

    I want to run an application when the cell phone is power on. It runs in the background, how so, please give me a code, I don't know, thanks

    It is enough to set project properties in JDE as shown on the attached photo (check below: screenshot.png).

  • Can I run an action on click of a button in Acrobat?

    Hello world

    I created some actions in acrobat to perform certain operations on most of the PDF files. To run or activate action, I must always go into tools-> Action Wizard and perform the action. I want to run this action to a button click event. Is it possible to perform an action on a button click event or if it will be javascript code? Please help me in this regard. I use Acrobat X PRO.

    Thank you

    Manjeet

    Hello world

    I've studied a lot of things and come to the conclusion that it is not possible to run/activate an action on any type of event (or using javascript).

    Another point action cannot run another action in Acrobat X pro.

    Kind regards

    Manjeete

  • Dynamic action - when the 'event' and 'condition' seems to have no sense

    Step by step, I am trying to get free Javascript coding so I can rely on what natively offers the Apex. It was an interesting experience, however I have noticed certain situations sicesdonneessontdisponibles options seems to have no sense, at least to date, and you will certainly help me which can be cleared up. I tried to put one of them into words. I just created a new dynamic action that will just set the focus to an element whenever my page is loaded.

    Why my new dynamic action allows me to choose the "Page loading" event and condition "sucks"? I don't understand why this combination is available. There is probably no effect anyway, but I decided to leave the condition "without condition."

    Thanks in advance.

    Franklin.Jr wrote:

    Step by step, I am trying to get free Javascript coding so I can rely on what natively offers the Apex. It was an interesting experience, however I have noticed certain situations sicesdonneessontdisponibles options seems to have no sense, at least to date, and you will certainly help me which can be cleared up. I tried to put one of them into words. I just created a new dynamic action that will just set the focus to an element whenever my page is loaded.

    Why my new dynamic action allows me to choose the "Page loading" event and condition "sucks"? I don't understand why this combination is available. There is probably no effect anyway, but I decided to leave the condition "without condition."

    It's just that there is a basic LOV status of one size for all types of events. Most of the conditions it contains is relevant to events associated with the elements. "Page Load" + "sucks" doesn't in fact make sense, but 'P4_END_DATE' + 'is null' fact. The Condition property remains visible and active so that the option "JavaScript expression" are available, as this can be used to make any event conditional.

  • How to update the table when change list item in the classic report

    Hello
    I worked with apex 4.2 and I create normal classic report with list (named loved) select a column, now I want to update the table when the user changes the list with the new value, I can't create a dynamic action to do this, I create checkbox with the primary key and the loop for check point to update the table but I can not get the value of the list item. and for more speed, the user want to do it when changing the value from the list.

    My question
    1. how to do it in javascript and get the value of the list item and update the table with the new value
    2. do I have to use the API to create the list item so I can get the value of the report item or what.





    Thank you

    Ahmed

    You can find a lot of information in this forum (and outside in google) when you search for AJAX processes and demand. However, the tutorial in the link below should be useful:
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/hol08/apexweb20/ajax_otn.htm

    BTW, if we answer your question, don't forget to mark the appropriate post as correct. It will help all of us in the forum.

  • How to save a backup when there is a link attached?

    Sometimes I met an image I want to 'save', but there is a link attached to it, usually a link to the homepage of the site.

    When the link is there I not give me an option to save the image, just the link options.

    How can I save such an image?

    Links can use images "inline" or "background".

    Inline images must appear in the context menu whether or not they are related. (For example, the image to the left of this answer should have both a "links" section and a section of an image).

    Background images may not appear in this scenario (for example, Firefox logo at the top of this page). You can save these pictures to help

    Tools > Page Info > media

    but it takes a little time to arrow down through the list to find the one you want to record.

  • How to perform an action when the user clicks on the "OK" button on a script by xfa.host.response

    Hello

    I have a script that when you exit a field without the user data that a script response is mentioned.

    When the user has entered the required data in the dialog box and click the OK button I wish that the data user in the field as a value.

    Please can someone tell how this is possible?

    The script is listed as follows:

    If this field is stopped without the user to enter data, the following message is displayed

    If

    (Employee_ID.rawValue == null)

    {

    XFA. Host.Response ("is a required field, enter your employee id');

    }

    Hello

    I think that this script will do the job:

    If (this.rawValue is nothing)

    {

    var id = xfa.host.response ("is a required field, enter your employee id');
    this.rawValue = id;
    }

    Yan.

  • How to perform an action when the button is clicked reply all in BB email?

    I find the solution on below scenario, any help appriciated.

    User open a receipt email and click the 'reply to all' "."

    It is possible to perform any action on the button 'reply to all '?

    Thank you

    You can not interact with native applications except for adding your own menu entry (entries).

  • [ADF, JDev12.1.3] af:table: how to perform certain actions when the user clicks on a line?

    Hallo,

    When a line of my af:table is selected, I'd like to perform actions; in particular, I have to toggle a button based on the values of a group of fields to the selected line.

    What are the possible approaches to achieve this?

    Thank you

    Federico

    Use a generic selection listener (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf) and call your actions here before or after the selection of the new current line.

    Timo

  • How to make slideshow change when click on image?

    How can I make a great slideshow base which replaces the following image when you click on the current image on?

    I want to remove all the thumbnails and navigation (previous/next) and only have the slide show forward advance.

    Looks like a very basic slideshow function. Any help is appreciated.

    A

    You could always just put the navigation above the slide show and remove the widget. Cover half of your slide show with navigation on the left and half with right NAV. Make sure that the background of the nav button has no fill. If the user clicks on the left side of the image he go back and the right side of the image will be going forward.

  • perform different actions when clicking on pop-up buttons

    Hello

    I'm Using < af:popup id = "" > < af:dialog type = "okCancel" title = "" > combination jump upward.

    I want to browse different pages, for example 'one.jspx' and 'two.jspx' when I click on the button 'OK' and 'Cancel '.

    can anyone help on this please...

    Concerning
    Claudine.

    Well, you can avoid this exception if you use the following code to redirect

    FacesContext fc = FacesContext.getCurrentInstance();
    fc.getExternalContext().redirect(fc.getExternalContext().getRequestContextPath() + redirectUrl); 
    

    where to redirect url's when you try to go WITHOUT the context path, of course.

    Even if it won't work, if you redirect using this code and not by the 'action' return the string, you may want to commit / rollback of transactions, clean the connections etc etc...

    Another way might be, instead of the default ok and Cancel in the control dialog box, drag the normal command buttons on your toolbar diaglog and get them back to your case of navigation.

    It will be useful,
    Julian

  • How to run this action after you have selected an article in UITableView

    I want to display a few cells in 3 different sections of the table. Initially, all cells will be hidden and only the section headers will be visible. When a user clicks on any section, the cells under that article becomes visible.

    Have you considered using several tables and in each table setting an additional column with a filter? The discussions here are mainly on the numbers for the Mac.  You must configure the filters on the Mac, but you can activate the filters on / off power in numbers for iOS.

    SG

Maybe you are looking for