Empno | Ename | Job | Mgr | Hiredate | Sal | Comm | Deptno |
7369 | SMITH | CLERK | 7902 | 1980-12-17 | 800 | - | 20 |
7499 | ALLEN | SALESMAN | 7698 | 1981-02-20 | 1600 | 300 | 30 |
7521 | WARD | SALESMAN | 7698 | 1981-02-22 | 1250 | 500 | 30 |
7566 | JONES | MANAGER | 7839 | 1981-04-02 | 2975 | - | 20 |
7654 | MARTIN | SALESMAN | 7698 | 1981-09-28 | 1250 | 1400 | 30 |
A simple way to remove the rather ugly "Download" link from the bottom of Classic Reports, and replace it with a nice button.
The button triggers a Dynamic Action that clicks on the original "Download" link (whose text is hidden by some css).
See the Code section below for details. Note you need a Static ID for the report region.
Note:
In older Apex versions and/or browsers the querySelector used to be different;
I assume the Apex html flow has changed since then, so if you have problems you may want to try the old version below.
Thanks to Ajay for pointing this out!
document.querySelector('#p1007-classic-report > div > div.t-Report-links').click();