Export setting #585
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
ps. At now i'm still in BKP v5: PHP VERSION:PHP 8.2.7 (cli) (built: Jun 17 2023 08:16:17) (NTS) LARAVEL VERSION:v10.15.0@c7599dc92e04532824bafbd226c2936ce6a905b8 BACKPACK PACKAGE VERSIONS:backpack/crud: 5.6.1 and i'm seeing that 'visibleInExport' => false is not working, is this a bug? is this working fine on v6 ? |
Beta Was this translation helpful? Give feedback.
-
Indeed it's a limitation of the current export. It only exports VISIBLE ROWS. That's because the export functionality is provided by DataTables. You can work around it easily as an admin, by choosing to list "All" rows, not only "10" or "25" or "100".
This isn't something that Backpack itself controls, it's something that DataTable does. We'll look into it, but I'm not sure we can do anything about it, unfortunately. I know the PDF export isn't pretty, it's something I don't like either but it hasn't been high on our priority list. We have been working on an alternative Export functionality. An "ExportOperation", that would work in ALL situations, but we've hit a big bottleneck there too. It works ok for 10.000 rows for example, but not for 1 million rows. So it's not a complete solution either. So rather than putting out yet another incomplete solution, we've decided to shelve the issue and package for some time, until we can find a permanent and complete solution (move the processing to a background process and maybe a queue). But that increases the size of the task to months of work, which we couldn't do during the v6 launch, there just wasn't enough time. We'll probably get time to take another look at the ExportOperation and finish it in the next few months. But until then, we'll have to make due with what we have - the DataTables export. I know it isn't perfect, but it has served us well for 7+ years so for most projects it should be "good enough". Cheers! |
Beta Was this translation helpful? Give feedback.
Hello @blondie63
is working as expected
I make a test with Monster on demo:
With normal params:
XLSX
PDF
Now i change this:
So "Boolean" column need to be hide:
XLSX
PDF
Is working correc…