save csv only selected collumns

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

save csv only selected collumns

Post by D Oliveira » 2018-05-15 23:34

is there a way for the save csv button to only create collumns that are toggled to display?

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: save csv only selected collumns

Post by R Tammam » 2018-05-20 13:39

Hello D Oliveira ,
there is a very helpful function in appgini tablename_csv you can find it in hooks/tablename.php, it has a query parameter
$query contains the query that will be executed to return the data in the CSV file.
you can find more about this function in the following link
http://bigprof.com/appgini/help/advance ... lename_csv

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: save csv only selected collumns

Post by D Oliveira » 2018-05-23 21:01

can you please elaborate on that on how to get the query to import the toggled fields data?

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: save csv only selected collumns

Post by R Tammam » 2018-05-30 05:43

if you mean by toggled fields something like that
https://www.screencast.com/t/ZshN7Acv

so the toggled fields are stored in a cookie here's a small screen cast elaborating how it's stored
https://www.screencast.com/t/hG935gY4tlWr
to access the cookies you will need $_COOKIE["name"] php variable , you can find the variable name in the coookie (in the screen cast)
you can use these variables of the cookie to build your query

i hope that idea would help you

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: save csv only selected collumns

Post by D Oliveira » 2018-05-30 18:21

Is that a job u would be interested to get paid for developing? Really convenient way to generate payment sheets.

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: save csv only selected collumns

Post by R Tammam » 2018-06-05 00:39

i will try to do it , and i will post the code here , but it might take more time

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

Re: save csv only selected collumns

Post by D Oliveira » 2018-06-05 15:32

take your time, really appreciate your help on this, this is a solid improvement for next release

Post Reply