• Resolved Sir Dance A Lot

    (@adminatvbds)


    Thanks for the plugin, and I understand it is in Beta and you are mostly working on your new plugin pods, so documentation is limited. But I was wondering if you could answer this question:
    In your Settings “URL to Cronjob:” I can copy and paste this URL into a browser, change the YOUR_REPORT_ID to 3 and YOUR_EXPORT_TYPE to csv and then get the message:{“success”:true,”data”:”Report exported”}.
    Now I would like to download the csv file, but I do not know the name of it because my sever disallows file directories of folders. (Yes I can get the name when I log into FTP with my user/pass).

    So My question is, can you change the message:
    {“success”:true,”data”:”Report exported”}
    to something like:
    {“success”:true,”data”:”Report myrpt_10-28-2014_14-48-54_Tod1I.csv exported”}
    or the words “Report exported” is a link to the URL of the csv file, so I can right click and download it.

    Or any other way to simply find out the report name that was generated?
    Thanks for the plugin!

    https://wordpress.org/plugins/exports-and-reports/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Love this idea, I’ll definitely implement this when I get to the next update.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Added locally, will push next chance I get

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    This is now in Exports and Reports 0.6.2 available now.

    Hi,I see the 0.6.2. is not available yet.

    Tried using Windows “wget” with the cron-job url but got errors export_type not recognized and token not recognized. Would be nice if somehow the report could be triggered and downloaded by excel’s “Data from Web”, or by pasting the(?) url in firefox.

    For consistency, maybe its better to use quotation marks on all text-strings in stead of only the one’s with spaces.

    For excel csv is unusable. Use tsv (<didn’t know the extension)

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    I just updated the stable tag in readme.txt to properly point at the new version (sorry about that).

    0.6.2 should now be available.

    I’m using fputcsv for the CSV building, it handles quoting on it’s own.

    Hi, after searching and experimenting for at least two hours I finally got my report output with api.php The url should not contain the reportname. By ID is meant the reportnumber, only to be found in the URL. After that it still took me some time to find out that export type should not be in capitals but undercast. A simple example on the “settings” page could have saved me a lot of time.

    ps: It would save me some trouble if the json url downloaded the file the same way as if you pressed one of the csv/tsv/… buttons on the report-screen.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Sorry, I haven’t had a ton of time to improve this plugin, my time has been focused on my other primary projects. I’ll keep this in mind for the next update.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to find the Cronjob exported report name’ is closed to new replies.