You need to sign in to do that
Don't have an account?
sparc1.3696571782628958E12
Renaming a Report while exporting
Hi All
At present when I am exporting or taking a printable view of any report, the downloaded file is named as say for ex: "report1369745790672".
I want to give some meaningful name to it while exporting itself. I do not wish to manually rename it post its download.
Is it possible through apex?
Please help. URGENTLY REQUIRED.
Thanks
Shiv
Usage:
You can change csv to excel to get a different view.
You'll still need a custom link to make this work, though, so you won't just be able to, say, export the report using the normal report button. You could make a bookmarklet that could allow a single-button export feature in most browsers.
For passing parameters to the report, you'll have to write extra code for that, too. This is just a demo.
All Answers
Usage:
You can change csv to excel to get a different view.
You'll still need a custom link to make this work, though, so you won't just be able to, say, export the report using the normal report button. You could make a bookmarklet that could allow a single-button export feature in most browsers.
For passing parameters to the report, you'll have to write extra code for that, too. This is just a demo.
Hi Fox
First of all thanx for sharing the code.
The thing is I have got multiple reports to export at the click of one custom button.
Even if I create such dynamic URLs (as mentioned in your code above) for different reports, can you please help/explain as to how do I loop through these URLs and get them saved all at once. AT THE GO OF ONE BUTTON CLICK.
Thanks in advance
Shiv