Forum Stats

  • 3,780,546 Users
  • 2,254,409 Discussions
  • 7,879,379 Comments

Discussions

How to hide a report

Pritam Das
Pritam Das Member Posts: 27 Green Ribbon

Hi Expert,

In apex page i have a report and a button which will download the report.Now i want to keep the button for download the report but i don't want to show the report in UI.

How i can achieve this functionality.

Thanks

Pritam

Tagged:

Answers

  • Javier P
    Javier P Member Posts: 792 Silver Badge

    Hi,

    Just put style="display:none" in Custom Attributes of the report.

    Regards,

    Javier

  • Pritam Das
    Pritam Das Member Posts: 27 Green Ribbon

    Thank you Javier.It is working.😊

    Javier P
  • fac586
    fac586 Senior Technical Architect Member Posts: 20,314 Red Diamond

    Just put style="display:none" in Custom Attributes of the report.

    The problem with this is performance: although the report is not visible, APEX is still rendering the region. Hence when the download is requested, the report has been executed twice.

    I'd suggest a different approach:

    • Create a classic report region on a new page.
    • In the report attributes, change its Template Type to Predefined and the Template to CSV.
    • Create a "Download" redirect button on the original page, setting the target to be the new CSV report page.