Exporting to CSV not including all fields in Export

QuestionsExporting to CSV not including all fields in Export
Tony Wolsey asked 3 months ago

Hello

When I export a grid to CSV, I don’t get all the fields when I open the CSV file.  I believe I have configured the fields I want to export correctly using…

$col[“export”] = true;

As an example, I have another grid where I have over 40+ fields and they all export fine with no problems so I do not know what I have done wrong with this other file.

I have included the file for your viewing.

https://gist.github.com/TboneDubu/815a63824d85c26251249f4ff3c4f385

Here is the screen capture of the exported CSV file showing that the fields are missing.

Export to CSV with missing fields

thank you

Tony

4 Answers
Abu Ghufran Staff answered 3 months ago

Please share table dump with testing data to regenerate case : tblarss, tblindex

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Tony Wolsey answered 3 months ago

Thanks Abu

Please see link below

https://drive.google.com/open?id=1p6Um_4k6Gxi7WTZHKmrXCJKKhCFhDrtV

Please note that I have since changed the field in tblarss to tags just so it is different from the same field in tblindex.

thank you

Tony

Tony Wolsey answered 3 months ago

My apologies Abu if you wasted a lot of time to solve my issue. I mistakenly had two fields mapped twice to the grid in the ADIARSS.php file which gave very random results for column choosing and exporting.

 

thank you

Tony

Abu Ghufran Staff answered 3 months ago

Ok, thanks for reporting back.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Your Answer

17 + 4 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!