Exporting to CSV not including all fields in Export

QuestionsExporting to CSV not including all fields in Export
Tony Wolsey asked 5 years 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 5 years ago

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

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Tony Wolsey answered 5 years 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 5 years 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 5 years ago

Ok, thanks for reporting back.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

8 + 18 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?