You wrote above:
The rs parameter refers to the object within the report. for example, if you have two tables in the report, the eyword]rs[/keyword] parameter for the first one is 1 and 2 for the second.
The question is:
Why is the rs parameter preventing the output of my customized PDF header, for example in the following piece of myDBR code:
# Handle PDF special functionality. PDF export should display a special header. Also Have the PDF export automatically download a file instead of overwriting the web page.
IF (inExportFormat = 'pdf') THEN
# Automatic download
select 'dbr.export.options', 'content-disposition.pdf', 'attachment';
# The next section is for our customized display of our PDF header
select 'dbr.title', ''; # Remove the report title since it's part of the header
SELECT `name` into @report_name FROM mydbr_reports WHERE proc_name = inAutoReportProcedure;
select 'dbr.wkhtmltopdf', "--header-html ''"; # Disable default PDF header.
CALL sp_DBR_pdf_header(clientdb, @report_name);
END IF;
# The next section would ideally Handle not only PDF but also Excel, and CSV Exports, but the toggle parameter is only on PDF
IF (inExportFormat = 'pdf') THEN
# The next section is for the feature of toggling the checkboxes for the column
create temporary table toggles (i int);
# The next line assumes that the most number of columns any of our reports will have is 25
insert into toggles values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
select 'dbr.hidecolumn', i + 1
from toggles
where find_in_set(i,GET_toggle1 );
END IF;
The proof of what I am asking is when clicking on two different buttons within the myDBR portal itself.
The button to export PDF on the "Filter/toggle" toolbar has the rs=1 parameter, and when clicked will only display my grid and not my customized PDF header.
However, if I click on the button to export PDF on the Administrator toolbar at the top right, it does not contain the rs=1 parameter, and when I click on it it displays both my customized PDF header and the (toggled) grid.
Since I have no control over the "Filter/toggle" toolbar what can be done to resolve the situation? Is there a way to hide the button to export (Excel,PDF,CSV) on the "Filter/toggle" toolbar?