How to automatically send a report after its creation?

Hello

I am a beginner and I would be grateful if someone could tell me some general information.

I found this tutorial how to save and access report.

Storage and access to the reports in the database

Onclick is recorded in this report tutorial.

Y at - it a way to send automatically each time that report is generating or first of all, I would like to save it (PDF, CSV,...) with the SQL script and then send it?

I also found there related interactive process page that can send e-mail messages. Is it possible the process page to send e-mail with report or must be saved before sending?

The reason is that we want to have a history of created.

Thank you in advance.

874887 wrote:

The reason is that we want to have a history of created.

Save the report, and then send it.

I have call if ENGAGING between the two steps.

The APEX_MAIL package to send an e-mail with an attachment.

You should be able to edit the PL/SQL to do it all in one step

declare
  l_report blob;
-- Added this for APEX_MAIL
l_mail_id NUMBER;
begin
  l_report := apex_util.get_print_document (
  p_application_id => :APP_ID,
  p_report_query_name => 'blobquery',
  p_report_layout_name => 'blobquery',
  p_report_layout_type => 'rtf',
  p_document_format => 'pdf'
  );
  insert into report_archive (
  filename,
  mimetype,
  report,
  created_date,
  created_by
  ) values (
  'BLOB Query Search Results ('||to_char(sysdate,'DDMonYYYY')||')',
  'application/pdf',
  l_report,
  sysdate,
  :USER
  );
-- COMMIT the insert so you don't e-mail out a report
-- that was never saved
commit;
-- create e-mail here
l_mail_id := APEX_MAIL.send( ... ); -- see document for usage
APEX_MAIL.ADD_ATTACHMENT( .. ); -- see document for usage
end;



MK


Tags: Database

Similar Questions

  • How to automatically send a report

    Hi buddies!

    I hope that someone would be able to solve my problem here.

    I create a report using the PSP online. (PL/SQL server pages)

    I created 2 tables 3 scripts insert that will extract the required information in the table and the report will continue to read from this table.

    Now, I need to somehow send this report, in any format, pdf, excel or to a certain e-mail address.

    How should I do this?

    I'm quite new to PSP.

    I hope someone could give me an advance.

    Thank you very much.

    See you soon!
    Benard

    Can you show the screenshort scripts and reports, so we can get an idea of clerarl.

    Malki

  • How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    So I created a widget or a hosted form, and after finishing to complete to have a single view of signing, he puts another section or area below which requires another signature and send an article I don't want to have there. It creates another page as well because my original signature line is down.

    Then... How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    Hello

    By default the Widget to always an email and if you have not added field which, E-Sign would put a signature block (which consists of Email field) at the bottom of the document.

    Kind regards

    -Usman

  • How you automatically send a client a copy of a form online that they met?

    How you automatically send a client a copy of a form online that they met?

    Hello

    At this point in time this feature is not available in the form of Contact of Muse. I would ask you yo visit our idea page Muse create an idea for the same. More votes as he gets the chance, should it be implemented in future releases of Muse.

    Ideas for features in Adobe Muse

    Click on Actions > create idea to submit your idea.

    To work around the problem, you can use any builders of form online third-party to create this kind of shape and if they allow you to generate code incorporated for the same then you can add this Muse of object > insert HTML code

    Kind regards

    Vivek

  • How to stop a fax report after each fax hp laserjet pro cm1415fnw Color MFP

    My HP Laserjet Pro cm 1415 cold color MFP printer spits out a fax report after each fax sent.  How can I stop this?  It's wasting my paper.  Please answer in detail.

    Check your Fax Setup Wizard to see if you have a check of parameter for a confirmation report after sending a fax.

    Set Fax Wizard:

    Start > programs

    HP > HP Fax setup Wizard

    See the instructions on the screen to see what that the settings that you set when you configure the fax.

    You can also check the Control Panel, under the Fax Menu > Basic or advanced settings and see if there is a parameter that was can be changed to stop this page of the printout.

    Here is a link to the user guide for this product which says more about the settings (starts the pg 139) Fax.

    CM1415 user guide

  • How to automatically send an sms to the team?

    I would like to know if there is a way (setting) or an application that can automatically send an sms (txt) to my team?

    A 3rd party app called IFFT may enforce an assortment of things, among them actions based on SMS.

    For some recipes, as they call it, take a look on their website: https://ifttt.com/sms

  • How to recover the XMLP report after publication

    Requirement:*.
    There is a custom created page that has some data (all data is display only) on level 1. There is also a link on that level 1.
    When the user arrives on this page for a particular search (from the search page) values and on a level 1 line and click this link, an XMLP report must be generated and open.
    When the user comes to the same page with the same values of research and the same line at level 1 later, after some time/day, the XMLP report which came already should open instead of generating a new report XMLP.
    Therefore, the XMLP report has generated only once for a particular line of level 1 and should now be reused.

    Technique of the logic applied so far:*.
    The logic was written on the component.record.fieldchange of the link level 1.
    I was able to generate the XMLP data file. By using this data file, I was able to generate the report (in PDF) and publish as well.

    Creates the object:
    & oRptDefn = create PSXP_RPTDEFNMANAGER:ReportDefn(<Report_Definition_Name>);
    & oRptDefn.Get ();
    & oRptDefn.SetRuntimeDataXMLFile (< XML data file >);

    Set the outdestination:
    & oRptDefn.OutDestination = < Some Unix Path >;

    Report of the process called:
    & oRptDefn.ProcessReport (< name of the report definition model >, % language, date, & oRptDefn.GetDefaultOutputFormat ());

    And published:
    & oRptDefn.Publish ("PSUNX", "", "", 0);

    The report is published. I can view the report in pdf format on
    Main menu > Reporting tools > XML editor > search for XML report

    Question (which is also a roadblock):*.
    Now how should I proceed in order to open (display) the same report when the user clicks on the link to the level 1 again.
    How can I reopen this same report next time?
    I was wondering that if I get the report Id, and the process Instance (as displayed in the search for XML report), I can save for later use. So I can dynamically create the report using these 2 URL identifiers when the user clicks on the same link next time. But not able to get the correct values of these properties.
    After publication, & oRptDefn.ProcessInstance gives 0 instead of the process instance, as shown in the XML report search page.

    Please help with your expertise.

    The instance of the process number is automatically filled by PeopleSoft during the call to publish. However, the problem is that you cannot recover the instance number of processes assigned by PeopleCode after the call to publish. I think that this property has a use when you run the report through the process scheduler and not the application server (which is the case in this situation).

    Take a look at the PSRF_RINFO_TBL notice. In this recording all the XMLP reports will be stored by the report URL. Your condition said that when a user enters a component with a certain search criteria and a report has already generated so that criteria at level 1 should link to open that specific report. With the file PSRF_RINFO_TBL, you know what reports have been produced so far. The only thing you need then is to link a report to a specific search criteria. If you run a SQLExec on the PSRF_RINFO_TBL after you have published it you should be able to recover the process instance and the content id. If you add a record or some fields of the record exist for this component, you can bind the instance of process/contentid to search criteria. If a report already exists, you can use the code I posted in my previous post to open the report on the screen.

  • How to automatically restore the session after a crash/update / without asking me if I want to restore it?

    Hello, there are times that my Firefox crashes (well, it happens to all of us who use it to some extent) or updates asking to restart. I would like to know if there is an option that allows you to restore the previous session automatically without asking me even. It would be very useful for reasons. I had this kind of problem a couple of times ending me be upset. Sometimes I misclicked and lost all my important tabs. Other times my firefox has crashed/shifted on after reboot and guess what sound restart still has not even asking me if I wanted to restore my session crashed.

    Thank you in advance.

    Cesarius Hi, I think I understand, but I have not explained completely.

    The browser.sessionstore.max_resumed_crashes preference is to avoid an infinite loop. The default value 1 means an attempt to restore the session automatically once and if it fails (for example, it crashes before it can finish to restore), then display the "embarrassing". You could try to increase the value of 2 or 3 and see if it works on the second or third time. If you still see the screen "This is awkward" after a crash, Firefox still does not make a failback.

    You can also check if there is a file user.js in your profile folder. A user.js file is a file of optional parameters that Firefox reads at startup and uses to override the settings saved in your previous session. Unless you create a user.js file yourself, you can usually just remove it. This article includes a section on the hunt for a possible user.js file: How to fix preferences that will not save.

    Note: by default, Windows hides the .js file extension. Precise work with file names, I suggest setting windows to show all file extensions. This article has the steps: https://www.mozilla.org/firefox/all/

  • How to automatically save excel report?

    Dear Sir.

    I'm generated excellent using labview,.

    Currently, my doubt is how to Save automatically this report in the directory specified?

    Please inform me,

    Thank you...

    Do you use report generation tools for that?

    If Yes, then you can use 'save the report in the file.vi. If you don't use a Toolbox, you can use "Save" method by calling invoke node

    and by the way "workbook" refers to it.

  • How to automate for export reporting schema ERD

    We use Oracle Data Modeler 3.3

    We manage more than 120 ERDs for our Organization. We need to export ERDs all to the schema of report to generate reports.

    Manually, it takes time.

    Please suggest if we can automate the export process for the notification schema ERD.

    Thank you

    Anuj

    Not today. However, we plan to add a command line interface in a future version and it would be a possible feature to support here.

  • How can I restore my iPod after its coastline over 24,000,000 minutes?

    my iPod just locked on his own 24,000,000 minutes. What should I do? I tried restore but its does not work

    Try using recovery mode: https://support.apple.com/en-us/HT204306

    If this does not work either, please post back with more details, such as iTunes version and error messages. -AJ

  • How can we change the visibility of the drop-down list after its creation?

    I create a QML document with three drop-down lists.  Depending on how "trans_type" is selected, only to drop Extra should be displayed.  If the option "account" is selected, the drop-down list is visible and the DD category is hidden.  The reverse is true if the 'category' option is selected.

    Here's how I build my QML document:

    void Testing::updateFields()
    {
        if (m_form.isNull())
            return;
    
        // Clear all fields from the form
        m_form->removeAll();
    
        // Clear the internal mapping
        m_fields.clear();
    
        //get the transaction page ready
        QmlDocument *qml = QmlDocument::create("asset:///transaction.qml").parent(this);
    
        DropDown* trans_type = qml->createRootObject();
        trans_type = DropDown::create().title("Transaction Type");
        trans_type->add(Option::create().text("Accounts").value("0"));
        trans_type->add(Option::create().text("Categories").value("1"));
        trans_type->setSelectedIndex(0);
        connect(trans_type, SIGNAL(selectedIndexChanged (int)), this, SLOT(onDDChange(int)));
        m_form->add(trans_type);
    
        DropDown* account_dd = qml->createRootObject();
        account_dd = DropDown::create().title("Account");
        account_dd->add(Option::create().text("No Account").value("0"));
        //... code to populate account drop down here...
        account_dd->setSelectedIndex(0);
        m_form->add(account_dd);
    
        DropDown* category_dd = qml->createRootObject();
        category_dd = DropDown::create().title("Category").visible(false);
        category_dd->add(Option::create().text("No Category").value("0"));
        //... code to populate category drop down here...
        category_dd->setSelectedIndex(0);
        m_form->add(category_dd);
    
    }
    

    Everything is displayed properly on the page.  onDDChange is called and it shows a Toast that the option has been selected.  Here is what I currently have in onDDChange:

    void Testing::onDDChange(const int &info)
    {
        QString msg = "Switched To: ";
        if(info == 0) {
            msg = msg + "Account";
        } else if(info==1) {
            msg = msg + "Category";
        } else {
            msg = msg + "Unrecognized";
        }
        showToast(msg);
    }
    

    I can't figure out how to get the drop down lists to be visible/hidden depending on the needs.  There is a function "setVisible()" for the drop, but I can not understand how to operate without the app crashing.  http://developer.BlackBerry.com/Cascades/reference/bb__cascades__dropdown.html#function-setVisible-v...

    My questions are:

    1. How can I change the visibility of the appropriate dropdown lists in a different function when the status of the main drop-down list is changed?

    2. is there a way to define an id for drop-down lists?  If not, how am I supposed to go into the drop-down lists in a variable later so I can receive their value or change the visibility?

    Any help would be great.  I've been struggling with this for a while.

    There are a number of methods you could use signals and slots between your code and the QML or something simple is assign "objectName" as a property, then this search in C++.

    http://developer.BlackBerry.com/Cascades/documentation/dev/integrating_cpp_qml/

    Something like

    DropBox db = mRootContainer->findChild("dropboxname");
    db->setVisible(true);
    
  • How can I send an event after an event?

    Hi all

    I have mouseevent that erases data in some classes. But before all data are deleted, I need to use some updating of other instances.

    How can I make sure that my updates are do everything first and then data are erased on an event?

    There should not be anything wrong with the code you have posted, loginServiceRO.exit (userName) must be called before UserManager.setUser (null) is executed, and you pass the username to loginServiceRO.exit a string anyway.  Are you sure loginServiceRO.exit is not putting the null user singleton in his statement?

    Mark

  • How to send a report using OBI EE provides users?

    Hi guys,.

    I have installation ibots on few reports. I get the report to my e-mail as an HTMl attachment after the report is run.

    How can I send these reports to other users?

    Thanks your help foy.

    SK

    Hello

    You can give the list of recipients in the recipients tab

    and, check this box:
    http://gerardnico.com/wiki/dat/OBIEE/sasystem
    http://oraclebizint.WordPress.com/2008/04/25/Oracle-BI-EE-101332-SA-system-subject-area-autoloading-profiles-and-bursting/
    http://OBIEE-tips.blogspot.com/2010/02/SA-system-subject-area.html

  • I found flaws in all of the calendars and the scientific calculators of Apple products. How can I send you my report pages 20 as a matter of course. Who should I go. This is a real case, and I am willing to work with Apple on this issue.

    Dear Sir/Madam,

    Topic: Default in some Apple products (important issue).

    This is not an unsolicited idea or suggestion (Please read)

    First of all, allow me to introduce myself as a teacher of mathematics, with more than 20 years of experience in the teaching of mathematics in Jordan.

    I take the liberty to write to you on a very delicate issue regarding the above topic. I'll try to be direct and fertilizers to point.

    Eight months ago, I have established contacts with the customer at Apple and succeeded to in explaining my intention to work with Apple on the flaws I found in all the following Apple products:

    -Scientific calculators built into the Apple iPhones and other products like Mack book pro (13 keys/operators applying bad mathematical concepts).

    -Calendars integrated into Apple iPhones and iPads (after a certain date).

    -Most of the calculators downloaded on Apple iPads (application).

    With my main concern during the final user, I already have reports submitted to Apple on the six keys with solid evidence and evidence supported with excerpts from various reliable resources that are no doubt as to the failure of these keys. I also presented copies of the date on which the calendar goes off track.

    Now iPhones for new generation of Apple (6s and 6 s-Plus) have already been launched on the market, keeping the same flaws, I decided to start contacts with Apple once again, hoping to succeed in reaching the right people at Apple to continue my rage in finding that the right to address this issue. I hope that you will respond positively.

    My worries and concern are oriented towards the end user and, in particular, students who take the responses of these calculators for granted when they are wrong and they don't realize.

    I have prepared a 20 page report although detailed on these defects and how to correct function solid evedence of reliable math textbooks. I'm ready to send this report to the person/department concerned, on which they can check and verify my claim with any or all of the following:

    ·       Apple/mathematicians engineers.

    ·       The mathematics books that are published by well known/good reputation

    publishers.

    ·        Calculators Casio or TI as the most reliable calculators in the world.

    ·        Reliable sources of mathematics of the internet.

    ·        Presentations power point math on YouTube.

    .        Math teachers well known working in renowned universities

    ·        American Mathematical Society.

    I reiterate my willingness to cooperate on the question above so that the genetions coming Apple products will be free by all means!

    I look forward to your positive reply,

    Sincerely,

    Nael

    < personal information deleted by host >

    This is a user to user forum.  Your message must be addressed to the Apple company.  Maybe a letter to Cupertino, California, is in order.  Your letter will receive no valid response here about your concerns.

    Ciao.

Maybe you are looking for

  • Place of current residence Apple Watch weather

    Hi all something is happening with my Apple Watch and weather. I can't get the weather from the current location on my watch. current place of residence is enabled on my iPhone and I can't see properly on the native phone application. However, I can'

  • Overheating of the satellite L50A-122

    I recently bought a Satellite L50A-122, with a 4th generatition Intel Core i7. Simply the pc overheating... All solutions?

  • USB not connected when you try to scan

    My Photosmart C4280 prints fine, but when I try to scan, it says USB not connected

  • Good day everyone.

    Two screws of my aspire v5 431 are missing. I don't know its size. I need to buy those in the material. Help, please... Thank you..

  • Newbie here... memory card question

    Strange question, but here it is.  It will harm the card or device if it is left in the slot during the night or during an extended period of time (never more than a few days at most)?  Thanks in advance!