⚡Creating One-Click Export Buttons for Interactive Reports in Oracle APEX

🚩Introduction 

  • In Oracle APEX applications, Interactive Reports allow users to download data as Excel or PDF using the Actions menu. While this feature is useful, it can feel a bit inconvenient when users have to go through the same steps every time they want to download a report. This can slow things down, especially when downloads are needed frequently.

  • To make it easier, we can create simple custom buttons that let users download the report with just one click. Even though APEX doesn’t provide this option directly, it can be done using Dynamic Actions without any plugins. This makes the process faster and gives users a smoother and more comfortable experience.

📑Why Simplify Downloads in Interactive Reports

In Oracle APEX applications, Interactive Reports allow users to download data in formats like Excel and PDF using the Actions menu. While this works fine, users often find it repetitive to open the menu and select the format every time they need a download. This can slow down their work and make the experience less smooth.

By adding simple custom download buttons, you can make this process much easier and faster. With just one click, users can download the report without going through multiple steps.

  • Download Excel or PDF instantly with a single click

  • Avoid repeated use of the Actions menu

  • Save time for users who download reports frequently

  • Improve overall user experience

👉 Steps to Enable One-Click Download in Interactive Reports

We can trigger an event when users download data from Interactive Reports by creating custom download buttons, without using any plugins. This helps to avoid the need to go through the Actions menu every time. Let’s see how to achieve this in the following steps.

Step 1: 

In the page designer, create the region and select the type as Interactive Report and select the source as sql query and enter your sql quey source for the report. 

Step 2: 

Create the static id RG_IR for the interactive report, under the Advanced section, static id property.

Region  ->  Advanced ->  Static ID
                     

Step 3: 

Create two buttons, one for PDF and another for EXCEL and change the button slot position to Right of the Interactive Report under the Layout section in the button property. Select the Text with Icon button template and give the respective icons for the button.

Step 4: 

Now we are going to configure the button actions to download the report in PDF and Excel formats. To do so, click on the button let's take the PDF button, in the properties go to the Behaviour section. Under that select the Redirect to Page in this Application in the Action section.



A popup will be shown, in that select the same page, we will be redirecting to the same page and under the advanced section, use this syntax IR[STATIC_ID]_FORMAT in the Request section.

IR[RG_IR]_PDF


In the same way, we are going to configure for the Excel button as well. Go to the Behaviour section and under action property, select the Redirect to Page in this Application. A popup will be shown in that select the same page id and under the advanced section, use this syntax IR[RG_IR]_XLSX

Step 5: 

Now save the page and run the application, we will see the report with two buttons Excel and PDF. On clicking on each button, it will download the report in the respective formats pdf and excel.









🔥 Conclusion

Thus, adding custom download buttons for Interactive Reports can be achieved without using any plugins. This enhances the user experience by providing one-click Excel or PDF downloads, without  relying on the Actions menu.

Comments

Popular posts from this blog

🔍 Extending Smart Search Filter for Multiple Regions

💡 Designing Dynamic QuickPicks in Oracle APEX

📌Track Active Tab switch in Region Display Selector without any plugins