Page 1 of 1

Saving a copy of a report on server

Posted: Fri May 15, 2015 6:50 pm
by Francine
I am trying to find a way to allow the users to make a copy of an existing report and save it on the server with a different file name with the file name entered by the user.
I have tried to modify the code in the index.php file and handler.php but I am not able to capture the new file name by the user.

Re: Saving a copy of a report on server

Posted: Mon May 18, 2015 10:40 am
by Vladimir
Hello,

We have added a new parameter $report_file_name for the function of saving the report. The update will be available in the prerelease build 2015.1.4 today.

Thank you.

Re: Saving a copy of a report on server

Posted: Mon May 18, 2015 4:59 pm
by Francine
Thank you verify much for your quick response, help and action to have a solution. I will look for the pre-release build.

Re: Saving a copy of a report on server

Posted: Mon May 18, 2015 9:18 pm
by Francine
I have tried the pre-release build and it is still show the Save As dialog box to save on PC. Do I need to set something else in the config file?

Re: Saving a copy of a report on server

Posted: Tue May 19, 2015 11:47 am
by Vladimir
Hello,

Yes, you should set the ShowSaveFileDialog property to True.
After that, when you use Save button (not SaveAs button) will be displays a dialog for entering the file name. The file name will be passed to the sti_save_report() function in the $report_file_name parameter.

Thank you.

Re: Saving a copy of a report on server

Posted: Wed May 20, 2015 5:20 pm
by Francine
Thanks I got it to work.

Re: Saving a copy of a report on server

Posted: Thu May 21, 2015 1:37 pm
by HighAley
Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.