sc_set_pdf_name"sc_my_file_name.pdf"

Watch a tutorial

The resulting files of the exported data (PDF, XLS, XML, CSV, WORD, and RTF) are stored in "temporary" directory specified in the Scriptcase's configuration in development and in production, with the prefix "sc_" followed by a unique identification so the file of a user does not overwrite to one another.

The prefix "sc_" makes Scriptcase delete the old files. To assign different names Scriptcase patterns, can use the following macros:

- sc_set_csv_name

- sc_set_pdf_name

- sc_set_rtf_name

- sc_set_xml_name

- sc_set_xls_name

- sc_set_word_name

 

Ex1:

sc_set_xls_name = "my_file.xls";

 

Ex2: sc_set_csv_name = "sc_my_new_file.csv";

 

NOTE:

1) These macros should be used in the event "onApplicationInit."

2) Even using the macro, remained the prefix "sc_" (as Ex2), the Scriptcase will delete the file when it reaches the configured timeout limit (see the setting "File Lifetime" in the production environment).