What file to edit to allow exporting to CSV?

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
dragon
Veteran Member
Posts: 44
Joined: 2015-09-29 00:06

What file to edit to allow exporting to CSV?

Post by dragon » 2015-10-01 22:49

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;
Appgini 5.50, Revision 835. Mac OSX 10.11 running Windows 10 on VMWare.

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

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

Post by shasta59 » 2015-10-06 17:27

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
Calgary, Alberta, Canada - Using Appgini 5.50 -

dragon
Veteran Member
Posts: 44
Joined: 2015-09-29 00:06

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

Post by dragon » 2015-10-06 18:25

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.
Appgini 5.50, Revision 835. Mac OSX 10.11 running Windows 10 on VMWare.

User avatar
shasta59
AppGini Super Hero
AppGini Super Hero
Posts: 231
Joined: 2013-01-08 19:40
Location: Calgary, Alberta, Canada

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

Post by shasta59 » 2015-10-07 00:19

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
Calgary, Alberta, Canada - Using Appgini 5.50 -

Post Reply