C
|
cristi 12/17/2023 |
option1 - "fast and fake it" - you will get an empty row at the top: Labels::setFieldLabel("table_name", "field_name", ""); option2: since PHPRunner already includes PHPExcel you can create your own custom export attached to an custom button option 3: use one of fernando's excelent tutorials on custom reports using phpspreadsheet - there is a method I don't know if there is any built in function to ignore headers in export... |
![]() |
konenamogo author 12/18/2023 |
Hello cristi Thank you for option 1 which blanks the columns.
I would like to delete the first line. Is there anyone who can help me? Thanks |
C
|
cristi 12/18/2023 |
Again, you need to create your own export routine for what you want.
if ($("[name^=selection]:checked").length<1) { This code gives a warning if you don't select anything on the list page to export and stops execution of the server and client after events - the button will work as "export selected" button
require_once ('plugins/PHPExcel.php'); //call the library
location.href=result["txt"]; Build application, upload, select some records on the list page and push your custom button - it will download an xlsx file without headers in the columns. This is the simplest example possible with minimum validation, no error check, etc - it can be enhanced so it will download all records or all records on current page without checking them first but this is something that I leave it to you. You can customize your output even further using the documentation and examples from here |
![]() |
HJB 12/18/2023 |
Optionally, you can suppress the header row from inside Excel table.
|
![]() |
konenamogo author 12/19/2023 |
Hello Cristi, Thank you very much for your help to use custom button. the solution is found. Thank you very much |