CSV Download Trigger

CSV Download Trigger

SoqSoq Posts: 2Questions: 1Answers: 0

I am looking for a solution where I can run a script on button click/trigger.
Depending on the response of the function I want to continue with the CSV download or exit.

I am struggling to find a manual call for downloading the csv that doesn't involve triggering the button.
Does a trigger like this exist?

Much appreciated.

Answers

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    You'll want a custom button in the first instance, then use the buttons.buttons.action callback to trigger the original CSV export. The final example on that page's documentation show how that can be done.

    Allan

  • SoqSoq Posts: 2Questions: 1Answers: 0

    Ah I see the issue, as this definition doesn't exist within DefinitelyTyped.
    Forgot to mention that.

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    It is in our own typing file which is relatively new.

    Allan

This discussion has been closed.