Home Discussions Questions & Answers Opening Blitz Report from Custom Forms (BLOB API)

Opening Blitz Report from Custom Forms (BLOB API)

Avatar photoCustomer December 3, 2023 at 10:50 am

We need to integrate a report directly into a custom Oracle form, such that clicking a button generates and downloads the Excel file instantly. How do I achieve the download functionality after generating the report via the BLOB API?

Viewing 6 reply threads
  • Author
    Replies
    • Support December 4, 2023 at 6:03 am  

      After running the report using the `XXEN_API.run_report` procedure (which returns the output as a BLOB), you must use the procedure **`xxen_utils.download_file`**.

    • Avatar photoCustomer December 5, 2023 at 5:31 pm  

      What argument does `xxen_utils.download_file` expect?

    • Support December 6, 2023 at 5:52 pm  

      It expects the file ID, which you retrieve by calling `xxen_api.report_file_id(l_run_id)`, where `l_run_id` is the ID generated when you initiated the run using `xxen_api.create_run_id_`.

    • Avatar photoCustomer December 8, 2023 at 10:56 am  

      Does this form code require any additional attached libraries?

    • Support December 9, 2023 at 7:03 am  

      Yes, the `xxen_utils.download_file` procedure is included in the **`XXEN.pll`** library, so you must ensure this library is attached to your custom form to use the functionality.

    • Avatar photoCustomer December 10, 2023 at 12:30 pm  

      Is the BLOB API method (using `run_report`) suitable for very long-running reports?

    • Support December 12, 2023 at 5:38 am  

      The BLOB API is generally used for synchronous reporting, suitable for immediate drill-downs or quick previews, but long-running reports are typically submitted asynchronously using the concurrent program API (`report_submit_concurrent_`).

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: