Page 1 of 1

What file to edit to allow exporting to CSV?

Posted: 2015-10-01 22:49
by dragon
Didn't enable exporting to CSV prior to generating and want to edit the file directory? What file and line number can I edit to allow exporting to CSV?

I found my answer, but I'll share it. You can edit the companies_view.php file (your file name may differ). Look around line 151 or so, you're looking for this line:

Code: Select all

$x->AllowCSV = 0;
Change to:

Code: Select all

$x->AllowCSV = 1;

Re: What file to edit to allow exporting to CSV?

Posted: 2015-10-06 17:27
by shasta59
You can also set this as an option in AppGini when you generate the application. You can also write some code and decide who can export to CSV based upon their group etc.

Alan

Re: What file to edit to allow exporting to CSV?

Posted: 2015-10-06 18:25
by dragon
Good info shasta59. I failed to set the option in Appgini, luckily for me I'm still testing Appgini. Now I know that the option is available and if I fail to set it, I have the option to edit a file, and write further code as you suggested. Wish the user base was x10 though, so we'd have a lot more information to share.

Re: What file to edit to allow exporting to CSV?

Posted: 2015-10-07 00:19
by shasta59
What version of AppGini are you using? This makes a difference in possible answers.

That piece of information is important as it flavours the answers which can be given.

Alan