Home Discussions Questions & Answers PLSQL API for Immediate (Synchronous) Report Output

PLSQL API for Immediate (Synchronous) Report Output

Avatar photoCustomer July 3, 2019 at 2:50 am

I need to generate a report instantly within a PLSQL routine and capture the file output without submitting a concurrent request. What API handles synchronous execution and returns the file content?

Viewing 2 reply threads
  • Author
    Replies
    • Support July 5, 2019 at 3:06 am  

      You use the procedure `xxen_api.run_report`. This executes the report synchronously and returns the output file content (like Excel) in the `x_output_file` parameter, which is of type BLOB.

    • Avatar photoCustomer July 5, 2019 at 4:20 pm  

      What is the prerequisite initialization sequence before calling `run_report`?

    • Support July 6, 2019 at 10:58 am  

      You must first call `xxen_report.apps_initialize` to set the session context, and then call `xxen_api.create_run_id_` to get a necessary `l_run_id` before setting parameters and calling `run_report`.

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

Login with: