Buy Now
Sign in

A button to save in CSV

barredespace , December 14 2017
Answered
b
barredespace

Hi,

I am totally new to ChronoConnectivity and may be missing something obvious but I read a lot of posts and couldn't find a clear answer to my problem.
I try to create a list with a button (or a link) to export it in CSV format.
I read this post in particular but still no joy.

What I achieved so far :

  • My list is displayed all right with the right titles and sortable columns,
    My export function is good which I checked by triggering it in my index event,
    Both button and plain link trigger a download but the resulting file is empty a part from columns titles


  • Here are some screenshots :
    https://i.imgur.com/49ylu2l.png
    https://i.imgur.com/3ZlPDNw.png
    https://i.imgur.com/PgzsD01.png
    https://i.imgur.com/vodO5nC.png
    https://i.imgur.com/lnwzhBf.png
    https://i.imgur.com/dwLkrpU.png

    I suspect I missed something in the link parameters, URL and/or content…

    Any help appreciated,
    thank you
    --
    Pascal

    admin

    Hi Pascal,

    The "export_CSV" event is a new page, it does not appear that you have read the records first before calling the "export_csv" function, please try to do that.

    Best regards

    Max
    If your main question got answered then please mark the answer using the button!

    b
    barredespace

    Ah ! Ok ! Thanks ! It's working now.
    (feeling a bit stupid right now) :shock:

    Regards,
    --
    Pascal