Send an email when application execute a query

I use Jdeveloper 11.1.1.3.0
The application is a web application.
How can to sent an email, from web application, when the user clicks the button search in af:query?
Which componet should I use?
Thanks

af:query has a property QueryListener which points into the bindings. You can however use you own listener in a bean , execute the normal EL (copied from the original QueryListener) and send your mail before or after you execute the original query listener.
Frank Nimphius published an example how to do this here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/67-queryform-in-popup-253861.pdf
It's not exactly what you are looking for but it shows the technique.
Timo

Similar Messages

  • Sending an email when passwords are expired?

    Hello,
    I am a novice in JSP area. What I am working on thesedays is to send an email when a password has been expired. The password will be expired after 60 days. Can I embed the codes in Servlet? Or should I use something else such as Oracle pl/sql?
    The thing is the web server is not in my company. I have to send a war file to the office which has the server. So I really want to embed every functions including sending an email into the war file.
    Thank you in advance!

    I am sorry. I put this on wrong forum. I didn't know how to delete it, though.

  • Keynote presentation on ipad wont send on email when saved as powerpoint document as its 59mb, yet the same document on my mac saved as powerpoint is 7mb ?

    wont send on email when saved as powerpoint document as its 59mb, yet the same document on my mac saved as powerpoint is 7mb ?

    Came here to complain about this maddening feature. Why it doesn't save the PDF out to a separate instance of the document is beyond me. PLENTY of us want to save the PDF without the layers, and want the PSD separate.
    "Oh good, I've completed this document.... let me just save it out as a PDF for client delivery and... Now all the work is gone."
    Genius, Adobe, genius. But it's cool--we'll just keep paying out the nose on a subscription basis with no fix for small errors like this.

  • [Windows] file.url throw error when application executable in root directory

    Here is the bugbase ticked: Bug#3940278 - [Windows] file.url throw error when application executable in root directory
    If you launch AIR application packaged as bundle from root directory and try to get url property of any file you get IllegalOperationError.
    No matter what file url property you try to get.
    It's a big problem when you distribute your application on CD disks or flash drive.
    I'd like to ask everyone affected by this issue to take a minute and vote for the following bug.
    Thanks.

    I checked all deployment descriptions and there are no references to t3://localhost:7001. Few months back, I had the complete clustering setup working on 2 machines and now when I deploy my application on same configuration, it fails with t3://localhost:7001 unreachable error. I created a new cluster configuration on one machine with 2 managed server and it deploys fine. Can not figure out what has changed ?

  • Error message when I execute a query

    Hi,
    When i execute a query appears the message "Error specify a value for variable Z...". I can't execute the query.
    This situation exist from a new release of SAP-BW (7.0).
    Thanks and best regards.
    CV

    Hi Christiano,
    Try these SAP Notes...
    SAP Note Number: 955515
    SAP Note Number: 333208
    SAP Note Number: 1074801
    Also check this thread...
    error
    Hope these helps u...
    Regards,
    KK.

  • In Lookout 6.2 how can I send an email when an alarm has deactivated or cleared?

    I need to send an email when an alarm has deativated. Such as, AC power fails and the generator is running. Whne the AC power is restored, I want to send an email as well as when the generator stops running. I have created mailer objects to do this based on the data member for each being "false". The problem is, that if the system does a restart then emails go out for all of those data members because they start up as "false" in the normal condition. Anyone have a suggestion?
    Thanks
    Brad Adams
    Communications Group Inc.
    [email protected]

    Simplest way i can think of is a FlipFlop or a latchgate obect to ensure it did start first.  Reset the flipflop/latchgate when the email is sent.
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Sending an email when the report is being refreshed

    Hi All,
    Is it possible, in Answers, to send an email automatically when a report is being refreshed ?
    Thanks in advance,
    Lau

    You can do this multiple ways, As you mentioned using conditional ibot also. You should have flag or indicator in your database saying that ETL load was done. Then based on conditional request run a ibot. But the trick is after completing this ibot you need to turn of the flag.
    Other easiest way is Create a report which runs ibot, Make sure you checked Oracle BI Server Cache feed check box, save the ibot. At the end of ETL execute a command which runs the ibot job for you. There is a command mode application available in Oracle BI called SASchInvoke.exe. This application will run the ibot for you.
    here is the blog which explains more about it.
    http://oraclebizint.wordpress.com/2008/03/06/oracle-bi-ee-101332-integrating-schedulerdelivers-into-other-applications/
    - Madan

  • Dump when i executed bex query

    i execute bex with my user ( i am sap_all), i haven't problem.
    when i executed this same report ( with variable autorisation), i have this dump:
    the dump:
    Erreur d'exécution     GETWA_NOT_ASSIGNED                                                          
    Date et heure          11.12.2009 17:26:11                                                                               
    Désignation                                                                               
    Field symbol has not yet been assigned.                                                      
    Causes                                                                               
    Error in the ABAP Application Program                                                                               
    The current ABAP program "SAPLRSEC_CHECKS" had to be terminated because it has               
        come across a statement that unfortunately cannot be executed.                               
    Solutions                                                                               
    Note down which actions and inputs caused the error.                                                                               
    To process the problem further, contact you SAP system                                       
        administrator.                                                                               
    Using Transaction ST22 for ABAP Dump Analysis, you can look                                  
        at and manage termination messages, and you can also                                         
        keep them for a long time.                                                                   
    Analyse des erreurs                                                                               
    You attempted to access an unassigned field symbol                                           
        (data segment 32774).                                                                               
    This error may occur if                                                                      
        - You address a typed field symbol before it has been set with                               
          ASSIGN                                                                               
    - You address a field symbol that pointed to the line of an                                  
          internal table that was deleted                                                            
        - You address a field symbol that was previously reset using                                 
          UNASSIGN or that pointed to a local field that no                                          
          longer exists                                                                               
    - You address a global function interface, although the                                      
          respective function module is not active - that is, is                                     
          not in the list of active calls. The list of active calls                                  
          can be taken from this short dump.                                                                               
    Comment corriger l'erreur                                                                               
    If the error occures in a non-modified SAP program, you may be able to                       
        find an interim solution in an SAP Note.                                                     
        If you have access to SAP Notes, carry out a search with the following                       
        keywords:                                                                               
    "GETWA_NOT_ASSIGNED" " "                                                                     
        "SAPLRSEC_CHECKS" or "LRSEC_CHECKSF06"                                                       
        "LOOK_UP_STAR_VARIABLES"                                                                               
    If you cannot solve the problem yourself and want to send an error                           
        notification to SAP, include the following information:                                                                               
    1. The description of the current problem (short dump)                                                                               
    To save the description, choose "System->List->Save->Local File                           
        (Unconverted)".                                                                               
    2. Corresponding system log                                                                               
    Display the system log by calling transaction SM21.                                       
           Restrict the time interval to 10 minutes before and five minutes                          
        after the short dump. Then choose "System->List->Save->Local File                            
        (Unconverted)".                                                                               
    3. If the problem occurs in a problem of your own or a modified SAP                          
        program: The source code of the program                                                      
           In the editor, choose "Utilities->More                                                    
        Utilities->Upload/Download->Download".                                                                               
    4. Details about the conditions under which the error occurred or which                      
        actions and input led to the error.                                                                               
    end ******************
    best regard
    francoise

    Try applying the following OSS Notes into your BW system. These should resolve the issue.
    [OSS  Note 1244842 - Termination LOOK_UP_STAR_VARIABLES-01-|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1244842] (relevant for BW 7.00 SP20, BW 7.01 SP3, BW 7.10 SP7 or BW 7.11 SP1)
    [OSS Note 1290949 - Dump GETWA_NOT_ASSIGNED for Query on InfoSet|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1290949] (relevant for BW 7.00 SP21, BW 7.01 SP4, BW 7.10 SP8 or BW 7.11 SP2)

  • Sending a email when a line is Backordered

    Hi All,
    I am looking for the possibility of sending a eamil to a user when a line gets backeorderd at Pick release or at ship confirmation. Is there any seeded workflow which can be used to send the email notification.
    Regards
    Deepak

    Please not that if you use Oracle Alerts, it will create a trigger on the table. It is not necessarily a bad thing, but you should consider the performance impact of creating a trigger Vs. running a report every 30 minutes to send the emails for the back-orders in the last 30 minutes.
    One more solution can be to find the workflow that is executed when a line is backordered (if it uses WF at the first place) and then customize it to add a notification function which will send the email.

  • Trigger a event and send an email  when a new entry is created in a table

    Hi All,
                I have scenario here where i want to trigger a event and send an email too when a new entry is created in a Ztable or an existing entry is changed.
    Please let me know how can i achieve this.
    Please excuse me if you find it basic as I am not very old in Workflows.
    Thanks in Advance,
    Saket.

    Hi..
    For your Requirement workflow not Required.
    Write a  Program to send Mail. This Program has to execute when ever the Save Button is Click, then the mail will be sent.
    Check the program in this [link|https://wiki.sdn.sap.com/wiki/x/nYKdAw ], which send the mail.
    Regards,
    Surjith

  • Sending an email when the payment run its finished

    Dear experts,
    I need to generate an email to only one recipient when the payment run its finished (F110).
    Can you help me with this?
    Points will be rewarded.
    Rgs.

    Hi
    If its just sending an email this can be achieved.
    An ABAP program can be developed to trigger this email and the same can be attached in the print programs tab of Automatic payment run with proper variant.
    But, if an workflow needs to be triggered then its a very huge task.
    Check if there is any standard SAP workflow for the same, i think there isn't any like that.
    Let me know if you require any further details.
    Kalyan
    Assign points if helpful

  • Need Help in sending Private Email when user clicks Oracle Password Reset

    How to send an email to user marked as PRIVATE and Confidential when they hit the Oracle Password Reset Link.

    user11986391 wrote:
    How to send an email to user marked as PRIVATE and Confidential when they hit the Oracle Password Reset Link.What do you mean by private and confidential?
    Reset Password Functionality FAQ [ID 399766.1]
    How to Modify The Password Reset Statement for the UMXUPWD.wft Workflow [ID 420236.1]
    How to Change the Text of Instructions in the "Reset Password" Screen? [ID 762798.1]
    How to open customized page when click on "Forgot Password" URL ? [ID 556454.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Password+AND+Forgot&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Unable to send the email when ownership is assigned for a task using SharePoint

     
    When we give any permission to the user through Group and People in SharePoint then that respective user gets an auto generated email, this is working fine for me.
                            But my actual problem comes here, I have created a task list in SharePoint when I assign a task to the person then that respective person did not get auto generated email. So please do help me with a right solution.

    Hi,
    Check below link,Might be help full for you.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/55d29459-9aae-4bd0-8cc6-97424326f49f/send-email-when-ownership-is-assigned?forum=sharepointdevelopmentlegacy
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

  • How can I send an email when a function returns false?

    Im trying to make this code work, but i still receive an email when the function is equal to false. Can anyone assist me in finding the issue? What the program does is look for servers that has a set limit (in GB) on specific drives.
    #This Program goes through all the servers and informs any level below the limit
    $ErrorActionPreference = "SilentlyContinue";
    $scriptpath = $MyInvocation.MyCommand.Definition
    $dir = Split-Path $scriptpath
    #=================Function============
    Function isLow($server, $drive, $limit)
    $disk = Get-WmiObject -ComputerName $server -Class Win32_LogicalDisk -Filter "DriveType = 3 and DeviceID = '$drive'";
    [float]$size = $disk.Capacity;
    [float]$freespace = $disk.FreeSpace;
    $sizeGB = [Math]::Round($size / 1073741824, 2);
    $freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
    if($freeSpaceGB -lt $limit){
    return $true;
    else{
    return $false;
    #================Servers==============
    #------------------###server1--------------
    $server = "###server1";
    $drive = "C:";
    $lim = 25;
    if(isLow $server $drive $lim)
    $Alert += $server + " || " + $drive + " is low<br>"
    $server = "###server1";
    $drive = "D:";
    $lim = 35;
    if(isLow $server $drive $lim)
    $Alert += $server + " || " + $drive + " is low<br>"
    #-----------------###(more servers ect.)--------------
    #================EMAIL===============
    $smtpServer = "192.168.x.x"
    $ReportSender = "[email protected]"
    $users = "[email protected]"
    $MailSubject = "ALERT!!! Low DiskSpace"
    foreach($user in $users){
    if($true){
    Write-Host "Sending Email notification to $user"
    $smtp = New-Object Net.Mail.SmtpClient($smtpServer)
    $msg = New-Object Net.Mail.MailMessage
    $msg.To.Add($user)
    $msg.From = $ReportSender
    $msg.Subject = $MailSubject
    $msg.IsBodyHTML = $True
    $msg.Body = $Alert
    $smtp.Send($msg)
    else($false){
    Write-Host "No one is pass the limit"

    Using a CSV is good.  Just load the "$servers" hash array from a CSV and the rest will work the same. The overall structure would work better if it was more like this.
    Function isLow($server, $drive, $limit){
    $disk = Get-WmiObject -ComputerName $server -Class Win32_LogicalDisk -Filter "DriveType = 3 and DeviceID = '$drive'"
    if($disk.FreeSSpace -lt $limit){
    $true
    }else{
    $false
    $servers=@()
    $servers=@{
    Server="###server1"
    Drive='C:'
    Limit=25Gb
    $servers=@{
    Server="###server2"
    Drive='D:'
    Limit=15Gb
    $servers=@{
    Server="###server3"
    Drive='C:'
    Limit=50Gb
    $results=foreach($servers in $servers){
    if(isLow $server.Server $server.Drive $server.Limit){
    '{0} || {1} is low<br>' -f $servers.Server,$server.Drive
    if($results){
    Write-Host 'Sending Email notification' -fore green
    $mailprops=@{
    SmtpServer='192.168.x.x'
    From='[email protected]'
    To=$users
    Subject='ALERT!!! Low DiskSpace'
    Body=$results
    BodyAsHtml=$true
    Send-MailMessage @mailprops
    }else{
    Write-Host 'No one is past the limit' -ForegroundColor green
    The biggest issue is to realize that this is a computer.  If you type the same thing more than once then consider that the computer can do it for you.  Once you learn to think like a computer all of this becomes easier.
    ¯\_(ツ)_/¯

  • IPhone users unable to to send as email when trying to forward conversation

    Hello,
    I am seeing an issue on Lync 2013 for iPhone, where users attempt to save their IM conversation by using the send by email feature on iPhone.  The button is not listed, so there is no way for them to send the conversation.  I have searched but
    not found any sort of answer for this.  Has anyone else seen this, and found a resolution?  Thanks!

    Hi,
    I test successfully with both Exchange account and Hotmail account on my IPhone Lync client. On “Chats” interface on Lync mobile 2013 client, when I want to send the special conversation history by email, click the title of the conversation history
    to enter the content of it, then click the button which like three-point on the top right of the screen, in there I saw the option to send by email.
    So if couldn’t see the option, you can try to do the following methods:
    Check if you set email successfully on the IPhone.
    Check if the Lync client update to the latest version, if not, update from Apple App Store and then test again.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for

  • Homefolder always opens in List-view

    In Finder I had selected: Open a new window should open the Homefolder. Configured the Homefolder (with cmd + J) to Symbol-view with big Icons and other Details. But ever I open it new with command + N it is in List view- If I open it from Mc HD / Us

  • Sample Editor

    I have sampled a section of speech from a much larger recorded mp3 file, now I want to revisit the whole speech again but no matter which audio channel I use it reverts to the much shorter section. Can anyone help please

  • Help with arrays & counting characters in arrays

    I am trying to figure out how to count how many times each characters appears in the array (but I have to do all the counts at once). I am supposed to store the counts in an int[] array of 27 elements (26 letters & an extra count for everything else)

  • P0000-STAT1 (Customer Specific Status) field on Infotype 0000

    Hi All, I have a requirement on Customer specific status field on infotype 0000,  Where I should be able to maintain that field through PA40. As this field is standardly delivered as output field only through SAP I am unable to force that field as in

  • Installed latest update, cannot open firefox

    other browsers work, firefox will not open up at all