Currently each report like Invoice Aging, Sales by Clients, etc. open in the same browser window after we click the Run Report button.
Where (file name) and how can I add a new window target on the Run Report button so it will open a new window / tab with the PDF Report?
Thanks in advance!
The reason this feature or modification was requested is because some of my (old) users get lost once they get to the PDF page without any navigation menu on the site. Often times they just close the window / tab.
Anyone can point me to the right file?
Each report view file needs to be modified.
Files to change:
/application/modules/reports/views/payment_history_index.php line 20 & 21
/application/modules/reports/views/sales_by_client_index.php line 20
/application/modules/reports/views/sales_by_year_index.php line 20
/application/modules/reports/views/invoice_aging_index.php line 19
<form method="post" action="<?php echo site_url($this->uri->uri_string()); ?>">
<form method="post" action="<?php echo site_url($this->uri->uri_string()); ?>" target="_blank">
It works! Thank you so much for your help! Much appreciated!