APEX dynamically define default filename?

Deadly 提交于 2019-12-11 10:58:16

问题


In an APEX application, I have an interactive report.
In Report Attributes > Report Export > Filename, you can specify what file name you the download to have as a default.

Question: Is there a way to dynamically define this default filename?

Yes, I know, the user can change it when they do the download. But my boss wants the user to not to have to change the file name.

What can anyone tell me? Thanks!!

APEX 4.2 Windows 7 IE 11


回答1:


Yes you can do this. Create a hidden page item (e.g. P1_REPORT_NAME) and set its value to be whatever you want the name of the file to be. You can calculate this in many different ways e.g. - pass a value through a link from another page, using a dynamic action or computation, or setting a default value via static content or pl/sql expression. Then navigate to Report Attributes > Report Export > Filename and set it to &P1_REPORT_NAME. - now the report will be called whatever the value of P1_REPORT_NAME is.



来源:https://stackoverflow.com/questions/44831468/apex-dynamically-define-default-filename

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!